summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortomsmeding <hallo@tomsmeding.nl>2015-10-23 12:23:11 +0200
committertomsmeding <hallo@tomsmeding.nl>2015-10-23 12:23:11 +0200
commite22b0edd4822ad5030d19d8fdb61511690e34239 (patch)
tree4d46b2f0ba77c67ce95a271402ea581370a27843 /Makefile
parentb5077ff9a36c89c84c04f33dce3a2a0ff45e9184 (diff)
handwapper
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..8cbd306
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,27 @@
+CXX := g++
+CXXFLAGS := -Wall -Wextra -O2 -std=c++11
+
+SOURCES := $(wildcard *.cpp)
+BINARIES := $(SOURCES:.cpp=)
+
+space :=
+space += #$(space) now contains a space
+comma := ,
+
+PLAYERLIST := $(subst $(space),$(comma),$(filter player_%,$(BINARIES)))
+
+
+
+all: $(BINARIES)
+
+clean:
+ rm -f $(BINARIES)
+
+cleanlogs:
+ find playerlogs/ -type f -delete
+ find refereelogs/ -type f -delete
+
+remake: clean all
+
+competition: all
+ ./caiaio -f $(PLAYERLIST) -m manager