]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/binaries/utilities/Makefile
milestone in basic_2, λδ-2A reconstructed
[helm.git] / helm / software / components / binaries / utilities / Makefile
index 314136db57dabda1d015fd7df4f030898d4c8e53..db76fb51da13d904bb3c88bb5348d491cec790e8 100644 (file)
@@ -2,7 +2,7 @@ H=@
 
 UTILITIES = create_environment parse_library list_uris test_library
 UTILITIES_OPT = $(patsubst %,%.opt,$(UTILITIES))
-LINKOPTS = -linkpkg -thread
+LINKOPTS = -linkpkg -rectypes -thread
 LIBS = helm-cic_proof_checking
 OCAMLC = $(OCAMLFIND) ocamlc $(LINKOPTS) -package $(LIBS)
 OCAMLOPT = $(OCAMLFIND) opt $(LINKOPTS) -package $(LIBS)
@@ -23,7 +23,19 @@ depend:
        $(H)ocamldep extractor.ml extractor_manager.ml > .depend
 depend.opt: 
        $(H)echo "  OCAMLDEP -native"
-       $(H)ocamldep -native extractor.ml extractor_manager.ml > .depend
+       $(H)ocamldep -native extractor.ml extractor_manager.ml > .depend.opt
+       
+ifeq ($(MAKECMDGOALS),)
+  include .depend   
+endif
 
+ifeq ($(MAKECMDGOALS), all)
+  include .depend   
+endif
+
+ifeq ($(MAKECMDGOALS), opt)
+  include .depend.opt   
+endif
+       
 include ../../../Makefile.defs