summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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