X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=exercises%2Fch01%2FMakefile;h=fa3761e53e4875b40e877bad083ae4879774942d;hb=88cc262a0a05de03560b35950b763f41717b79b1;hp=291230982a67e2d9e0b8076eb40a8dceab4e8b59;hpb=06d3ef4a3b9b885a6e402327188d8abb152055f2;p=tiger.ml.git diff --git a/exercises/ch01/Makefile b/exercises/ch01/Makefile index 2912309..fa3761e 100644 --- a/exercises/ch01/Makefile +++ b/exercises/ch01/Makefile @@ -20,6 +20,18 @@ build : $(EXECUTABLES) %.cmo: %.ml %.cmi $(OCAMLC_BYTE) -c $< +tree : tree.ml tree.cmo tree_sig.cmo tree_unbalanced_vanilla.cmo tree_balanced_red_black.cmo + $(OCAMLC_BYTE) -o tree tree_sig.cmo tree_unbalanced_vanilla.cmo tree_balanced_red_black.cmo tree.cmo + +tree.cmo : tree.ml tree.cmi tree_sig.cmo tree_unbalanced_vanilla.cmo tree_balanced_red_black.cmo + $(OCAMLC_BYTE) -c $< + +tree_balanced_red_black.cmo : tree_balanced_red_black.ml tree_balanced_red_black.cmi tree_sig.cmo + ocamlc.opt -w A -warn-error A-4 -c $< + +tree_sig.cmo tree_sig.cmi: tree_sig.ml + $(OCAMLC_BYTE) -c $< + clean: rm -f $(EXECUTABLES) tree.dot # There's also tree.png, but I'm keeping it.