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