]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/lablgtk_gtkmathview/lablgtk-20001129_gtkmathview-0.2.1/minidom/Makefile
This commit was manufactured by cvs2svn to create branch 'start'.
[helm.git] / helm / DEVEL / lablgtk_gtkmathview / lablgtk-20001129_gtkmathview-0.2.1 / minidom / Makefile
diff --git a/helm/DEVEL/lablgtk_gtkmathview/lablgtk-20001129_gtkmathview-0.2.1/minidom/Makefile b/helm/DEVEL/lablgtk_gtkmathview/lablgtk-20001129_gtkmathview-0.2.1/minidom/Makefile
new file mode 100644 (file)
index 0000000..6fe73af
--- /dev/null
@@ -0,0 +1,51 @@
+LIBDIR = /usr/lib/ocaml
+INSTALLDIR = $(LIBDIR)/minidom
+OBJECTS = minidom.cmi minidom.cmo ml_minidom.o ominidom.cmi ominidom.cmo
+OBJECTS_OPT = minidom.cmx ominidom.cmx
+INST = minidom.o ominidom.o ml_minidom.h minidom.mli
+
+all: $(OBJECTS) test
+
+opt: $(OBJECTS_OPT) test.opt
+
+ml_minidom.o: ml_minidom.c
+       gcc -c -I/usr/lib/ocaml/caml/ `glib-config --cflags` `minidom-config --cflags` $<
+
+minidom.cmi: minidom.mli
+       ocamlc -c $<
+
+minidom.cmo: minidom.ml minidom.cmi
+       ocamlc -c $<
+
+minidom.cmx: minidom.ml minidom.cmi
+       ocamlopt -c $<
+
+ominidom.cmi: ominidom.mli
+       ocamlc -c $<
+
+ominidom.cmo: ominidom.ml
+       ocamlc -c $<
+
+ominidom.cmx: ominidom.ml
+       ocamlopt -c $<
+
+test.cmo: test.ml minidom.cmo
+       ocamlc -c test.ml
+
+test.cmx: test.ml minidom.cmx
+       ocamlopt -c test.ml
+
+test: test.cmo minidom.cmo ml_minidom.o
+       ocamlc -custom -o test minidom.cmo test.cmo ml_minidom.o \
+        -cclib "`glib-config --libs` `minidom-config --libs`"
+
+test.opt: test.cmx minidom.cmx ml_minidom.o
+       ocamlopt -o test.opt minidom.cmx test.cmx ml_minidom.o \
+        -cclib "`glib-config --libs` `minidom-config --libs`"
+
+install:
+       if test -d $(INSTALLDIR); then : ; else mkdir -p $(INSTALLDIR); fi
+       cp $(OBJECTS) $(OBJECTS_OPT) $(INST) $(INSTALLDIR)
+
+clean:
+       rm -f *.o *.cm? test test.opt