PACKAGE = cic_notation NULL = REQUIRES = \ helm-cic \ helm-utf8_macros \ camlp4.gramlib \ ulex \ $(NULL) INTERFACE_FILES = \ cicNotationLexer.mli \ cicNotationParser.mli \ $(NULL) IMPLEMENTATION_FILES = \ cicNotationPt.ml \ $(patsubst %.mli, %.ml, $(INTERFACE_FILES)) \ $(NULL) all: LOCAL_LINKOPTS = -package helm-cic_notation -linkpkg test: test_lexer test_parser test_lexer: test_lexer.ml $(PACKAGE).cma $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $< test_parser: test_parser.ml $(PACKAGE).cma $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $< cicNotationLexer.cmo: OCAMLC = $(OCAMLC_P4) cicNotationParser.cmo: OCAMLC = $(OCAMLC_P4) cicNotationLexer.cmx: OCAMLC = $(OCAMLC_P4) cicNotationParser.cmx: OCAMLC = $(OCAMLC_P4) clean: extra_clean distclean: extra_clean rm -f macro_table.dump extra_clean: rm -f test_lexer test_parser include ../Makefile.common OCAMLARCHIVEOPTIONS += -linkall disambiguateTypes.cmi: disambiguateTypes.mli $(OCAMLC) -c -rectypes $< disambiguateTypes.cmo: disambiguateTypes.ml disambiguateTypes.cmi $(OCAMLC) -c -rectypes $< disambiguateTypes.cmx: disambiguateTypes.ml disambiguateTypes.cmi $(OCAMLOPT) -c -rectypes $<