diff options
author | tomsmeding <hallo@tomsmeding.nl> | 2015-10-23 12:23:11 +0200 |
---|---|---|
committer | tomsmeding <hallo@tomsmeding.nl> | 2015-10-23 12:23:11 +0200 |
commit | e22b0edd4822ad5030d19d8fdb61511690e34239 (patch) | |
tree | 4d46b2f0ba77c67ce95a271402ea581370a27843 /Makefile | |
parent | b5077ff9a36c89c84c04f33dce3a2a0ff45e9184 (diff) |
handwapper
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 27 |
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 |