]> matita.cs.unibo.it Git - helm.git/blob - helm/DEVEL/mlminidom/Makefile.in
Initial revision
[helm.git] / helm / DEVEL / mlminidom / Makefile.in
1 PACKAGE = @PACKAGE@
2 VERSION = @MLMINIDOM_VERSION@
3 LIBDIR = @OCAML_ROOT@
4 INSTALLDIR = $(LIBDIR)/mlminidom
5 OBJECTS = minidom.cmi minidom.cmo ml_minidom.o ominidom.cmi ominidom.cmo
6 OBJECTS_OPT = minidom.cmx ominidom.cmx
7 INST = minidom.o ominidom.o ml_minidom.h minidom.mli
8 DIST_FILES = Makefile.in configure.in configure *.ml *.mli test.xml ml_minidom.c ml_minidom.h
9 DOC_FILES = AUTHORS COPYING ChangeLog NEWS README
10
11 all: $(OBJECTS) test
12
13 opt: $(OBJECTS_OPT) test.opt
14
15 dist:
16         rm -rf $(PACKAGE)-$(VERSION)
17         mkdir $(PACKAGE)-$(VERSION)
18         cp $(DIST_FILES) $(DOC_FILES) $(PACKAGE)-$(VERSION)
19         tar cvfz $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
20         rm -rf $(PACKAGE)-$(VERSION)
21         
22 ml_minidom.o: ml_minidom.c
23         gcc -c -I$(LIBDIR)/caml/ `glib-config --cflags` `minidom-config --cflags` $<
24
25 minidom.cmi: minidom.mli
26         ocamlc -c $<
27
28 minidom.cmo: minidom.ml minidom.cmi
29         ocamlc -c $<
30
31 minidom.cmx: minidom.ml minidom.cmi
32         ocamlopt -c $<
33
34 ominidom.cmi: ominidom.mli
35         ocamlc -c $<
36
37 ominidom.cmo: ominidom.ml
38         ocamlc -c $<
39
40 ominidom.cmx: ominidom.ml
41         ocamlopt -c $<
42
43 test.cmo: test.ml minidom.cmo
44         ocamlc -c test.ml
45
46 test.cmx: test.ml minidom.cmx
47         ocamlopt -c test.ml
48
49 test: test.cmo minidom.cmo ml_minidom.o
50         ocamlc -custom -o test minidom.cmo test.cmo ml_minidom.o \
51         -cclib "`glib-config --libs` `minidom-config --libs`"
52
53 test.opt: test.cmx minidom.cmx ml_minidom.o
54         ocamlopt -o test.opt minidom.cmx test.cmx ml_minidom.o \
55         -cclib "`glib-config --libs` `minidom-config --libs`"
56
57 install:
58         if test -d $(INSTALLDIR); then : ; else mkdir -p $(INSTALLDIR); fi
59         cp $(OBJECTS) $(OBJECTS_OPT) $(INST) $(INSTALLDIR)
60
61 uninstall:
62         rm -rf $(INSTALLDIR)
63
64 clean:
65         rm -f *.o *.cm? test test.opt
66
67 distclean: clean
68         rm -f configure config.log config.cache config.status Makefile
69