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) \
39 TOPLEVELOBJS = $(INTERFACE_FILES:%.mli=%.cmo) \
43 TESTOBJS = $(INTERFACE_FILES:%.mli=%.cmo) \
45 test_path_indexing.cmo
46 # REGTESTOBJS = $(TESTOBJS) regtest.cmo
47 # TESTLIBOBJS = $(TESTOBJS) testlibrary.cmo
49 $(INTERFACE_FILES:%.mli=%.cmo): $(LIBRARIES)
50 $(INTERFACE_FILES:%.mli=%.cmx): $(LIBRARIES_OPT)
53 $(OCAMLDEP) $(DEPOBJS) > .depend
55 saturation: $(TOPLEVELOBJS) $(LIBRARIES)
56 $(OCAMLC) -thread -linkpkg -o $@ $(TOPLEVELOBJS)
57 saturation.opt: $(TOPLEVELOBJS:.cmo=.cmx) $(LIBRARIES_OPT)
58 $(OCAMLOPT) -thread -linkpkg -o $@ $(TOPLEVELOBJS:.cmo=.cmx)
60 test_path_indexing: $(TESTOBJS) $(TEST_LIBRARIES)
61 $(OCAMLC) -linkpkg -o $@ $(TESTOBJS)
63 .SUFFIXES: .ml .mli .cmo .cmi .cmx
71 $(TOPLEVELOBJS): $(LIBRARIES)
72 $(TOPLEVELOBJS:.cmo=.cmx)): $(LIBRARIES_OPT)
75 rm -f *.cm[iox] *.o saturation{,.opt} regtest{,.opt} testlibrary{,.opt}
77 ifneq ($(MAKECMDGOALS), depend)