1 BIN_DIR = /usr/local/bin
2 REQUIRES = helm-urimanager helm-cic_textual_parser helm-cic_proof_checking helm-mathql helm-mathql_interpreter
4 OCAMLOPTIONS = -I .. -package "$(REQUIRES)" -predicates "$(PREDICATES)"
5 OCAMLC = ocamlfind ocamlc $(OCAMLOPTIONS)
6 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))
17 TOPLEVELOBJS = ../mQueryLevels.cmo ../mQueryGenerator.cmo topLevel.cmo
20 $(OCAMLDEP) $(DEPOBJS) > .depend
22 topLevel: $(TOPLEVELOBJS) $(LIBRARIES)
23 $(OCAMLC) -linkpkg -o topLevel $(TOPLEVELOBJS)
25 topLevel.opt: $(TOPLEVELOBJS:.cmo=.cmx) $(LIBRARIES_OPT)
26 $(OCAMLOPT) -linkpkg -o topLevel.opt $(TOPLEVELOBJS:.cmo=.cmx)
28 .SUFFIXES: .ml .mli .cmo .cmi .cmx
31 .mli.cmi: $(LIBRARIES)
33 .ml.cmx: $(LIBRARIES_OPT)
37 rm -f *.cm[iox] *.o topLevel topLevel.opt
40 cp topLevel topLevel.opt $(BIN_DIR)
43 rm -f $(BIN_DIR)/topLevel $(BIN_DIR)/topLevel.opt
45 .PHONY: install uninstall clean