Makefile 753 B

123456789101112131415161718192021222324252627282930313233343536373839
  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: BSTSanityCheck CreateData AVLSanityCheck Test
  7. CreateData: CreateData.cxx json.hpp
  8. $(CC) $(OPT) CreateData.cxx -o CreateData
  9. BSTSanityCheck: BSTSanityCheck.cxx BST.o
  10. $(CC) $(DEV) BSTSanityCheck.cxx BST.o -o BSTSanityCheck
  11. AVLSanityCheck: AVLSanityCheck.cxx AVLCommands.o
  12. $(CC) $(DEV) AVLSanityCheck.cxx AVLCommands.o -o AVLSanityCheck
  13. Test: test.cpp AVLCommands.o
  14. $(CC) $(DEV) test.cpp AVLCommands.o -o Test
  15. BST.o: BST.cpp BST.h
  16. $(CC) $(DEV) -c BST.cpp
  17. AVLCommands.o: AVLCommands.cpp AVLCommands.h
  18. $(CC) $(DEV) -c AVLCommands.cpp
  19. # Build
  20. .PHONY: clean
  21. clean:
  22. rm -f *.o
  23. rm -f *.exe
  24. rm -f *.h.gch
  25. rm -rf *dSYM
  26. .PHONY: update
  27. update:
  28. make clean
  29. make all