1 REQUIRES = helm-xml helm-cic_proof_checking
2 PREDICATES = miniReduction
3 OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)" -pp camlp4o
6 OCAMLC = $(OCAMLFIND) ocamlc $(OCAMLOPTIONS)
7 OCAMLOPT = $(OCAMLFIND) ocamlopt $(OCAMLOPTIONS)
9 LIBRARIES = $(shell ocamlfind query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(REQUIRES))
10 LIBRARIES_OPT = $(shell ocamlfind query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(REQUIRES))
15 DEPOBJS = mk_forward.ml
17 MKFORWARDOBJS = mk_forward.cmo
20 $(OCAMLDEP) $(DEPOBJS) > .depend
22 mk_forward: $(MKFORWARDOBJS) $(LIBRARIES)
23 $(OCAMLC) -linkpkg -o mk_forward $(MKFORWARDOBJS)
25 mk_forward.opt: $(MKFORWARDOBJS:.cmo=.cmx) $(LIBRARIES_OPT)
26 $(OCAMLOPT) -linkpkg -o mk_forward.opt $(MKFORWARDOBJS:.cmo=.cmx)
28 .SUFFIXES: .ml .mli .cmo .cmi .cmx
31 .mli.cmi: $(LIBRARIES)
33 .ml.cmx: $(LIBRARIES_OPT)
37 rm -f *.cm[iox] *.o mk_forward mk_forward.opt