]> matita.cs.unibo.it Git - helm.git/blob - helm/interface/Makefile
Requires and Provides now fixed
[helm.git] / helm / interface / Makefile
1 OCAML_ROOT = /usr/lib/ocaml
2 LABLGTK_DIR = $(OCAML_ROOT)/lablgtk
3 LABLGTK_MATHVIEW_DIR = $(OCAML_ROOT)/lablgtk/mathview
4 MINIDOM_DIR = $(OCAML_ROOT)/minidom
5 PXP_DIR = $(OCAML_ROOT)/site-lib/pxp
6 NETSTRING_DIR = $(OCAML_ROOT)/site-lib/netstring
7 OCAMLC = ocamlc -I $(LABLGTK_DIR) -I $(LABLGTK_MATHVIEW_DIR) -I $(PXP_DIR) -I $(NETSTRING_DIR) -I $(MINIDOM_DIR) -I mlmathview
8 OCAMLOPT = ocamlopt -I $(LABLGTK_DIR) -I $(LABLGTK_MATHVIEW_DIR) -I mlgtk_devel -I $(PXP_DIR) -I $(NETSTRING_DIR) -I $(MINIDOM_DIR) -I mlmathview
9 OCAMLDEP = ocamldep
10
11 all: experiment reduction fix_params mmlinterface
12 opt: experiment.opt reduction.opt fix_params.opt mmlinterface.opt
13
14 PXPLIBS = netstring.cma netmappings_iso.cmo netmappings_other.cmo \
15           pxp_types.cma \
16           pxp_lex_iso88591.cma pxp_lex_utf8.cma pxp_engine.cma \
17           pxp_utf8.cmo
18
19 PXPLIBSOPT = netstring.cmxa netmappings_iso.cmx netmappings_other.cmx \
20              pxp_types.cmxa \
21              pxp_lex_iso88591.cmxa pxp_lex_utf8.cmxa pxp_engine.cmxa \
22              pxp_utf8.cmx
23
24
25 DEPOBJS = experiment.ml cicCache.ml cicCache.mli cicPp.ml cicPp.mli \
26           cicParser.ml cicParser.mli cicParser2.ml cicParser2.mli \
27           cicParser3.ml cicParser3.mli cic.ml getter.ml getter.mli \
28           gtkInterface.ml cicReduction.ml cicReduction.mli cicTypeChecker.ml \
29           cicTypeChecker.mli reduction.ml tgtkInterface.ml theory.ml \
30           theoryParser.ml theoryParser2.ml theoryPp.ml theoryTypeChecker.ml \
31           cicCooking.ml cicCooking.mli cicFindParameters.ml theoryCache.ml \
32           fix_params.ml cic2Xml.ml xml.ml uriManager.ml uriManager.mli \
33           cicSubstitution.ml cicSubstitution.mli \
34           mmlinterface.ml configuration.ml \
35           xsltProcessor.ml deannotate.ml cicXPath.ml pxpUriResolver.ml \
36           annotationParser.ml annotationParser2.ml annotation2Xml.ml \
37           cicAnnotationHinter.ml
38
39 MMLINTERFACEOBJS = configuration.cmo uriManager.cmo getter.cmo cic.cmo \
40                    pxpUriResolver.cmo \
41                    cicParser3.cmo cicParser2.cmo cicParser.cmo deannotate.cmo \
42                    cicSubstitution.cmo annotationParser2.cmo \
43                    annotationParser.cmo cicCache.cmo cicCooking.cmo cicPp.cmo \
44                    cicReduction.cmo cicTypeChecker.cmo \
45                    xml.cmo \
46                    xsltProcessor.cmo cic2Xml.cmo annotation2Xml.cmo \
47                    cicXPath.cmo theory.cmo theoryParser2.cmo theoryParser.cmo \
48                    theoryCache.cmo theoryTypeChecker.cmo \
49                    cicAnnotationHinter.cmo mmlinterface.cmo
50
51 MMLINTERFACEOPTOBJS = configuration.cmx uriManager.cmx getter.cmx cic.cmx \
52                       pxpUriResolver.cmx \
53                       cicParser3.cmx cicParser2.cmx cicParser.cmx \
54                       deannotate.cmx cicSubstitution.cmx annotationParser2.cmx \
55                       annotationParser.cmx cicCache.cmx \
56                       cicCooking.cmx cicPp.cmx cicReduction.cmx \
57                       cicTypeChecker.cmx \
58                       xml.cmx xsltProcessor.cmx \
59                       cic2Xml.cmx annotation2Xml.cmx cicXPath.cmx \
60                       theory.cmx theoryParser2.cmx theoryParser.cmx \
61                       theoryCache.cmx theoryTypeChecker.cmx \
62                       cicAnnotationHinter.cmx mmlinterface.cmx
63
64 FIX_PARAMSOBJS = configuration.cmo uriManager.cmo getter.cmo cic.cmo \
65                  pxpUriResolver.cmo \
66                  cicParser3.cmo cicParser2.cmo cicParser.cmo deannotate.cmo \
67                  cicSubstitution.cmo annotationParser2.cmo \
68                  annotationParser.cmo  cicCache.cmo cicPp.cmo xml.cmo \
69                  cic2Xml.cmo cicFindParameters.cmo fix_params.cmo
70
71 FIX_PARAMSOPTOBJS = configuration.cmx uriManager.cmx getter.cmx cic.cmx \
72                     pxpUriResolver.cmx \
73                     cicParser3.cmx cicParser2.cmx cicParser.cmx deannotate.cmx \
74                     cicSubstitution.cmx annotationParser2.cmx \
75                     annotationParser.cmx cicCache.cmx cicPp.cmx xml.cmx \
76                     cic2Xml.cmx cicFindParameters.cmx fix_params.cmx
77
78 REDUCTIONOBJS = configuration.cmo uriManager.cmo getter.cmo cic.cmo \
79                 pxpUriResolver.cmo \
80                 cicParser3.cmo cicParser2.cmo cicParser.cmo deannotate.cmo \
81                 cicSubstitution.cmo annotationParser2.cmo annotationParser.cmo \
82                 cicCache.cmo cicPp.cmo cicCooking.cmo \
83                 cicReduction.cmo cicTypeChecker.cmo reduction.cmo
84
85 REDUCTIONOPTOBJS = configuration.cmx uriManager.cmx getter.cmx cic.cmx \
86                    pxpUriResolver.cmx \
87                    cicParser3.cmx cicParser2.cmx cicParser.cmx deannotate.cmx \
88                    cicSubstitution.cmx annotationParser2.cmx \
89                    annotationParser.cmx cicCache.cmx cicPp.cmx cicCooking.cmx \
90                    cicReduction.cmx cicTypeChecker.cmx reduction.cmx
91
92 EXPERIMENTOBJS = configuration.cmo uriManager.cmo getter.cmo cic.cmo \
93                  pxpUriResolver.cmo \
94                  cicParser3.cmo cicParser2.cmo cicParser.cmo deannotate.cmo \
95                  cicSubstitution.cmo annotationParser2.cmo \
96                  annotationParser.cmo cicCache.cmo cicPp.cmo experiment.cmo
97
98 EXPERIMENTOPTOBJS = configuration.cmx uriManager.cmx getter.cmx cic.cmx \
99                     pxpUriResolver.cmx \
100                     cicParser3.cmx cicParser2.cmx cicParser.cmx deannotate.cmx \
101                     cicSubstitution.cmx annotationParser2.cmx \
102                     annotationParser.cmx cicCache.cmx cicPp.cmx experiment.cmx
103
104 depend:
105         $(OCAMLDEP) $(DEPOBJS) > .depend
106
107 mmlinterface: $(MMLINTERFACEOBJS)
108         $(OCAMLC) -custom -o mmlinterface str.cma unix.cma $(PXPLIBS) dbm.cma \
109                   lablgtk.cma gtkInit.cmo \
110                   $(MINIDOM_DIR)/minidom.cmo \
111                   $(MINIDOM_DIR)/ominidom.cmo \
112                   $(LABLGTK_MATHVIEW_DIR)/lablgtkmathview.cma \
113                   $(MMLINTERFACEOBJS) \
114                   -cclib "-lstr -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk \
115                   -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm \
116                   -lunix `gtkmathview-config --libs` \
117                   $(LABLGTK_MATHVIEW_DIR)/ml_gtk_mathview.o \
118                   $(MINIDOM_DIR)/ml_minidom.o" \
119                   -cclib -lmldbm -cclib -lndbm
120
121 mmlinterface.opt: $(MMLINTERFACEOPTOBJS)
122         $(OCAMLOPT) -o mmlinterface.opt str.cmxa $(PXPLIBSOPT) unix.cmxa \
123                     dbm.cmxa lablgtk.cmxa gtkInit.cmx \
124                     $(MINIDOM_DIR)/minidom.cmx \
125                     $(MINIDOM_DIR)/ominidom.cmx \
126                     $(LABLGTK_MATHVIEW_DIR)/lablgtkmathview.cmxa \
127                     $(MMLINTERFACEOPTOBJS) \
128                     -cclib "-lstr -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk \
129                     -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm \
130                     -lunix `gtkmathview-config --libs` \
131                     $(LABLGTK_MATHVIEW_DIR)/ml_gtk_mathview.o \
132                     $(MINIDOM_DIR)/ml_minidom.o" \
133                     -cclib -lmldbm -cclib -lndbm
134
135 fix_params: $(FIX_PARAMSOBJS)
136         $(OCAMLC) -custom -o fix_params str.cma $(PXPLIBS) dbm.cma \
137                   $(FIX_PARAMSOBJS) -cclib -lstr -cclib -lmldbm -cclib -lndbm
138
139 fix_params.opt: $(FIX_PARAMSOPTOBJS)
140         $(OCAMLOPT) -o fix_params.opt str.cmxa $(PXPLIBSOPT) dbm.cmxa \
141                     $(FIX_PARAMSOPTOBJS) -cclib -lstr -cclib -lmldbm \
142                     -cclib -lndbm
143
144 reduction: $(REDUCTIONOBJS)
145         $(OCAMLC) -custom -o reduction str.cma $(PXPLIBS) dbm.cma \
146                   $(REDUCTIONOBJS) -cclib -lstr -cclib -lmldbm -cclib -lndbm
147
148 reduction.opt: $(REDUCTIONOPTOBJS)
149         $(OCAMLOPT) -o reduction.opt str.cmxa $(PXPLIBSOPT) dbm.cmxa \
150                     $(REDUCTIONOPTOBJS) -cclib -lstr -cclib -lmldbm \
151                     -cclib -lndbm
152
153 experiment: $(EXPERIMENTOBJS)
154         $(OCAMLC) -custom -o experiment str.cma $(PXPLIBS) dbm.cma \
155                   $(EXPERIMENTOBJS) -cclib -lstr -cclib -lmldbm -cclib -lndbm
156
157 experiment.opt: $(EXPERIMENTOPTOBJS)
158         $(OCAMLOPT) -o experiment.opt str.cmxa $(PXPLIBSOPT) dbm.cmxa \
159                     $(EXPERIMENTOPTOBJS) -cclib -lstr -cclib -lmldbm \
160                     -cclib -lndbm
161
162 .SUFFIXES: .ml .mli .cmo .cmi .cmx
163 .ml.cmo:
164         $(OCAMLC) -c $<
165 .mli.cmi:
166         $(OCAMLC) -c $<
167 .ml.cmx:
168         $(OCAMLOPT) -c $<
169
170 clean:
171         rm -f *.cm[iox] *.o experiment experiment.opt reduction \
172            reduction.opt fix_params fix_params.opt mmlinterface \
173            mmlinterface.opt mmlinterface2 mmlinterface2.opt
174
175 include .depend