Makefile 882 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. CC=g++
  2. DEV=-Wall -g -std=c++14
  3. OPT=-O3 -std=c++14
  4. JSON=json.hpp
  5. .PHONY: all
  6. all: AVLSanityCheck Test bstTest
  7. #all: BSTSanityCheck CreateData AVLSanityCheck Test
  8. #CreateData: CreateData.cxx json.hpp
  9. # $(CC) $(OPT) CreateData.cxx -o CreateData.exe
  10. #BSTSanityCheck: BSTSanityCheck.cxx BST.o
  11. # $(CC) $(DEV) BSTSanityCheck.cxx BST.o -o BSTSanityCheck.exe
  12. AVLSanityCheck: AVLSanityCheck.cxx AVLCommands.o
  13. $(CC) $(DEV) AVLSanityCheck.cxx AVLCommands.o -o AVLSanityCheck.exe
  14. Test: test.cpp AVLCommands.o
  15. $(CC) $(DEV) test.cpp AVLCommands.o -o Test.exe
  16. bstTest: bstTest.cpp BST.o
  17. $(CC) $(DEV) bstTest.cpp BST.o -o bstTest.exe
  18. BST.o: BST.cpp BST.h
  19. $(CC) $(DEV) -c BST.cpp
  20. AVLCommands.o: AVLCommands.cpp AVLCommands.h
  21. $(CC) $(DEV) -c AVLCommands.cpp
  22. # Build
  23. .PHONY: clean
  24. clean:
  25. rm -f *.o
  26. rm -f *.exe
  27. rm -f *.h.gch
  28. rm -rf *dSYM
  29. .PHONY: update
  30. update:
  31. make clean
  32. make all