1 OCAML_ROOT = @OCAML_ROOT@
3 LABLGTK_DIR = @LABLGTK_LIB_DIR@
4 LABLGTKMATHVIEW_DIR = @LABLGTKMATHVIEW_LIB_DIR@
5 MINIDOM_DIR = @MLMINIDOM_LIB_DIR@
7 PXP_DIR = $(OCAML_ROOT)/site-lib/pxp
8 NETSTRING_DIR = $(OCAML_ROOT)/site-lib/netstring
9 XSTR_DIR = $(OCAML_ROOT)/site-lib/xstr
10 NETCLIENT_DIR = $(OCAML_ROOT)/site-lib/netclient
12 #OCAMLC = ocamlc -I $(LABLGTK_DIR) -I $(LABLGTKMATHVIEW_DIR) -I $(PXP_DIR) -I $(NETSTRING_DIR) -I $(MINIDOM_DIR) -I mlmathview
13 #OCAMLOPT = ocamlopt -I $(LABLGTK_DIR) -I $(LABLGTKMATHVIEW_DIR) -I mlgtk_devel -I $(PXP_DIR) -I $(NETSTRING_DIR) -I $(MINIDOM_DIR) -I mlmathview
14 OCAMLC = ocamlc -I $(LABLGTK_DIR) -I $(LABLGTKMATHVIEW_DIR) -I $(PXP_DIR) -I $(NETSTRING_DIR) -I $(MINIDOM_DIR) -I $(XSTR_DIR) -I $(NETCLIENT_DIR)
15 OCAMLOPT = ocamlopt -I $(LABLGTK_DIR) -I $(LABLGTKMATHVIEW_DIR) -I $(PXP_DIR) -I $(NETSTRING_DIR) -I $(MINIDOM_DIR) -I $(XSTR_DIR) -I $(NETCLIENT_DIR)
18 all: experiment reduction fix_params mmlinterface
19 opt: experiment.opt reduction.opt fix_params.opt mmlinterface.opt
21 PXPLIBS = netstring.cma netmappings_iso.cmo netmappings_other.cmo \
23 pxp_lex_iso88591.cma pxp_lex_utf8.cma pxp_engine.cma \
26 PXPLIBSOPT = netstring.cmxa netmappings_iso.cmx netmappings_other.cmx \
28 pxp_lex_iso88591.cmxa pxp_lex_utf8.cmxa pxp_engine.cmxa \
33 XSTRLIBSOPT = xstr.cmxa
35 NETCLIENTLIBS = netclient.cma
37 NETCLIENTLIBSOPT = netclient.cmxa
39 DEPOBJS = experiment.ml cicCache.ml cicCache.mli cicPp.ml cicPp.mli \
40 cicParser.ml cicParser.mli cicParser2.ml cicParser2.mli \
41 cicParser3.ml cicParser3.mli cic.ml clientHTTP.ml getter.ml getter.mli \
42 gtkInterface.ml cicReduction.ml cicReduction.mli cicTypeChecker.ml \
43 cicTypeChecker.mli reduction.ml tgtkInterface.ml theory.ml \
44 theoryParser.ml theoryParser2.ml theoryPp.ml theoryTypeChecker.ml \
45 cicCooking.ml cicCooking.mli cicFindParameters.ml theoryCache.ml \
46 fix_params.ml cic2Xml.ml xml.ml uriManager.ml uriManager.mli \
47 cicSubstitution.ml cicSubstitution.mli \
48 mmlinterface.ml configuration.ml styleConfiguration.ml \
49 xsltProcessorHTTP.ml xsltProcessor.ml deannotate.ml cicXPath.ml pxpUriResolver.ml \
50 annotationParser.ml annotationParser2.ml annotation2Xml.ml \
51 cicAnnotationHinter.ml
53 MMLINTERFACEOBJS = configuration.cmo uriManager.cmo clientHTTP.cmo getter.cmo cic.cmo \
54 pxpUriResolver.cmo styleConfiguration.cmo \
55 cicParser3.cmo cicParser2.cmo cicParser.cmo deannotate.cmo \
56 cicSubstitution.cmo annotationParser2.cmo \
57 annotationParser.cmo cicCache.cmo cicCooking.cmo cicPp.cmo \
58 cicReduction.cmo cicTypeChecker.cmo \
60 xsltProcessorHTTP.cmo xsltProcessor.cmo cic2Xml.cmo annotation2Xml.cmo \
61 cicXPath.cmo theory.cmo theoryParser2.cmo theoryParser.cmo \
62 theoryCache.cmo theoryTypeChecker.cmo \
63 cicAnnotationHinter.cmo mmlinterface.cmo
65 MMLINTERFACEOPTOBJS = configuration.cmx uriManager.cmx clientHTTP.cmx getter.cmx cic.cmx \
66 pxpUriResolver.cmx styleConfiguration.cmx \
67 cicParser3.cmx cicParser2.cmx cicParser.cmx \
68 deannotate.cmx cicSubstitution.cmx annotationParser2.cmx \
69 annotationParser.cmx cicCache.cmx \
70 cicCooking.cmx cicPp.cmx cicReduction.cmx \
72 xml.cmx xsltProcessorHTTP.cmx xsltProcessor.cmx \
73 cic2Xml.cmx annotation2Xml.cmx cicXPath.cmx \
74 theory.cmx theoryParser2.cmx theoryParser.cmx \
75 theoryCache.cmx theoryTypeChecker.cmx \
76 cicAnnotationHinter.cmx mmlinterface.cmx
78 FIX_PARAMSOBJS = configuration.cmo uriManager.cmo clientHTTP.cmo getter.cmo cic.cmo \
79 pxpUriResolver.cmo styleConfiguration.cmo \
80 cicParser3.cmo cicParser2.cmo cicParser.cmo deannotate.cmo \
81 cicSubstitution.cmo annotationParser2.cmo \
82 annotationParser.cmo cicCache.cmo cicPp.cmo xml.cmo \
83 cic2Xml.cmo cicFindParameters.cmo fix_params.cmo
85 FIX_PARAMSOPTOBJS = configuration.cmx uriManager.cmx clientHTTP.cmx getter.cmx cic.cmx \
86 pxpUriResolver.cmx styleConfiguration.cmx \
87 cicParser3.cmx cicParser2.cmx cicParser.cmx deannotate.cmx \
88 cicSubstitution.cmx annotationParser2.cmx \
89 annotationParser.cmx cicCache.cmx cicPp.cmx xml.cmx \
90 cic2Xml.cmx cicFindParameters.cmx fix_params.cmx
92 REDUCTIONOBJS = configuration.cmo uriManager.cmo clientHTTP.cmo getter.cmo cic.cmo \
93 pxpUriResolver.cmo styleConfiguration.cmo \
94 cicParser3.cmo cicParser2.cmo cicParser.cmo deannotate.cmo \
95 cicSubstitution.cmo annotationParser2.cmo annotationParser.cmo \
96 cicCache.cmo cicPp.cmo cicCooking.cmo \
97 cicReduction.cmo cicTypeChecker.cmo reduction.cmo
99 REDUCTIONOPTOBJS = configuration.cmx uriManager.cmx clientHTTP.cmx getter.cmx cic.cmx \
100 pxpUriResolver.cmx styleConfiguration.cmx \
101 cicParser3.cmx cicParser2.cmx cicParser.cmx deannotate.cmx \
102 cicSubstitution.cmx annotationParser2.cmx \
103 annotationParser.cmx cicCache.cmx cicPp.cmx cicCooking.cmx \
104 cicReduction.cmx cicTypeChecker.cmx reduction.cmx
106 EXPERIMENTOBJS = configuration.cmo uriManager.cmo clientHTTP.cmo getter.cmo cic.cmo \
107 pxpUriResolver.cmo styleConfiguration.cmo \
108 cicParser3.cmo cicParser2.cmo cicParser.cmo deannotate.cmo \
109 cicSubstitution.cmo annotationParser2.cmo \
110 annotationParser.cmo cicCache.cmo cicPp.cmo experiment.cmo
112 EXPERIMENTOPTOBJS = configuration.cmx uriManager.cmx clientHTTP.cmx getter.cmx cic.cmx \
113 pxpUriResolver.cmx styleConfiguration.cmx \
114 cicParser3.cmx cicParser2.cmx cicParser.cmx deannotate.cmx \
115 cicSubstitution.cmx annotationParser2.cmx \
116 annotationParser.cmx cicCache.cmx cicPp.cmx experiment.cmx
119 $(OCAMLDEP) $(DEPOBJS) > .depend
121 mmlinterface: $(MMLINTERFACEOBJS)
122 $(OCAMLC) -custom -o mmlinterface str.cma unix.cma $(PXPLIBS) $(XSTRLIBS) $(NETCLIENTLIBS) dbm.cma \
123 lablgtk.cma gtkInit.cmo \
124 $(MINIDOM_DIR)/minidom.cmo \
125 $(MINIDOM_DIR)/ominidom.cmo \
126 $(LABLGTKMATHVIEW_DIR)/lablgtkmathview.cma \
127 $(MMLINTERFACEOBJS) \
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 $(LABLGTKMATHVIEW_DIR)/ml_gtk_mathview.o \
132 $(MINIDOM_DIR)/ml_minidom.o" \
133 -cclib -lmldbm -cclib -lndbm
135 mmlinterface.opt: $(MMLINTERFACEOPTOBJS)
136 $(OCAMLOPT) -o mmlinterface.opt str.cmxa unix.cmxa $(PXPLIBSOPT) $(XSTRLIBSOPT) $(NETCLIENTLIBSOPT) unix.cmxa \
137 dbm.cmxa lablgtk.cmxa gtkInit.cmx \
138 $(MINIDOM_DIR)/minidom.cmx \
139 $(MINIDOM_DIR)/ominidom.cmx \
140 $(LABLGTKMATHVIEW_DIR)/lablgtkmathview.cmxa \
141 $(MMLINTERFACEOPTOBJS) \
142 -cclib "-lstr -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk \
143 -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm \
144 -lunix `gtkmathview-config --libs` \
145 $(LABLGTKMATHVIEW_DIR)/ml_gtk_mathview.o \
146 $(MINIDOM_DIR)/ml_minidom.o" \
147 -cclib -lmldbm -cclib -lndbm
149 fix_params: $(FIX_PARAMSOBJS)
150 $(OCAMLC) -custom -o fix_params str.cma unix.cma $(PXPLIBS) $(XSTRLIBS) $(NETCLIENTLIBS) dbm.cma \
151 $(FIX_PARAMSOBJS) -cclib -lstr -cclib -lmldbm -cclib -lndbm
153 fix_params.opt: $(FIX_PARAMSOPTOBJS)
154 $(OCAMLOPT) -o fix_params.opt str.cmxa unix.cmxa $(PXPLIBSOPT) $(XSTRLIBSOPT) $(NETCLIENTLIBSOPT) dbm.cmxa \
155 $(FIX_PARAMSOPTOBJS) -cclib -lstr -cclib -lmldbm \
158 reduction: $(REDUCTIONOBJS)
159 $(OCAMLC) -custom -o reduction str.cma unix.cma $(PXPLIBS) $(XSTRLIBS) $(NETCLIENTLIBS) dbm.cma \
160 $(REDUCTIONOBJS) -cclib -lstr -cclib -lmldbm -cclib -lndbm
162 reduction.opt: $(REDUCTIONOPTOBJS)
163 $(OCAMLOPT) -o reduction.opt str.cmxa unix.cmxa $(PXPLIBSOPT) $(XSTRLIBSOPT) $(NETCLIENTLIBSOPT) dbm.cmxa \
164 $(REDUCTIONOPTOBJS) -cclib -lstr -cclib -lmldbm \
167 experiment: $(EXPERIMENTOBJS)
168 $(OCAMLC) -custom -o experiment str.cma unix.cma $(PXPLIBS) $(XSTRLIBS) $(NETCLIENTLIBS) dbm.cma \
169 $(EXPERIMENTOBJS) -cclib -lstr -cclib -lmldbm -cclib -lndbm
171 experiment.opt: $(EXPERIMENTOPTOBJS)
172 $(OCAMLOPT) -o experiment.opt str.cmxa unix.cmxa $(PXPLIBSOPT) $(XSTRLIBSOPT) $(NETCLIENTLIBSOPT) dbm.cmxa \
173 $(EXPERIMENTOPTOBJS) -cclib -lstr -cclib -lmldbm \
176 .SUFFIXES: .ml .mli .cmo .cmi .cmx
185 rm -f *.cm[iox] *.o experiment experiment.opt reduction \
186 reduction.opt fix_params fix_params.opt mmlinterface \
187 mmlinterface.opt mmlinterface2 mmlinterface2.opt
190 cp mmlinterface mmlinterface.opt helm_wget $(BIN_DIR)
193 rm -f Makefile configuration.ml helm_wget configure config.log \
194 config.cache config.status
197 rm -rf ../@PACKAGE@-@VERSION@
198 mkdir ../@PACKAGE@-@VERSION@
199 cp -r * .depend ../@PACKAGE@-@VERSION@
200 (cd .. ; tar cvfz @PACKAGE@-@VERSION@.tar.gz @PACKAGE@-@VERSION@ ; rm -rf @PACKAGE@-@VERSION@)
202 .PHONY: install distclean clean