2017-08-20 08:00:14 +05:30
|
|
|
EX=reflex2q3
|
|
|
|
CC=g++
|
2020-10-01 08:32:05 +05:30
|
|
|
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"
|
2017-08-26 13:37:14 +05:30
|
|
|
TESTEX=runtests
|
2017-08-20 08:00:14 +05:30
|
|
|
|
|
|
|
all: main test
|
|
|
|
|
|
|
|
main: planes.o brushdef.o oopless-parser.o EntityConverter.o
|
2017-08-24 09:00:27 +05:30
|
|
|
$(CC) $^ src/main.cpp $(CFLAGS) -o $(EX)
|
2017-08-20 08:00:14 +05:30
|
|
|
|
|
|
|
test: planes.o brushdef.o oopless-parser.o EntityConverter.o catch.o
|
|
|
|
$(CC) $^ $(CFLAGS) -o $(TESTEX)
|
|
|
|
cp runtests .git/hooks/pre-commit
|
|
|
|
|
|
|
|
catch.o: test/catch.cpp
|
|
|
|
$(CC) -c $^ $(CFLAGS)
|
|
|
|
|
|
|
|
oopless-parser.o: src/oopless-parser.cpp
|
|
|
|
$(CC) -c $^ $(CFLAGS)
|
|
|
|
|
|
|
|
brushdef.o: src/brushdef.cpp
|
|
|
|
$(CC) -c $^ $(CFLAGS)
|
|
|
|
|
|
|
|
planes.o: src/planes.cpp
|
|
|
|
$(CC) -c $^ $(CFLAGS)
|
|
|
|
|
|
|
|
EntityConverter.o: src/EntityConverter.cpp
|
|
|
|
$(CC) -c $^ $(CFLAGS)
|
|
|
|
|
|
|
|
clean:
|
2017-10-11 06:49:58 +05:30
|
|
|
rm *.o $(EX)
|
2017-08-20 08:00:14 +05:30
|
|
|
|