X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=exercises%2Fch01%2FMakefile;fp=exercises%2Fch01%2FMakefile;h=65c4991200cb185252999501e24d9b0aac774aa6;hb=e6273b7a7190179063077be80b6616992d557ad2;hp=0000000000000000000000000000000000000000;hpb=04a32c23778abecbf5bb062de7c7be7a2fed18aa;p=tiger.ml.git diff --git a/exercises/ch01/Makefile b/exercises/ch01/Makefile new file mode 100644 index 0000000..65c4991 --- /dev/null +++ b/exercises/ch01/Makefile @@ -0,0 +1,20 @@ +MAKEFLAGS := --no-builtin-rules + +OCAMLC_OPTIONS := -w A -warn-error A +OCAMLC_BYTE := ocamlc.opt $(OCAMLC_OPTIONS) + +.PHONY: build clean + +build : straight_line_program_interpreter + +%: %.ml %.cmo %.cmi + $(OCAMLC_BYTE) -o $@ $*.cmo + +%.cmi: %.mli + $(OCAMLC_BYTE) -o $@ -c $< + +%.cmo: %.ml %.cmi + $(OCAMLC_BYTE) -c $< + +clean: + rm -f straight_line_program_interpreter