Get the Unix module working.
[fedora-mingw.git] / ocaml / Makefile
index 5f3da01..722f355 100644 (file)
@@ -1,10 +1,19 @@
 # -*- Makefile -*-
 # Test programs for testing out the cross-compiler.
 
-all: test1 test1.exe
+all: test1 test1.exe test2 test2.exe
 
 test1: test1.ml
        ocamlopt $< -o $@
 
+test2: test2.ml
+       ocamlopt unix.cmxa $< -o $@
+
 test1.exe: test1.ml
        i686-pc-mingw32-ocamlopt $< -o $@
+
+test2.exe: test2.ml
+       i686-pc-mingw32-ocamlopt unix.cmxa $< -o $@
+
+clean:
+       rm -f test1 test2 *.exe *.cmi *.cmx *.o