Makefile 1.0 KB

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