--- /dev/null
+REQUIRES = gdome2
+OCAMLFIND = @OCAMLFIND@
+OCAMLC = $(OCAMLFIND) @OCAMLC@ -package "$(REQUIRES)"
+OCAMLOPT = $(OCAMLFIND) @OCAMLOPT@ -package "$(REQUIRES)"
+CMA = ../gdome_xslt/mlgdome2-xslt.cma
+CMXA = ../gdome_xslt/mlgdome2-xslt.cmxa
+INIT_CMO = ../gdome_xslt/gdome_xslt_init.cmo
+INIT_CMX = ../gdome_xslt/gdome_xslt_init.cmx
+INCLUDES = -I ../gdome_xslt/
+
+EXTRA_DIST = test.ml
+CLEANFILES = test{,.o,.opt} test.cm[iox]
+
+if HAVE_OCAMLOPT_COND
+noinst_DATA = test.opt test
+else
+noinst_DATA = test
+endif
+
+test: test.ml $(CMA) $(INIT_CMO)
+ $(OCAMLC) -o $@ -linkpkg $(INCLUDES) $(CMA) $(INIT_CMO) $<
+test.opt: test.ml $(CMXA) $(INIT_CMX)
+ $(OCAMLOPT) -o $@ -linkpkg $(INCLUDES) $(CMXA) $(INIT_CMX) $<
+