More test programs to track down Format / overflow bug.
[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         test_format test_format.exe sudoku sudoku.exe \
6         test_buffer test_buffer.exe test_overflow test_overflow.exe
7
8 test1: test1.ml
9         ocamlopt $< -o $@
10
11 test1.exe: test1.ml
12         i686-pc-mingw32-ocamlopt $< -o $@
13
14 test2: test2.ml
15         ocamlopt unix.cmxa $< -o $@
16
17 test2.exe: test2.ml
18         i686-pc-mingw32-ocamlopt unix.cmxa $< -o $@
19
20 test3: test3.ml
21         ocamlopt graphics.cmxa $< -o $@
22
23 test3.exe: test3.ml
24         i686-pc-mingw32-ocamlopt graphics.cmxa $< -o $@
25
26 test4: test4.ml
27         ocamlopt graphics.cmxa $< -o $@
28
29 test4.exe: test4.ml
30         i686-pc-mingw32-ocamlopt graphics.cmxa $< -o $@
31
32 test_format: test_format.ml
33         ocamlopt $< -o $@
34
35 test_format.exe: test_format.ml
36         i686-pc-mingw32-ocamlopt $< -o $@
37
38 sudoku: sudoku.ml
39         ocamlopt $< -o $@
40
41 sudoku.exe: sudoku.ml
42         i686-pc-mingw32-ocamlopt $< -o $@
43
44 test_buffer: test_buffer.ml
45         ocamlopt $< -o $@
46
47 test_buffer.exe: test_buffer.ml
48         i686-pc-mingw32-ocamlopt $< -o $@
49
50 test_overflow: test_overflow.ml
51         ocamlopt $< -o $@
52
53 test_overflow.exe: test_overflow.ml
54         i686-pc-mingw32-ocamlopt $< -o $@
55
56 clean:
57         rm -f test[1-4] test_format sudoku test_buffer test_overflow \
58           *.exe *.cmi *.cmx *.o