Makefile 946 B

1234567891011121314151617181920212223242526272829303132333435
  1. CXX = g++
  2. CXXFLAGS = -g -Wall
  3. #Remove the # below when you are ready to work with your AVLTree
  4. INCLUDES = BST.h \
  5. pair.h \
  6. library/arrayQueue.h library/list.h library/circularArrayList.h \
  7. library/queue.h \
  8. SplayTree.h SplayTree-inl.h SplayTree-private-inl.h \
  9. AVLTree.h AVLTree-inl.h AVLTree-private-inl.h \
  10. SPLAVL.h SPLAVL-inl.h SPLAVL-private-inl.h
  11. # If you create any new non-templated classes, add an appropriate .o file
  12. # to the OBJECTS definition below:
  13. OBJECTS =
  14. # If you create a new test program, add the name of the test program
  15. # to the PROGRAMS definition below and then create a rule for that program
  16. PROGRAMS = testSplay testSPLAVL
  17. all: $(PROGRAMS)
  18. testSplay: $(INCLUDES) $(OBJECTS) testSplay.cpp
  19. $(CXX) $(CXXFLAGS) -o $@ $@.cpp $(OBJECTS)
  20. testSPLAVL: $(INCLUDES) $(OBJECTS) testSPLAVL.cpp
  21. $(CXX) $(CXXFLAGS) -o $@ $@.cpp $(OBJECTS)
  22. clean:
  23. rm -f *.o $(PROGRAMS)
  24. .PHONY: all clean