-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
17 lines (12 loc) · 1.13 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
all:
sbcl --load build.lisp "$@"
clean:
rm -f play_icfp2015 result.txt
test: all
time ./play_icfp2015 -p "ei!" -p "yuggoth" -p "ia! ia!" -p "r'lyeh" -f $(PROBLEM) > test.txt
tests: all
time ./play_icfp2015 -f problems/problem_0.json -f problems/problem_1.json -f problems/problem_2.json -f problems/problem_3.json -f problems/problem_4.json -f problems/problem_5.json -f problems/problem_6.json -f problems/problem_7.json -f problems/problem_8.json -f problems/problem_9.json -f problems/problem_10.json -f problems/problem_11.json -f problems/problem_12.json -f problems/problem_13.json -f problems/problem_14.json -f problems/problem_15.json -f problems/problem_16.json -f problems/problem_17.json -f problems/problem_18.json -f problems/problem_19.json -f problems/problem_20.json -f problems/problem_21.json -f problems/problem_22.json -f problems/problem_23.json -p "ei!" -p "yuggoth" > result.txt
all-solutions: $(patsubst %,%.solution,$(basename $(wildcard problems/*.json)))
HEAP_SIZE?=1000
problems/%.solution : problems/%.json
time ./play_icfp2015 --dynamic-space-size $(HEAP_SIZE) -f $< -p "ei!" -p "yuggoth" -p "ia! ia!" -p "r'lyeh" > $@