]> matita.cs.unibo.it Git - helm.git/blob - helm/DEVEL/gdome_xslt/ocaml/test/Makefile.am
ocaml 3.09 transition
[helm.git] / helm / DEVEL / gdome_xslt / ocaml / test / Makefile.am
1 REQUIRES = gdome2
2 OCAMLFIND = @OCAMLFIND@
3 OCAMLC = $(OCAMLFIND) @OCAMLC@ -package "$(REQUIRES)"
4 OCAMLOPT = $(OCAMLFIND) @OCAMLOPT@ -package "$(REQUIRES)"
5 CMA = $(top_builddir)/ocaml/gdome_xslt/mlgdome2-xslt.cma
6 CMXA = $(top_builddir)/ocaml/gdome_xslt/mlgdome2-xslt.cmxa
7 INIT_CMO = $(top_builddir)/ocaml/gdome_xslt/gdome_xslt_init.cmo
8 INIT_CMX = $(top_builddir)/ocaml/gdome_xslt/gdome_xslt_init.cmx
9 OCAMLC_FLAGS = -I $(top_builddir)/ocaml/gdome_xslt/
10
11 EXTRA_DIST = test.ml
12 CLEANFILES = test{,.o,.opt} test.cm[iox]
13
14 if HAVE_OCAMLOPT_COND
15 noinst_DATA = test.opt test
16 else
17 noinst_DATA = test
18 endif
19
20 test: test.ml $(CMA) $(INIT_CMO)
21         $(OCAMLC) -o $@ -linkpkg $(OCAMLC_FLAGS) $(CMA) $(INIT_CMO) $<
22
23 test.opt: test.ml $(CMXA) $(INIT_CMX)
24         $(OCAMLOPT) -o $@ -linkpkg $(OCAMLC_FLAGS) $(CMXA) $(INIT_CMX) $<
25