New patches from Fedora.
[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         test_float test_float.exe test_float2 test_float2.exe
8
9 test1: test1.ml
10         ocamlopt $< -o $@
11
12 test1.exe: test1.ml
13         i686-pc-mingw32-ocamlopt $< -o $@
14
15 test2: test2.ml
16         ocamlopt unix.cmxa $< -o $@
17
18 test2.exe: test2.ml
19         i686-pc-mingw32-ocamlopt unix.cmxa $< -o $@
20
21 test3: test3.ml
22         ocamlopt graphics.cmxa $< -o $@
23
24 test3.exe: test3.ml
25         i686-pc-mingw32-ocamlopt graphics.cmxa $< -o $@
26
27 test4: test4.ml
28         ocamlopt graphics.cmxa $< -o $@
29
30 test4.exe: test4.ml
31         i686-pc-mingw32-ocamlopt graphics.cmxa $< -o $@
32
33 test_format: test_format.ml
34         ocamlopt $< -o $@
35
36 test_format.exe: test_format.ml
37         i686-pc-mingw32-ocamlopt $< -o $@
38
39 sudoku: sudoku.ml
40         ocamlopt $< -o $@
41
42 sudoku.exe: sudoku.ml
43         i686-pc-mingw32-ocamlopt $< -o $@
44
45 test_buffer: test_buffer.ml
46         ocamlopt $< -o $@
47
48 test_buffer.exe: test_buffer.ml
49         i686-pc-mingw32-ocamlopt $< -o $@
50
51 test_overflow: test_overflow.ml
52         ocamlopt $< -o $@
53
54 test_overflow.exe: test_overflow.ml
55         i686-pc-mingw32-ocamlopt $< -o $@
56
57 test_float: test_float.ml
58         ocamlopt $< -o $@
59
60 test_float.exe: test_float.ml
61         i686-pc-mingw32-ocamlopt $< -o $@
62
63 test_float2: test_float2.ml
64         ocamlopt $< -o $@
65
66 test_float2.exe: test_float2.ml
67         i686-pc-mingw32-ocamlopt $< -o $@
68
69 clean:
70         rm -f test[1-4] test_format sudoku test_buffer test_overflow \
71           test_float test_float2 \
72           *.exe *.cmi *.cmx *.o