# Makefile for book programs


# $Id: Makefile,v 1.3 1995/03/13 16:04:47 brianp Exp $

# $Log: Makefile,v $
# Revision 1.3  1995/03/13  16:04:47  brianp
# added xfont to PROGS
#
# Revision 1.2  1995/03/04  19:43:29  brianp
# updated for Make-config
#
# Revision 1.1  1995/03/03  14:38:09  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 -lMesaaux -lMesatk -lMesaGLU -lMesaGL -lm $(XLIBS)

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

PROGS = robot accanti accnot accpersp accum aim alpha alpha3D \
	anti antiindex antipindex antipoint antipoly \
	bezcurve bezmesh bezsurf checker checker2 \
	chess clip colormat cone cube curve \
	depthcue disk dof dofnot double drawf \
	feedback fog fogindex font light linelist \
	lines list list2 maplight material mipmap \
	model movelight nurbs pickdepth pickline \
	picksquare plane planet planetup polys \
	robot sccolorlight scene scenebamb sceneflat \
	select simple smooth sphere stencil stroke \
	surface tea teaambient teapots texgen texturesurf xfont

targets: $(PROGS)

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

