WIP Red Black tree
[tiger.ml.git] / exercises / ch01 / Makefile
index 2912309..fa3761e 100644 (file)
@@ -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.
 
This page took 0.027501 seconds and 4 git commands to generate.