2017-05-05 19:33:26 -07:00
|
|
|
EX=reflex2q3
|
2017-04-06 18:23:47 -07:00
|
|
|
CC=g++
|
2017-07-03 22:19:50 -07:00
|
|
|
CFLAGS=-std=c++11 -I"./includes" -I"./includes/Catch/single_include" -I"./includes/cxxopts/include" -I"/usr/include/eigen3"
|
2017-06-06 18:22:54 -07:00
|
|
|
TESTEX=test/test-parser
|
2017-07-03 22:19:50 -07:00
|
|
|
UNITEX=test/catch
|
2017-04-06 18:23:47 -07:00
|
|
|
|
2017-07-02 20:22:09 -07:00
|
|
|
all: main
|
2017-04-06 18:23:47 -07:00
|
|
|
|
2017-06-06 18:22:54 -07:00
|
|
|
main: planes.o brushdef.o oopless-parser.o EntityConverter.o
|
2017-05-06 17:56:12 -07:00
|
|
|
$(CC) $^ main.cpp $(CFLAGS) -o $(EX) 2>error8.log
|
|
|
|
|
|
|
|
test: planes.o brushdef.o oopless-parser.o test-parser.o
|
2017-06-06 18:22:54 -07:00
|
|
|
$(CC) $^ $(CFLAGS) -o $(TESTEX)
|
2017-05-06 17:56:12 -07:00
|
|
|
|
2017-07-03 22:19:50 -07:00
|
|
|
unittest: EntityConverter.o catch.o
|
|
|
|
$(CC) $^ $(CFLAGS) -o $(UNITEX)
|
|
|
|
|
2017-05-06 17:56:12 -07:00
|
|
|
test-parser.o: test/test-parser.cpp
|
|
|
|
$(CC) -c $^ $(CFLAGS)
|
2017-04-06 18:23:47 -07:00
|
|
|
|
2017-07-03 22:19:50 -07:00
|
|
|
catch.o: test/catch.cpp
|
|
|
|
$(CC) -c $^ $(CFLAGS)
|
|
|
|
|
2017-05-05 19:33:26 -07:00
|
|
|
oopless-parser.o: includes/oopless-parser.cpp
|
2017-04-11 08:27:10 -07:00
|
|
|
$(CC) -c $^ $(CFLAGS)
|
2017-04-07 08:19:51 -07:00
|
|
|
|
2017-04-12 00:18:29 -07:00
|
|
|
brushdef.o: includes/brushdef.cpp
|
2017-04-11 08:27:10 -07:00
|
|
|
$(CC) -c $^ $(CFLAGS)
|
|
|
|
|
|
|
|
planes.o: includes/planes.cpp
|
|
|
|
$(CC) -c $^ $(CFLAGS)
|
2017-06-06 18:22:54 -07:00
|
|
|
|
|
|
|
EntityConverter.o: includes/EntityConverter.cpp
|
|
|
|
$(CC) -c $^ $(CFLAGS)
|
|
|
|
|
|
|
|
clean:
|
2017-07-03 22:19:50 -07:00
|
|
|
rm *.o *.log $(EX) $(TESTEX) $(UNITEX)
|
2017-06-06 18:22:54 -07:00
|
|
|
|