+$O/bin/dil-nop: $O/bin/dil
+ @$(P_LN) $(LN) -sf $(<F) $@
+
+
+# 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 $^) $< > $@
+
+.PRECIOUS: $O/stats/%.tics
+$O/stats/%.tics: $O/stats/%.h.csv tics.awk