summaryrefslogtreecommitdiff
path: root/competition/Makefile
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2018-07-02 21:39:12 +0200
committerTom Smeding <tom.smeding@gmail.com>2018-07-02 21:39:12 +0200
commit303aac14a89cb6b6dc312b3bbadfb6c0051694d9 (patch)
treeabe190da9311e939878d15fdb471f5fbfd4215df /competition/Makefile
parent3c18dd46b52b1e45341df1f9423c1654462fbb09 (diff)
Add competition manager
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 $@ $<