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