]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/fix_params/Makefile
First version of fix_params into CVS.
[helm.git] / helm / fix_params / Makefile
diff --git a/helm/fix_params/Makefile b/helm/fix_params/Makefile
new file mode 100644 (file)
index 0000000..24f3d48
--- /dev/null
@@ -0,0 +1,38 @@
+REQUIRES = helm-getter helm-cic_cache helm-xml
+PREDICATES =
+OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)"
+OCAMLDEP = ocamldep
+OCAMLFIND = ocamlfind
+OCAMLC = $(OCAMLFIND) ocamlc $(OCAMLOPTIONS)
+OCAMLOPT = $(OCAMLFIND) ocamlopt $(OCAMLOPTIONS)
+
+all: fix_params
+opt: fix_params.opt
+
+DEPOBJS = cic2Xml.ml cicFindParameters.ml fix_params.ml
+
+FIXPARAMSOBJS = cic2Xml.cmo cicFindParameters.cmo fix_params.cmo
+
+depend:
+       $(OCAMLDEP) $(DEPOBJS) > .depend
+
+fix_params: $(FIXPARAMSOBJS)
+       $(OCAMLC) -linkpkg -o fix_params $(FIXPARAMSOBJS)
+
+fix_params.opt: $(FIXPARAMSOBJS:.cmo=.cmx)
+       $(OCAMLOPT) -linkpkg -o fix_params.opt $(FIXPARAMSOBJS:.cmo=.cmx)
+
+.SUFFIXES: .ml .mli .cmo .cmi .cmx
+.ml.cmo:
+       $(OCAMLC) -c $<
+.mli.cmi:
+       $(OCAMLC) -c $<
+.ml.cmx:
+       $(OCAMLOPT) -c $<
+
+clean:
+       rm -f *.cm[iox] *.o fix_params fix_params.opt
+
+.PHONY: clean
+
+include .depend