reflex2q3/ReflexToQ3/Makefile

39 lines
884 B
Makefile
Raw Normal View History

2017-05-06 08:03:26 +05:30
EX=reflex2q3
2017-04-07 06:53:47 +05:30
CC=g++
CFLAGS=-std=c++11 -I"./includes" -I"./includes/Catch/single_include" -I"./includes/cxxopts/include" -I"/usr/include/eigen3"
TESTEX=test/test-parser
UNITEX=test/catch
2017-04-07 06:53:47 +05:30
all: main
2017-04-07 06:53:47 +05:30
main: planes.o brushdef.o oopless-parser.o EntityConverter.o
$(CC) $^ main.cpp $(CFLAGS) -o $(EX) 2>error8.log
test: planes.o brushdef.o oopless-parser.o test-parser.o
$(CC) $^ $(CFLAGS) -o $(TESTEX)
unittest: EntityConverter.o catch.o
$(CC) $^ $(CFLAGS) -o $(UNITEX)
test-parser.o: test/test-parser.cpp
$(CC) -c $^ $(CFLAGS)
2017-04-07 06:53:47 +05:30
catch.o: test/catch.cpp
$(CC) -c $^ $(CFLAGS)
2017-05-06 08:03:26 +05:30
oopless-parser.o: includes/oopless-parser.cpp
2017-04-11 20:57:10 +05:30
$(CC) -c $^ $(CFLAGS)
brushdef.o: includes/brushdef.cpp
2017-04-11 20:57:10 +05:30
$(CC) -c $^ $(CFLAGS)
planes.o: includes/planes.cpp
$(CC) -c $^ $(CFLAGS)
EntityConverter.o: includes/EntityConverter.cpp
$(CC) -c $^ $(CFLAGS)
clean:
rm *.o *.log $(EX) $(TESTEX) $(UNITEX)