Makefile 449 B

12345678910111213141516171819202122232425262728
  1. CC=g++
  2. DEV=-Wall -g -std=c++14
  3. OPT=-O3 -std=c++14
  4. .PHONY: all
  5. all: BSTSanityCheck CreateData
  6. CreateData: CreateData.cxx json.hpp
  7. $(CC) $(OPT) CreateData.cxx -o CreateData
  8. BSTSanityCheck: BSTSanityCheck.cxx BST.o
  9. $(CC) $(DEV) BSTSanityCheck.cxx BST.o -o BSTSanityCheck
  10. BST.o: BST.cpp BST.h
  11. $(CC) $(DEV) -c BST.cpp
  12. # Build
  13. .PHONY: clean
  14. clean:
  15. rm -f *.o
  16. rm -f *.exe
  17. rm -f *.h.gch
  18. rm -rf *dSYM
  19. .PHONY: update
  20. update:
  21. make clean
  22. make all