-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
48 lines (32 loc) · 1.24 KB
/
Makefile
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
CC=g++-8
CCFLAGS= -std=c++17
SRCS = main.cc $(wildcard ./world/*.cc) $(wildcard ./agent/*.cc)
OBJS = $(SRCS:.cc=.o)
MAIN = app
all: $(MAIN)
$(MAIN): $(OBJS)
$(CC) $(CCFLAGS) $(INCLUDES) -o $(MAIN) $(OBJS) $(LFLAGS) $(LIBS)
.cc.o:
$(CC) $(CCFLAGS) $(INCLUDES) -c $< -o $@
.PHONY: depend clean all-results clean-results
clean:
rm -f $(MAIN) $(OBJS)
depend: $(SRCS)
makedepend $(INCLUDES) $^
results:
mkdir -p results
results/setup1results.txt: app results
./app 1 80 50 50 10 100 0.01 > $@
results/setup2results.txt: app results
./app 2 80 50 50 10 100 0.01 > $@
results/setup3setting1TFTresults.txt: app results
./app 3 80 50 50 10 100 0.01 0.5 0 0 > $@
results/setup3setting2BBresults.txt: app results
./app 3 80 50 50 10 100 0.01 0 0.5 0 > $@
results/setup3setting3HybridResults.txt: app results
./app 3 80 50 50 10 100 0.01 0 0 0.5 > $@
results/setup3setting4TournamentResults.txt: app results
./app 3 80 50 50 10 100 0.01 0.25 0.25 0.25 > $@
all-results: results/setup1results.txt results/setup2results.txt results/setup3setting1TFTresults.txt results/setup3setting3HybridResults.txt results/setup3setting2BBresults.txt results/setup3setting4TournamentResults.txt
clean-results:
rm -rf results