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