1 BIN_DIR = /usr/local/bin
6 helm-cic_transformations \
7 helm-cic_textual_parser2 \
8 # helm-mathql_interpreter \
9 # helm-mathql_generator \
16 REQUIRES = $(TEST_REQUIRES) #gdome2-xslt helm-hbugs lablgtk2.init lablgtk2.glade
19 -package "$(REQUIRES)" -predicates "$(PREDICATES)" #-pp camlp4o -thread
21 OCAMLDEBUGOPTIONS = -g
22 OCAMLC = $(OCAMLFIND) ocamlc $(OCAMLDEBUGOPTIONS) $(OCAMLOPTIONS)
23 OCAMLOPT = $(OCAMLFIND) ocamlopt $(OCAMLOPTIONS)
24 OCAMLDEP = $(OCAMLFIND) ocamldep #-pp camlp4o
25 OCAMLDEBUG = wowcamldebug
27 LIBRARIES = $(shell $(OCAMLFIND) query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(REQUIRES))
28 LIBRARIES_OPT = $(shell $(OCAMLFIND) query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(REQUIRES))
29 TEST_LIBRARIES = $(shell $(OCAMLFIND) query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(TEST_REQUIRES))
30 TEST_LIBRARIES_OPT = $(shell $(OCAMLFIND) query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(TEST_REQUIRES))
36 $(MAKE) -C ../hbugs/ start
38 $(MAKE) -C ../hbugs/ stop
45 $(INTERFACE_FILES) $(INTERFACE_FILES:%.mli=%.ml) \
49 TOPLEVELOBJS = $(INTERFACE_FILES:%.mli=%.cmo) \
53 # disambiguatingParser.cmo \
55 # REGTESTOBJS = $(TESTOBJS) regtest.cmo
56 # TESTLIBOBJS = $(TESTOBJS) testlibrary.cmo
58 $(INTERFACE_FILES:%.mli=%.cmo): $(LIBRARIES)
59 $(INTERFACE_FILES:%.mli=%.cmx): $(LIBRARIES_OPT)
62 $(OCAMLDEP) $(DEPOBJS) > .depend
64 saturation: $(TOPLEVELOBJS) $(LIBRARIES)
65 $(OCAMLC) -thread -linkpkg -o $@ $(TOPLEVELOBJS)
66 saturation.opt: $(TOPLEVELOBJS:.cmo=.cmx) $(LIBRARIES_OPT)
67 $(OCAMLOPT) -thread -linkpkg -o $@ $(TOPLEVELOBJS:.cmo=.cmx)
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 cp gTopLevel gTopLevel.opt $(BIN_DIR)
85 rm -f $(BIN_DIR)/gTopLevel $(BIN_DIR)/gTopLevel.opt
87 .PHONY: install uninstall clean test
89 INTESTS := $(wildcard tests/*.cic)
90 OUTTESTS := $(patsubst %, %.test, $(INTESTS))
94 tests/%.cic.test: tests/%.cic regtest
95 time ./regtest -gen $<
97 ./regtest $(INTESTS) 2> /dev/null
99 ./regtest.opt $(INTESTS) 2> /dev/null
101 ./regtest -dump $(INTESTS) 2> /dev/null
102 envtest.opt: regtest.opt
103 ./regtest.opt -dump $(INTESTS) 2> /dev/null
104 librarytest: testlibrary
105 ./testlibrary -vars -varsprefix cic:/Coq index.txt 2>/dev/null >LOG
106 librarytest.opt: testlibrary.opt
107 ./testlibrary.opt -vars -varsprefix cic:/Coq index.txt 2>/dev/null >LOG
108 typecheck_uri: typecheck_uri.ml
109 $(OCAMLFIND) ocamlc -thread -package helm-cic_proof_checking -linkpkg -o $@ $<
110 typecheck_uri.opt: typecheck_uri.ml
111 $(OCAMLFIND) opt -thread -package helm-cic_proof_checking -linkpkg -o $@ $<
116 echo "load_printer \"threads.cma\"" > .debug_script
117 $(OCAMLFIND) query -recursive -predicates "mt,byte" -a-format \
118 helm-cic_unification | \
119 sed 's/\(.*\)/load_printer "\1"/' \
121 echo "install_printer CicMetaSubst.fppsubst" >> .debug_script
122 echo "install_printer CicMetaSubst.fppterm" >> .debug_script
123 echo "install_printer CicMetaSubst.fppmetasenv" >> .debug_script
124 ledit $(OCAMLDEBUG) \
125 -source .debug_script \
127 $(shell $(OCAMLFIND) query -recursive -i-format $(REQUIRES)) \
130 ifneq ($(MAKECMDGOALS), depend)