Makefile 434 B

123456789101112131415161718192021222324252627
  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 -rf *dSYM
  18. .PHONY: update
  19. update:
  20. make clean
  21. make all