PACKAGE = cic_notation REQUIRES = \ helm-utf8_macros \ ulex NOTATIONS = NULL = INTERFACE_FILES = \ cicNotationLexer.mli \ cicNotationParser.mli \ $(NULL) IMPLEMENTATION_FILES = \ $(patsubst %.mli, %.ml, $(INTERFACE_FILES)) \ $(patsubst %,%_notation.ml,$(NOTATIONS)) \ $(NULL) all: cicNotationLexer.cmo: cicNotationLexer.ml $(OCAMLC_P4) -c $< cicNotationLexer.cmx: cicNotationLexer.ml $(OCAMLOPT_P4) -c $< cicNotationParser.cmo: cicNotationParser.ml $(OCAMLC_P4) -c $< cicNotationParser.cmx: cicNotationParser.ml $(OCAMLOPT_P4) -c $< %_notation.cmo: %_notation.ml $(OCAMLC_P4) -c $< %_notation.cmx: %_notation.ml $(OCAMLOPT_P4) -c $< 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 $@ $< 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 $<