From 303aac14a89cb6b6dc312b3bbadfb6c0051694d9 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Mon, 2 Jul 2018 21:39:12 +0200 Subject: Add competition manager --- competition/Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 competition/Makefile (limited to 'competition/Makefile') 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 $@ $< -- cgit v1.2.3-70-g09d2