FREEGLUT = /afs/nd.edu/user37/ccl/software/external/freeglut CXX = g++ CFLAGS = -Wall -g LIBS = -lglut -lGL -lGLU INCPATH = -I$(FREEGLUT)/include LIBPATH = -L$(FREEGLUT)/lib all: primitives polygons clean: rm -f *.o primitives primitives.o: primitives.cc color.h $(CXX) $(CFLAGS) $(INCPATH) -c -o $@ $< primitives: primitives.o $(CXX) $(CFLAGS) $(INCPATH) -o $@ $< $(LIBPATH) $(LIBS) polygons.o: polygons.cc color.h $(CXX) $(CFLAGS) $(INCPATH) -c -o $@ $< polygons: polygons.o $(CXX) $(CFLAGS) $(INCPATH) -o $@ $< $(LIBPATH) $(LIBS)