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