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