aboutsummaryrefslogtreecommitdiff
path: root/aberth/Makefile
diff options
context:
space:
mode:
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 $@ $<