# Makefile PUB = /home/cs228/public CPP = $(PUB)/bin/ansicpp HDIR = $(PUB)/include LIB = $(PUB)/lib # the folling tells the compiler where to find prompt.h INCLUDES = -I$(HDIR) OBJECTS = selsort.o $(LIB)/prompt.o IOVec.o Sort.o .SUFFIXES: .C .C.o: $(CPP) $(INCLUDES) -c $(CPPFLAGS) $< selsort.exe: $(OBJECTS) $(CPP) -o selsort.exe $(OBJECTS) $(LIBS) selsort.o: selsort.C IOVec.h Sort.h $(LIB)/prompt.o: cd ../prompt; make clean: rm -f *.o *.exe cleanall: clean rm -f *~ core