1 BIN_DIR = /usr/local/bin
3 # unix helm-cic_textual_parser \
4 # helm-mathql helm-mathql_interpreter helm-mathql_generator
6 OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)"
7 OCAMLC = ocamlfind ocamlc $(OCAMLOPTIONS)
8 OCAMLOPT = ocamlfind ocamlopt $(OCAMLOPTIONS)
13 LIBRARIES = $(shell ocamlfind query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(REQUIRES))
14 LIBRARIES_OPT = $(shell ocamlfind query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(REQUIRES))
19 AUXOBJS = hxpTypes.ml hxpParser.ml hxpParser.mli hxpLexer.ml hxpXML.ml
25 $(OCAMLDEP) $(DEPOBJS) $(AUXOBJS) > .depend
27 hxp: hxpParser.cmi $(AUXOBJS:.ml=.cmo) $(HXPTOP:.ml=.cmo) $(LIBRARIES)
28 $(OCAMLC) -linkpkg -o hxp $(AUXOBJS:.ml=.cmo) $(HXPTOP:.ml=.cmo)
30 hxp.opt: $(AUXOBJS:.ml=.cmx) $(HXPTOP:.ml=.cmx) $(LIBRARIES_OPT)
31 $(OCAMLOPT) -linkpkg -o hxp.opt $(AUXOBJS:.ml=.cmx) $(HXPTOP:.ml=.cmx)
33 .SUFFIXES: .ml .mli .cmo .cmi .cmx .mly .mll
36 .mli.cmi: $(LIBRARIES)
38 .ml.cmx: $(LIBRARIES_OPT)
47 $(DEPOBJS:%.ml=%.cmo): $(LIBRARIES)
48 $(DEPOBJS:%.ml=%.cmx): $(LIBRARIES_OPT)
51 rm -f *.cm[iox] *.o hxp hxp.opt \
52 hxpParser.ml hxpParser.mli hxpLexer.ml
55 cp hxp hxp.opt $(BIN_DIR)
61 .PHONY: install uninstall clean
63 ifneq ($(MAKECMDGOALS), depend)