1 LIBDIR = /usr/lib/ocaml
2 INSTALLDIR = $(LIBDIR)/minidom
3 OBJECTS = minidom.cmi minidom.cmo ml_minidom.o ominidom.cmo
4 OBJECTS_OPT = minidom.cmx ominidom.cmx
5 INST = minidom.o ominidom.o ml_minidom.h minidom.mli
9 opt: $(OBJECTS_OPT) test.opt
11 ml_minidom.o: ml_minidom.c
12 gcc -c -I/usr/lib/ocaml/caml/ `glib-config --cflags` `minidom-config --cflags` $<
14 minidom.cmi: minidom.mli
17 minidom.cmo: minidom.ml minidom.cmi
20 minidom.cmx: minidom.ml minidom.cmi
23 ominidom.cmo: ominidom.ml
26 ominidom.cmx: ominidom.ml
29 test.cmo: test.ml minidom.cmo
32 test.cmx: test.ml minidom.cmx
35 test: test.cmo minidom.cmo ml_minidom.o
36 ocamlc -custom -o test minidom.cmo test.cmo ml_minidom.o \
37 -cclib "`glib-config --libs` `minidom-config --libs`"
39 test.opt: test.cmx minidom.cmx ml_minidom.o
40 ocamlopt -o test.opt minidom.cmx test.cmx ml_minidom.o \
41 -cclib "`glib-config --libs` `minidom-config --libs`"
44 if test -d $(INSTALLDIR); then : ; else mkdir -p $(INSTALLDIR); fi
45 cp $(OBJECTS) $(OBJECTS_OPT) $(INSTALLDIR)
48 rm -f *.o *.cm? test test.opt