reflex2q3/Makefile

58 lines
2.4 KiB
Makefile

EX=reflex2q3
CC=g++
CFLAGS=-static -static-libgcc -static-libstdc++ -I"/mingw64/include/eigen3" -I"include" -I"lib/Catch/single_include/catch2" -I"lib/cxxopts/include" -I"/usr/include/eigen3"
TESTEX=runtests
all: main test
main: planes.o brushdef.o oopless-parser.o EntityConverter.o
$(CC) $^ src/main.cpp $(CFLAGS) -o $(EX)
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:
rm *.o $(EX)
# From https://github.com/philsquared/Catch
# 64a53355..908c370f Catch1.x -> origin/Catch1.x
# * [new branch] devel -> origin/devel
# * [new branch] devel-refactorings-virtuals -> origin/devel-refactorings-virtuals
# * [new branch] v2.x -> origin/v2.x
# * [new tag] v2.13.10 -> v2.13.10
# * [new tag] v2.13.2 -> v2.13.2
# * [new tag] v2.13.3 -> v2.13.3
# * [new tag] v2.13.4 -> v2.13.4
# * [new tag] v2.13.5 -> v2.13.5
# * [new tag] v2.13.6 -> v2.13.6
# * [new tag] v2.13.7 -> v2.13.7
# * [new tag] v2.13.8 -> v2.13.8
# * [new tag] v2.13.9 -> v2.13.9
# * [new tag] v3.0.0-preview3 -> v3.0.0-preview3
# * [new tag] v3.0.0-preview4 -> v3.0.0-preview4
# * [new tag] v3.0.0-preview5 -> v3.0.0-preview5
# * [new tag] v3.0.1 -> v3.0.1
# * [new tag] v3.1.0 -> v3.1.0
# * [new tag] v3.1.1 -> v3.1.1
# * [new tag] v3.2.0 -> v3.2.0
# * [new tag] v3.2.1 -> v3.2.1
# * [new tag] v3.3.0 -> v3.3.0
# * [new tag] v3.3.1 -> v3.3.1
# * [new tag] v3.3.2 -> v3.3.2