aboutsummaryrefslogtreecommitdiff
path: root/aberth/Makefile
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2019-04-14 15:27:13 +0200
committertomsmeding <tom.smeding@gmail.com>2019-04-14 17:35:21 +0200
commit7f72142fd6bb67d75acec68302bea9f5321acf93 (patch)
tree1d577b2a6b5d9c5ba8873de6a58bf40813ce37be /aberth/Makefile
parent8c2caac5099d3ba140b0bd25be6abc2344df9794 (diff)
New renderer using Aberth's method
Diffstat (limited to 'aberth/Makefile')
-rw-r--r--aberth/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/aberth/Makefile b/aberth/Makefile
new file mode 100644
index 0000000..c5a67cf
--- /dev/null
+++ b/aberth/Makefile
@@ -0,0 +1,20 @@
+CXX = g++
+CXXFLAGS = -Wall -Wextra -std=c++17 -O3 -fwrapv -ffast-math -march=native -mtune=native
+LDFLAGS = -pthread
+
+.PHONY: all clean remake
+
+all: aberth
+
+clean:
+ rm -f aberth *.o
+
+remake: clean
+ $(MAKE) all
+
+
+aberth: $(patsubst %.cpp,%.o,$(wildcard *.cpp)) ../lodepng.o
+ $(CXX) -o $@ $^ $(LDFLAGS)
+
+%.o: %.cpp $(wildcard *.h)
+ $(CXX) $(CXXFLAGS) -c -o $@ $<