Makefile 799 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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
  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. BST.o: BST.cpp BST.h
  17. $(CC) $(DEV) -c BST.cpp
  18. AVLCommands.o: AVLCommands.cpp AVLCommands.h
  19. $(CC) $(DEV) -c AVLCommands.cpp
  20. # Build
  21. .PHONY: clean
  22. clean:
  23. rm -f *.o
  24. rm -f *.exe
  25. rm -f *.h.gch
  26. rm -rf *dSYM
  27. .PHONY: update
  28. update:
  29. make clean
  30. make all