#Makefile for hypercube visualization program # #Targets: # # all - Removes all built files and remakes a1 # clean - Cleans all built files, save the executable # distclean - removes all built files including the executable EXPENDABLES = nd.o EXECUTABLES = test FLAGS = -Wall -gstabs+ INCLUDES = -I/usr/X11R6/include/ LIBRARIES = -lX11 -lGL -lGLU -lglut -lXmu -lXi -L/usr/X11R6/lib nd.o: nd.h nd.cpp g++ $(FLAGS) -c nd.cpp test: test.cpp nd.o g++ $(FLAGS) test.cpp nd.o -o test $(LIBRARIES) clean: rm -f $(EXPENDABLES) distclean: rm -f $(EXPENDABLES) $(EXECUTABLES) all: rm -f $(EXPENDABLES) $(EXECUTABLES) @make $(EXECUTABLES) emacsclean: rm -f ./*.*~