# # Makefile: Editing of Tim Budd's "Makefile" for SUN compiler "cc" by # Bina Ramamurthy and Ken Regan, Fall 1996, and again by KWR in Spring 2000. # Unix Macros---choose which compiler and options here! CC = g++ # CC = g++ -fhandle-exceptions -frtti # CC = CC # name of the Sun C++ compiler if it's in your path. LIBS = -lm OBJ = .o RM = rm -fr # SYNTAX: Dependencies must be on same line as ":". Actions must # follow on succeeding line(s), and have at least one TAB indent. # Hence, be careful mouse-copying makefile text if tabs convert to spaces. all: footest # Invoke this via "make -f Anagrams.make clean". No "-" before "clean"! clean: $(RM) *$(OBJ) Templates.DB/* # Note that the header-only files "AbsISR.h" and "Cardbox.h" do not need # to be mentioned here, since they are automatically "#include"d. # Ditto for "CS250setup.h", "Exception.h" and the included "Animal_Files" file. # I hard-coded ".o" in place of the variable "$(OBJ)" to save room. Foo.o: Foo.cc Foo.h Bar.h $(CC) -c Foo.cc footest.o: footest.cc Foo.h Bar.h $(CC) -c footest.cc footest: Foo.o footest.o $(CC) -o footest footest.o Foo.o $(LIBS) # The .o file with main should come before all the other object files in the # final linking stage.