Makefile 974 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #Tahmid Rahman
  2. #Dylan Jeffers
  3. #Makefile for Algorithms Final Project
  4. #On SPLAVL Trees
  5. CXX = g++
  6. CXXFLAGS = -g -Wall
  7. INCLUDES = BST.h \
  8. pair.h \
  9. library/arrayQueue.h library/list.h library/circularArrayList.h \
  10. library/queue.h \
  11. SplayTree.h SplayTree-inl.h SplayTree-private-inl.h \
  12. AVLTree.h AVLTree-inl.h AVLTree-private-inl.h \
  13. SPLAVL.h SPLAVL-inl.h SPLAVL-private-inl.h
  14. PROGRAMS = testSplay testSPLAVL cheatDetector
  15. PROGRAMS = testSplay testSPLAVL cheatDetector randomInput
  16. all: $(PROGRAMS)
  17. testSplay: $(INCLUDES) $(OBJECTS) testSplay.cpp
  18. $(CXX) $(CXXFLAGS) -o $@ $@.cpp $(OBJECTS)
  19. testSPLAVL: $(INCLUDES) $(OBJECTS) testSPLAVL.cpp
  20. $(CXX) $(CXXFLAGS) -o $@ $@.cpp $(OBJECTS)
  21. cheatDetector: $(INCLUDES) $(OBJECTS) cheatDetector.cpp
  22. $(CXX) $(CXXFLAGS) -o $@ $@.cpp $(OBJECTS)
  23. randomInput: $(INCLUDES) $(OBJECTS) randomInput.cpp
  24. $(CXX) $(CXXFLAGS) -o $@ $@.cpp $(OBJECTS)
  25. clean:
  26. rm -f *.o $(PROGRAMS)
  27. .PHONY: all clean