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: plot clean: rm -f *.o plot plot.o: plot.cc color.h $(CXX) $(CFLAGS) $(INCPATH) -c -o $@ $< plot: plot.o $(CXX) $(CFLAGS) $(INCPATH) -o $@ $< $(LIBPATH) $(LIBS)