3 INCLUDEDIR = @OCAML_INCLUDE_DIR@
4 LIBDIR = @OCAML_LIB_DIR@
5 INSTALLDIR = $(LIBDIR)/mlminidom
6 OBJECTS = minidom.cmi minidom.cmo ml_minidom.o ominidom.cmi ominidom.cmo
7 OBJECTS_OPT = minidom.cmx ominidom.cmx
8 INST = minidom.o ominidom.o ml_minidom.h minidom.mli ml_minidom.h
9 DIST_FILES = Makefile.in configure.in configure *.ml *.mli test.xml ml_minidom.c ml_minidom.h
10 DOC_FILES = AUTHORS COPYING ChangeLog NEWS README
14 opt: $(OBJECTS_OPT) test.opt
17 rm -rf $(PACKAGE)-$(VERSION)
18 mkdir $(PACKAGE)-$(VERSION)
19 cp $(DIST_FILES) $(DOC_FILES) $(PACKAGE)-$(VERSION)
20 tar cvfz $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
21 rm -rf $(PACKAGE)-$(VERSION)
23 ml_minidom.o: ml_minidom.c
24 gcc -c -I$(INCLUDEDIR) `glib-config --cflags` `minidom-config --cflags` $<
26 minidom.cmi: minidom.mli
29 minidom.cmo: minidom.ml minidom.cmi
32 minidom.cmx: minidom.ml minidom.cmi
35 ominidom.cmi: ominidom.mli
38 ominidom.cmo: ominidom.ml
41 ominidom.cmx: ominidom.ml
44 test.cmo: test.ml minidom.cmo
47 test.cmx: test.ml minidom.cmx
50 test: test.cmo minidom.cmo ml_minidom.o
51 ocamlc -custom -o test minidom.cmo test.cmo ml_minidom.o \
52 -cclib "`glib-config --libs` `minidom-config --libs`"
54 test.opt: test.cmx minidom.cmx ml_minidom.o
55 ocamlopt -o test.opt minidom.cmx test.cmx ml_minidom.o \
56 -cclib "`glib-config --libs` `minidom-config --libs`"
59 if test -d $(INSTALLDIR); then : ; else mkdir -p $(INSTALLDIR); fi
60 cp $(OBJECTS) $(OBJECTS_OPT) $(INST) $(INSTALLDIR)
66 rm -f *.o *.cm? test test.opt
69 rm -f configure config.log config.cache config.status Makefile