]> matita.cs.unibo.it Git - helm.git/blob - helm/DEVEL/lablgtk_gtkmathview/lablgtk-20001129_gtkmathview-0.2.1/minidom/Makefile
Initial revision
[helm.git] / helm / DEVEL / lablgtk_gtkmathview / lablgtk-20001129_gtkmathview-0.2.1 / minidom / Makefile
1 GETLIBDIR = ocamlc -v | grep "^Standard" | sed 's/^.*: *//'
2 LIBDIR = `$(GETLIBDIR)`
3 INSTALLDIR = $(LIBDIR)/minidom
4 OBJECTS = minidom.cmi minidom.cmo ml_minidom.o ominidom.cmi ominidom.cmo
5 OBJECTS_OPT = minidom.cmx ominidom.cmx
6 INST = minidom.o ominidom.o ml_minidom.h minidom.mli
7
8 all: $(OBJECTS) test
9
10 opt: $(OBJECTS_OPT) test.opt
11
12 ml_minidom.o: ml_minidom.c
13         gcc -c -I$(LIBDIR)/caml/ `glib-config --cflags` `minidom-config --cflags` $<
14
15 minidom.cmi: minidom.mli
16         ocamlc -c $<
17
18 minidom.cmo: minidom.ml minidom.cmi
19         ocamlc -c $<
20
21 minidom.cmx: minidom.ml minidom.cmi
22         ocamlopt -c $<
23
24 ominidom.cmi: ominidom.mli
25         ocamlc -c $<
26
27 ominidom.cmo: ominidom.ml
28         ocamlc -c $<
29
30 ominidom.cmx: ominidom.ml
31         ocamlopt -c $<
32
33 test.cmo: test.ml minidom.cmo
34         ocamlc -c test.ml
35
36 test.cmx: test.ml minidom.cmx
37         ocamlopt -c test.ml
38
39 test: test.cmo minidom.cmo ml_minidom.o
40         ocamlc -custom -o test minidom.cmo test.cmo ml_minidom.o \
41         -cclib "`glib-config --libs` `minidom-config --libs`"
42
43 test.opt: test.cmx minidom.cmx ml_minidom.o
44         ocamlopt -o test.opt minidom.cmx test.cmx ml_minidom.o \
45         -cclib "`glib-config --libs` `minidom-config --libs`"
46
47 install:
48         if test -d $(INSTALLDIR); then : ; else mkdir -p $(INSTALLDIR); fi
49         cp $(OBJECTS) $(OBJECTS_OPT) $(INST) $(INSTALLDIR)
50
51 clean:
52         rm -f *.o *.cm? test test.opt