Add program to test the Format module, and Sudoku program.
[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
7 test1: test1.ml
8         ocamlopt $< -o $@
9
10 test1.exe: test1.ml
11         i686-pc-mingw32-ocamlopt $< -o $@
12
13 test2: test2.ml
14         ocamlopt unix.cmxa $< -o $@
15
16 test2.exe: test2.ml
17         i686-pc-mingw32-ocamlopt unix.cmxa $< -o $@
18
19 test3: test3.ml
20         ocamlopt graphics.cmxa $< -o $@
21
22 test3.exe: test3.ml
23         i686-pc-mingw32-ocamlopt graphics.cmxa $< -o $@
24
25 test4: test4.ml
26         ocamlopt graphics.cmxa $< -o $@
27
28 test4.exe: test4.ml
29         i686-pc-mingw32-ocamlopt graphics.cmxa $< -o $@
30
31 test_format: test_format.ml
32         ocamlopt $< -o $@
33
34 test_format.exe: test_format.ml
35         i686-pc-mingw32-ocamlopt $< -o $@
36
37 sudoku: sudoku.ml
38         ocamlopt $< -o $@
39
40 sudoku.exe: sudoku.ml
41         i686-pc-mingw32-ocamlopt $< -o $@
42
43 clean:
44         rm -f test[1-4] test_format sudoku *.exe *.cmi *.cmx *.o