TARGETS = aaindex aapoly aargb accanti accpersp \ alpha alpha3D bezcurve bezmesh bezsurf \ clip colormat cube dof double \ drawf feedback fog fogindex font hello \ image light lines list material \ model movelight pickdepth picksquare planet \ polys quadric robot scene select \ smooth stencil stroke surface teapots tess \ tesswind checker mipmap \ polyoff texbind texgen texprox texsub varray wrap \ texturesurf torus trim unproject OBJECTS = aaindex.o aapoly.o aargb.o accanti.o accpersp.o \ alpha.o alpha3D.o bezcurve.o bezmesh.o bezsurf.o \ clip.o colormat.o cube.o dof.o double.o \ drawf.o feedback.o fog.o fogindex.o font.o hello.o \ image.o light.o lines.o list.o material.o \ model.o movelight.o pickdepth.o picksquare.o planet.o \ polys.o quadric.o robot.o scene.o select.o \ smooth.o stencil.o stroke.o surface.o teapots.o tess.o \ tesswind.o checker.o mipmap.o \ polyoff.o texbind.o texgen.o texprox.o texsub.o varray.o wrap.o \ texturesurf.o torus.o trim.o unproject.o LLDLIBS = -lglut -lGLU -lGL -lXmu -lXext -lX11 -lm default: $(TARGETS) all: default %.o: %.c cc -c -I/usr/include $< -o $@ $(TARGETS): $(OBJECTS) cc $@.o $(LLDLIBS) -o $@ clean: -rm -f *.o $(TARGETS)