Makefile 437 B

12345678910111213141516171819202122232425262728
  1. CC=g++
  2. DEV=-Wall -g -std=c++14
  3. OPT=-O3 -std=c++14
  4. JSON=json.hpp
  5. SORTING_SOURCES=AlgorithmA.cxx AlgorithmB.cxx AlgorithmC.cxx AlgorithmD.cxx createdata.cxx
  6. SORTING_EXE=$(SORTING_SOURCES:.cxx=.exe)
  7. .PHONY: all
  8. all: $(SORTING_EXE)
  9. # Executables
  10. $(SORTING_EXE): %.exe: %.cxx $(JSON)
  11. $(CC) $(DEV) -o $@ $<
  12. # Build
  13. .PHONY: clean
  14. clean:
  15. rm -f *.o
  16. rm -f *.o3
  17. rm -f *.exe
  18. rm -rf *.exe.dSYM
  19. .PHONY: update
  20. update:
  21. make clean
  22. make all