summaryrefslogtreecommitdiff
path: root/competition/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'competition/Makefile')
-rw-r--r--competition/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/competition/Makefile b/competition/Makefile
new file mode 100644
index 0000000..a39c58d
--- /dev/null
+++ b/competition/Makefile
@@ -0,0 +1,21 @@
+CXX = g++
+CXXFLAGS = -Wall -Wextra -O3 -std=c++17 -fwrapv -flto
+
+TARGET = competition
+
+SOURCES := $(wildcard *.cpp) ../board.cpp
+HEADERS := $(wildcard *.h) ../board.h
+
+.PHONY: all clean
+
+all: $(TARGET)
+
+clean:
+ rm -f $(TARGET) *.o
+
+
+competition: $(SOURCES:.cpp=.o)
+ $(CXX) $(CXXFLAGS) $^ -o $@
+
+%.o: %.cpp $(HEADERS)
+ $(CXX) $(CXXFLAGS) -c -o $@ $<