# Makefile for sample programs

# $Id: Makefile,v 1.3 1995/03/30 22:30:56 brianp Exp $

# $Log: Makefile,v $
# Revision 1.3  1995/03/30  22:30:56  brianp
# added new demos to PROGS
#
# Revision 1.2  1995/03/04  19:43:47  brianp
# updated for Make-config
#
# Revision 1.1  1995/03/03  14:35:18  brianp
# Initial revision
#


default:
	@echo "Specify a target configuration"


include ../Make-config


clean:
	-rm *.o *~

realclean: clean
	-rm $(PROGS)


INCDIR = ../include

GL_LIBS = -L../lib -lMesatk -lMesaGLU -lMesaGL -lm $(XLIBS)

LIB_DEP = ../lib/libMesaGL.a ../lib/libMesaGLU.a ../lib/libMesatk.a ../lib/libMesaaux.a

PROGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth \
	eval fog font line logo oglinfo olympic \
	overlay point prim quad select shape \
	speed sphere star stencil stretch texture \
	tri wave

targets: $(PROGS)

.c: $(LIB_DEP)
	$(CC) $(CFLAGS) $< $(GL_LIBS) -o $@

