1 BIN_DIR = /usr/local/bin
6 helm-cic_transformations \
7 helm-cic_textual_parser2
9 REQUIRES = $(TEST_REQUIRES)
12 -package "$(REQUIRES)" -predicates "$(PREDICATES)" #-pp camlp4o -thread
14 OCAMLDEBUGOPTIONS = -g
15 OCAMLC = $(OCAMLFIND) ocamlc $(OCAMLDEBUGOPTIONS) $(OCAMLOPTIONS)
16 OCAMLOPT = $(OCAMLFIND) ocamlopt $(OCAMLOPTIONS)
17 OCAMLDEP = $(OCAMLFIND) ocamldep #-pp camlp4o
18 OCAMLDEBUG = wowcamldebug
20 LIBRARIES = $(shell $(OCAMLFIND) query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(REQUIRES))
21 LIBRARIES_OPT = $(shell $(OCAMLFIND) query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(REQUIRES))
22 TEST_LIBRARIES = $(shell $(OCAMLFIND) query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(TEST_REQUIRES))
23 TEST_LIBRARIES_OPT = $(shell $(OCAMLFIND) query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(TEST_REQUIRES))
33 $(INTERFACE_FILES) $(INTERFACE_FILES:%.mli=%.ml) \
36 discrimination_tree.ml \
41 TOPLEVELOBJS = $(INTERFACE_FILES:%.mli=%.cmo) \
44 discrimination_tree.cmo \
47 TESTOBJS = $(INTERFACE_FILES:%.mli=%.cmo) \
50 discrimination_tree.cmo \
52 # REGTESTOBJS = $(TESTOBJS) regtest.cmo
53 # TESTLIBOBJS = $(TESTOBJS) testlibrary.cmo
55 $(INTERFACE_FILES:%.mli=%.cmo): $(LIBRARIES)
56 $(INTERFACE_FILES:%.mli=%.cmx): $(LIBRARIES_OPT)
59 $(OCAMLDEP) $(DEPOBJS) > .depend
61 saturation: $(TOPLEVELOBJS) $(LIBRARIES)
62 $(OCAMLC) -thread -linkpkg -o $@ $(TOPLEVELOBJS)
63 saturation.opt: $(TOPLEVELOBJS:.cmo=.cmx) $(LIBRARIES_OPT)
64 $(OCAMLOPT) -thread -linkpkg -o $@ $(TOPLEVELOBJS:.cmo=.cmx)
66 test_indexing: $(TESTOBJS) $(TEST_LIBRARIES)
67 $(OCAMLC) -linkpkg -o $@ $(TESTOBJS)
69 .SUFFIXES: .ml .mli .cmo .cmi .cmx
77 $(TOPLEVELOBJS): $(LIBRARIES)
78 $(TOPLEVELOBJS:.cmo=.cmx)): $(LIBRARIES_OPT)
81 rm -f *.cm[iox] *.o saturation{,.opt} regtest{,.opt} testlibrary{,.opt}
83 ifneq ($(MAKECMDGOALS), depend)