CROSS= CC=g++ CFLAGS=-g -Wall $(CROSS) LFLAGS=$(CROSS) OBJS=testAVL.o all: testAVL # rule for building the executable testBST: $(OBJS) $(CC) -o testAVL $(LFLAGS) $(OBJS) # redundant rules for other common "make ____" commands # that might be typed by a student BST: testBST # list of file dependencies testAVL.o: testAVL.cpp AVLTree.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