+# special command line arguments for 'split' micro benchmark
+$O/stats/split.c.csv $O/stats/split.a.csv: override args := micro/bible.txt 2
+
+# special command line arguments for 'voronoi' micro benchmark
+$O/stats/voronoi.c.csv $O/voronoi/split.a.csv: override args := -n 30000
+
+
+# dil
+######
+
+DIL_SRC = $(wildcard dil/src/*.d dil/src/cmd/*.d dil/src/util/*.d \
+ dil/src/dil/*.d dil/src/dil/*/*.d)
+
+.PHONY: dil-gc-build
+dil-gc-build: $O/bin/dil
+$O/bin/dil: override DFLAGS += -Idil/src
+$O/bin/dil: $(patsubst %.d,$O/%.o,$(DIL_SRC)) $(LIBTANGO)
+ $(P_DC) $(DC) $(LDFLAGS) -L-lmpfr -L-lgmp -of$@ $^
+
+
+# common rules
+###############
+
+.PRECIOUS: $O/%.o
+$O/%.o: %.d
+ $(P_DC) $(DC) -c $(DFLAGS) -of$@ $^
+
+.PRECIOUS: $O/stats/%.c.csv $O/stats/%.a.csv
+$O/stats/%.c.csv $O/stats/%.a.csv: $O/bin/%
+ $(P_RUN) D_GC_STATS=1 ./$< $(args)
+ $P mv gc-collections.csv $O/stats/$*.c.csv
+ $P mv gc-mallocs.csv $O/stats/$*.a.csv
+
+.PRECIOUS: $O/stats/%.h.csv
+$O/stats/%.h.csv: $O/stats/%.a.csv hist.awk
+ $(P_AWK) awk -F, -f $(lastword $^) $< > $@