]> matita.cs.unibo.it Git - helm.git/blob - helm/DEVEL/mlminidom/Makefile.in
05103a48be6414e68c2c5b8f5f1803c238608418
[helm.git] / helm / DEVEL / mlminidom / Makefile.in
1 PACKAGE = @PACKAGE@
2 VERSION = @MLMINIDOM_VERSION@
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
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
11
12 all: $(OBJECTS) test
13
14 opt: $(OBJECTS_OPT) test.opt
15
16 dist:
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)
22         
23 ml_minidom.o: ml_minidom.c
24         gcc -c -I$(INCLUDEDIR) `glib-config --cflags` `minidom-config --cflags` $<
25
26 minidom.cmi: minidom.mli
27         ocamlc -c $<
28
29 minidom.cmo: minidom.ml minidom.cmi
30         ocamlc -c $<
31
32 minidom.cmx: minidom.ml minidom.cmi
33         ocamlopt -c $<
34
35 ominidom.cmi: ominidom.mli
36         ocamlc -c $<
37
38 ominidom.cmo: ominidom.ml
39         ocamlc -c $<
40
41 ominidom.cmx: ominidom.ml
42         ocamlopt -c $<
43
44 test.cmo: test.ml minidom.cmo
45         ocamlc -c test.ml
46
47 test.cmx: test.ml minidom.cmx
48         ocamlopt -c test.ml
49
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`"
53
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`"
57
58 install:
59         if test -d $(INSTALLDIR); then : ; else mkdir -p $(INSTALLDIR); fi
60         cp $(OBJECTS) $(OBJECTS_OPT) $(INST) $(INSTALLDIR)
61
62 uninstall:
63         rm -rf $(INSTALLDIR)
64
65 clean:
66         rm -f *.o *.cm? test test.opt
67
68 distclean: clean
69         rm -f configure config.log config.cache config.status Makefile
70