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
11 all: experiment reduction fix_params mmlinterface
12 opt: experiment.opt reduction.opt fix_params.opt mmlinterface.opt
14 PXPLIBS = netstring.cma netmappings_iso.cmo netmappings_other.cmo \
16 pxp_lex_iso88591.cma pxp_lex_utf8.cma pxp_engine.cma \
19 PXPLIBSOPT = netstring.cmxa netmappings_iso.cmx netmappings_other.cmx \
21 pxp_lex_iso88591.cmxa pxp_lex_utf8.cmxa pxp_engine.cmxa \
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
39 MMLINTERFACEOBJS = configuration.cmo uriManager.cmo getter.cmo cic.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 \
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
51 MMLINTERFACEOPTOBJS = configuration.cmx uriManager.cmx getter.cmx cic.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 \
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
64 FIX_PARAMSOBJS = configuration.cmo uriManager.cmo getter.cmo cic.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
71 FIX_PARAMSOPTOBJS = configuration.cmx uriManager.cmx getter.cmx cic.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
78 REDUCTIONOBJS = configuration.cmo uriManager.cmo getter.cmo cic.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
85 REDUCTIONOPTOBJS = configuration.cmx uriManager.cmx getter.cmx cic.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
92 EXPERIMENTOBJS = configuration.cmo uriManager.cmo getter.cmo cic.cmo \
94 cicParser3.cmo cicParser2.cmo cicParser.cmo deannotate.cmo \
95 cicSubstitution.cmo annotationParser2.cmo \
96 annotationParser.cmo cicCache.cmo cicPp.cmo experiment.cmo
98 EXPERIMENTOPTOBJS = configuration.cmx uriManager.cmx getter.cmx cic.cmx \
100 cicParser3.cmx cicParser2.cmx cicParser.cmx deannotate.cmx \
101 cicSubstitution.cmx annotationParser2.cmx \
102 annotationParser.cmx cicCache.cmx cicPp.cmx experiment.cmx
105 $(OCAMLDEP) $(DEPOBJS) > .depend
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
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
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
139 fix_params.opt: $(FIX_PARAMSOPTOBJS)
140 $(OCAMLOPT) -o fix_params.opt str.cmxa $(PXPLIBSOPT) dbm.cmxa \
141 $(FIX_PARAMSOPTOBJS) -cclib -lstr -cclib -lmldbm \
144 reduction: $(REDUCTIONOBJS)
145 $(OCAMLC) -custom -o reduction str.cma $(PXPLIBS) dbm.cma \
146 $(REDUCTIONOBJS) -cclib -lstr -cclib -lmldbm -cclib -lndbm
148 reduction.opt: $(REDUCTIONOPTOBJS)
149 $(OCAMLOPT) -o reduction.opt str.cmxa $(PXPLIBSOPT) dbm.cmxa \
150 $(REDUCTIONOPTOBJS) -cclib -lstr -cclib -lmldbm \
153 experiment: $(EXPERIMENTOBJS)
154 $(OCAMLC) -custom -o experiment str.cma $(PXPLIBS) dbm.cma \
155 $(EXPERIMENTOBJS) -cclib -lstr -cclib -lmldbm -cclib -lndbm
157 experiment.opt: $(EXPERIMENTOPTOBJS)
158 $(OCAMLOPT) -o experiment.opt str.cmxa $(PXPLIBSOPT) dbm.cmxa \
159 $(EXPERIMENTOPTOBJS) -cclib -lstr -cclib -lmldbm \
162 .SUFFIXES: .ml .mli .cmo .cmi .cmx
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