Makefile 706 B

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