# generic makefile for cps 06/100E/100 #set up C++ suffixes and relationship between .cc and .o files # for cs machines #BASE = /usr/project/courses/cps008/lib # for acpub machines BASE = /afs/acpub.duke.edu/users8/ola/courses/lib TLIB = $(BASE)/libtapestry.a INCLUDES = $(BASE) .SUFFIXES: .cc .cc.o: $(CC) $(CFLAGS) -c $< .cc : $(CC) $(CFLAGS) $< -o $@ -lm $(TLIB) -lg++ #set up compiler and options CC = g++ -I$(INCLUDES) CFLAGS = -g # # ******************* program specific options below ************** # playgame.o: guess.h guess.o: guess.h OBJS = guess.o playgame.o playgame: $(OBJS) $(CC) $(CFLAGS) -o playgame $(OBJS) $(TLIB) clean: /bin/rm *.o