Initial commit
[mlrogue.git] / Makefile
blob8c3cff483cc29f85b50b0b43cf071b2e0dbf123f
1 mlr: mlr.amd64-linux
2 heap2exec $< $@
4 mlr.amd64-linux: export CM_VERBOSE := false
5 mlr.amd64-linux: mlr.cm
6 $(MM)
7 ml-build $<
9 release: mlr.mlb rawmode.o
10 $(MM)
11 mlton -link-opt rawmode.o $<
13 # poor-man's -MM:
14 MM = @awk '$$1 ~ /\.sml$$/ {DEPS = DEPS " " $$1; } END {print "$@:" DEPS}' $< > $@.d
16 clean:
17 -rm -f mlr mlr.d mlr.amd64-linux mlr.amd64-linux.d rawmode.o
19 .PHONY: release clean
21 -include mlr.d
22 -include mlr.amd64-linux.d