# on turing, use next line; on other platforms use following CROSS=-m32 #CROSS= CC=g++ CFLAGS=-g -Wall $(CROSS) LFLAGS=$(CROSS) OBJS=BoundedStackA.o BoundedStackB.o WebHistoryDriver.o all: WebHistoryDriver # rule for building the executable WebHistoryDriver: $(OBJS) $(CC) -o WebHistoryDriver $(LFLAGS) $(OBJS) # list of file dependencies BoundedStackA.o: BoundedStack.h BoundedStackA.h BoundedStackB.o: BoundedStack.h BoundedStackB.h WebHistoryDriver.o: BoundedStack.h BoundedStackA.h BoundedStackB.h # the following rule is used to compile .cpp files to .o .cpp.o: $(CC) $(CFLAGS) -c $< # the following removes all .o files, but leaves the executable clean: rm -f *.o