summaryrefslogtreecommitdiff
path: root/Makefile
blob: 8cbd3063d00803b62b94906dc7f0a4ecc868414d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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