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