CXX = g++
CXXFLAGS = -g

tests:	tests.o
	$(CXX) $^ -o $@

tests.o:	tests.cpp EmptyList.h NonEmptyList.h List.h

# Note that we've lost {List,EmptyList,NonEmptyList}.{cpp,o}
# because standard practice for template classes is to put everything
# in the header file.  See the comments in tests.cpp .

.PHONY:	clean

clean:
		rm -rf tests *.o
