Added a lablgl demo.
[fedora-mingw.git] / ocaml-lablgl / Makefile
diff --git a/ocaml-lablgl/Makefile b/ocaml-lablgl/Makefile
new file mode 100644 (file)
index 0000000..41b84f4
--- /dev/null
@@ -0,0 +1,15 @@
+# Test some binaries which use ocaml-lablgl.  This builds both the
+# Linux native and Windows binaries, so you can compare them.
+#
+# Note that the demos themselves are non-free, written by Jon Harrop
+# and available from his website here:
+# http://www.ffconsultancy.com/ocaml/
+
+all: balls.opt balls.exe
+
+%.opt: %.ml
+       ocamlfind ocamlopt -I +lablGL unix.cmxa lablglut.cmxa lablgl.cmxa $< -o $@
+
+%.exe: %.ml
+       OCAMLFIND_CONF=/etc/i686-pc-mingw32-ocamlfind.conf \
+       ocamlfind ocamlopt -I +lablGL lablgl.cmxa $< -o $@