33 lines
728 B
Makefile
33 lines
728 B
Makefile
EX=reflex2q3
|
|
CC=g++
|
|
CFLAGS=-std=c++11 -I"./includes" -I"./includes/Catch/single_include" -I"./includes/cxxopts/include" -I"/usr/include/eigen3"
|
|
TESTEX=test/catch
|
|
|
|
all: main test
|
|
|
|
main: planes.o brushdef.o oopless-parser.o EntityConverter.o
|
|
$(CC) $^ main.cpp $(CFLAGS) -o $(EX) 2>error8.log
|
|
|
|
test: EntityConverter.o catch.o
|
|
$(CC) $^ $(CFLAGS) -o $(TESTEX)
|
|
mv test/catch ../.git/hooks/pre-commit
|
|
|
|
catch.o: test/catch.cpp
|
|
$(CC) -c $^ $(CFLAGS)
|
|
|
|
oopless-parser.o: includes/oopless-parser.cpp
|
|
$(CC) -c $^ $(CFLAGS)
|
|
|
|
brushdef.o: includes/brushdef.cpp
|
|
$(CC) -c $^ $(CFLAGS)
|
|
|
|
planes.o: includes/planes.cpp
|
|
$(CC) -c $^ $(CFLAGS)
|
|
|
|
EntityConverter.o: includes/EntityConverter.cpp
|
|
$(CC) -c $^ $(CFLAGS)
|
|
|
|
clean:
|
|
rm *.o *.log $(EX)
|
|
|