Makefile 778 B

123456789101112131415161718192021222324252627282930313233
  1. EX=reflex2q3
  2. CC=g++
  3. CFLAGS=-std=c++11 -static -static-libgcc -static-libstdc++ -I"/mingw64/include/eigen3" -I"include" -I"lib/Catch/single_include" -I"lib/cxxopts/include" -I"/usr/include/eigen3"
  4. TESTEX=runtests
  5. all: main test
  6. main: planes.o brushdef.o oopless-parser.o EntityConverter.o
  7. $(CC) $^ src/main.cpp $(CFLAGS) -o $(EX)
  8. test: planes.o brushdef.o oopless-parser.o EntityConverter.o catch.o
  9. $(CC) $^ $(CFLAGS) -o $(TESTEX)
  10. cp runtests .git/hooks/pre-commit
  11. catch.o: test/catch.cpp
  12. $(CC) -c $^ $(CFLAGS)
  13. oopless-parser.o: src/oopless-parser.cpp
  14. $(CC) -c $^ $(CFLAGS)
  15. brushdef.o: src/brushdef.cpp
  16. $(CC) -c $^ $(CFLAGS)
  17. planes.o: src/planes.cpp
  18. $(CC) -c $^ $(CFLAGS)
  19. EntityConverter.o: src/EntityConverter.cpp
  20. $(CC) -c $^ $(CFLAGS)
  21. clean:
  22. rm *.o $(EX)