]> matita.cs.unibo.it Git - helm.git/blob - helm/ocaml/cic_notation/Makefile
snapshot
[helm.git] / helm / ocaml / cic_notation / Makefile
1
2 PACKAGE = cic_notation
3 REQUIRES = \
4         helm-cic        \
5         helm-utf8_macros \
6         ulex
7 NULL =
8 INTERFACE_FILES = \
9         cicNotationLexer.mli    \
10         cicNotationParser.mli   \
11         $(NULL)
12 IMPLEMENTATION_FILES = \
13         cicNotationPt.ml        \
14         $(patsubst %.mli, %.ml, $(INTERFACE_FILES))     \
15         $(NULL)
16
17 all:
18
19 cicNotationLexer.cmo: cicNotationLexer.ml cicNotationLexer.cmi
20         $(OCAMLC_P4) -c $<
21 cicNotationLexer.cmx: cicNotationLexer.ml cicNotationLexer.cmi
22         $(OCAMLOPT_P4) -c $<
23 cicNotationParser.cmo: REQUIRES = helm-utf8_macros camlp4.gramlib helm-cic
24 cicNotationParser.cmo: cicNotationParser.ml cicNotationParser.cmi cicNotationLexer.cmi
25         $(OCAMLC_P4) -c $<
26 cicNotationParser.cmx: REQUIRES = helm-utf8_macros camlp4.gramlib
27 cicNotationParser.cmx: cicNotationParser.ml cicNotationParser.cmi cicNotationLexer.cmi
28         $(OCAMLOPT_P4) -c $<
29
30 LOCAL_LINKOPTS = -package helm-cic_notation -linkpkg
31 test: test_lexer test_parser
32 test_lexer: test_lexer.ml $(PACKAGE).cma
33         $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $<
34 test_parser: test_parser.ml $(PACKAGE).cma
35         $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $<
36
37 clean: extra_clean
38 distclean: extra_clean
39         rm -f macro_table.dump
40 extra_clean:
41         rm -f test_lexer test_parser
42
43 include ../Makefile.common
44 OCAMLARCHIVEOPTIONS += -linkall
45
46 disambiguateTypes.cmi: disambiguateTypes.mli
47         $(OCAMLC) -c -rectypes $<
48 disambiguateTypes.cmo: disambiguateTypes.ml disambiguateTypes.cmi
49         $(OCAMLC) -c -rectypes $<
50 disambiguateTypes.cmx: disambiguateTypes.ml disambiguateTypes.cmi
51         $(OCAMLOPT) -c -rectypes $<
52