Added tests of the Graphics module.
[fedora-mingw.git] / ocaml / Makefile
1 # -*- Makefile -*-
2 # Test programs for testing out the cross-compiler.
3
4 all: test1 test1.exe test2 test2.exe test3 test3.exe test4 test4.exe
5
6 test1: test1.ml
7         ocamlopt $< -o $@
8
9 test1.exe: test1.ml
10         i686-pc-mingw32-ocamlopt $< -o $@
11
12 test2: test2.ml
13         ocamlopt unix.cmxa $< -o $@
14
15 test2.exe: test2.ml
16         i686-pc-mingw32-ocamlopt unix.cmxa $< -o $@
17
18 test3: test3.ml
19         ocamlopt graphics.cmxa $< -o $@
20
21 test3.exe: test3.ml
22         i686-pc-mingw32-ocamlopt graphics.cmxa $< -o $@
23
24 test4: test4.ml
25         ocamlopt graphics.cmxa $< -o $@
26
27 test4.exe: test4.ml
28         i686-pc-mingw32-ocamlopt graphics.cmxa $< -o $@
29
30 clean:
31         rm -f test1 test2 test3 test4 *.exe *.cmi *.cmx *.o