# on turing, use next line; on other platforms, use the following line CROSS=-m32 #CROSS= CC=g++ CFLAGS=-g -Wall $(CROSS) LFLAGS=$(CROSS) OBJS=bday.o MenuDriver.o # rule for building the executable bday: $(OBJS) $(CC) -o bday $(LFLAGS) $(OBJS) all: bday # list of file dependencies bday.o: BTNode.h Binary_Tree.h Binary_Search_Tree.h MenuDriver.h bday.cpp MenuDriver.o: MenuDriver.h MenuDriver.tcc # 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