v2 / vlib / v / tests / bench / gcboehm / Makefile
66 lines · 50 sloc · 1.5 KB · 10bf974cda32f1de9916662ddc5da59747ad3baf
Raw
1.PHONY: all
2
3all: GC_bench_non_opt.pdf GC_bench_full.pdf GC_bench_incr.pdf GC_bench_opt.pdf GC_bench.pdf Resources.pdf
4
5GC_bench_non_opt.pdf: GC_bench_non_opt.plt boehm_full.txt boehm_incr.txt
6 gnuplot $<
7 @echo "$@ created"
8
9GC_bench_full.pdf: GC_bench_full.plt boehm_full.txt boehm_full_opt.txt
10 gnuplot $<
11 @echo "$@ created"
12
13GC_bench_incr.pdf: GC_bench_incr.plt boehm_incr.txt boehm_incr_opt.txt
14 gnuplot $<
15 @echo "$@ created"
16
17GC_bench_opt.pdf: GC_bench_opt.plt boehm_full_opt.txt boehm_incr_opt.txt
18 gnuplot $<
19 @echo "$@ created"
20
21GC_bench.pdf: GC_bench.plt boehm_full.txt boehm_incr_opt.txt
22 gnuplot $<
23 @echo "$@ created"
24
25Resources.pdf: Resources.plt resources.txt
26 gnuplot $<
27 @echo "$@ created"
28
29boehm_full.txt: GC_bench_full
30 sync
31 sleep 1
32 ./$< > $@
33
34boehm_incr.txt: GC_bench_incr
35 sync
36 sleep 1
37 ./$< > $@
38
39boehm_full_opt.txt: GC_bench_full_opt
40 sync
41 sleep 1
42 ./$< > $@
43
44boehm_incr_opt.txt: GC_bench_incr_opt
45 sync
46 sleep 1
47 ./$< > $@
48
49GC_bench_full: GC_bench.v
50 v -prod -gc boehm_full -o $@ $<
51
52GC_bench_incr: GC_bench.v
53 v -prod -gc boehm_incr -o $@ $<
54
55GC_bench_full_opt: GC_bench.v
56 v -prod -gc boehm_full_opt -o $@ $<
57
58GC_bench_incr_opt: GC_bench.v
59 v -prod -gc boehm_incr_opt -o $@ $<
60
61clean:
62 rm -f boehm_full.txt boehm_incr.txt boehm_full_opt.txt boehm_incr_opt.txt \
63 GC_bench_non_opt.pdf GC_bench_full.pdf GC_bench_incr.pdf \
64 GC_bench_opt.pdf GC_bench.pdf Resources.pdf \
65 GC_bench_full GC_bench_incr GC_bench_full_opt GC_bench_incr_opt \
66 GC_bench.svg Resources.svg
67