--- /dev/null
+PACKAGES = lablgtk2.init
+PACKAGE = @PACKAGE@
+BUILDFLAGS = -package "$(PACKAGES)" -I ../
+LINKFLAGS = $(BUILDFLAGS) -linkpkg
+OCAMLC = ocamlfind ocamlc
+OCAMLOPT = ocamlfind ocamlopt
+TMPDIR = .test
+
+all: test
+opt: test.opt
+
+test: test.ml
+ $(OCAMLC) $(LINKFLAGS) $(PACKAGE).cma -o $@ $<
+
+test.opt: test.ml
+ $(OCAMLOPT) $(LINKFLAGS) $(PACKAGE).cmxa -o $@ $<
+
+clean:
+ rm -f *.cm[iox] *.[ao] *.cmxa test test.opt
+
+distclean:
+ rm Makefile
+