blob: dc4cc96bd4123baddc2230287e9dc24a2af8d81c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
OUTPUTDIR = bin
SOURCEDIR = src
all: visualwall wallgen wallsolve
distclean:
rm -f ${OUTPUTDIR}/testrun
rm -f ${OUTPUTDIR}/visualwall
rm -f ${OUTPUTDIR}/wallgen
rm -f ${OUTPUTDIR}/wallsolve
clean:
find . -name '*.cmi' -delete
find . -name '*.cmx' -delete
find . -name '*.o' -delete
tests:
ocamlfind opt -g -linkpkg -I ${SOURCEDIR} \
-o ${OUTPUTDIR}/testrun \
-package zarith \
${SOURCEDIR}/poly.mli ${SOURCEDIR}/poly.ml \
${SOURCEDIR}/polytest.ml
visualwall:
ocamlfind opt -g -linkpkg -I ${SOURCEDIR} \
-o ${OUTPUTDIR}/visualwall \
-package lablgtk2,zarith \
${SOURCEDIR}/util.mli ${SOURCEDIR}/util.ml \
${SOURCEDIR}/wall.mli ${SOURCEDIR}/wall.ml \
${SOURCEDIR}/sequence.mli ${SOURCEDIR}/sequence.ml \
${SOURCEDIR}/dialog.mli ${SOURCEDIR}/dialog.ml \
${SOURCEDIR}/visualwall.ml
wallgen:
ocamlfind opt -g -linkpkg -I ${SOURCEDIR} \
-o ${OUTPUTDIR}/wallgen \
-package zarith \
${SOURCEDIR}/util.mli ${SOURCEDIR}/util.ml \
${SOURCEDIR}/wall.mli ${SOURCEDIR}/wall.ml \
${SOURCEDIR}/sequence.mli ${SOURCEDIR}/sequence.ml \
${SOURCEDIR}/wallgen.ml
wallsolve:
ocamlfind opt -g -linkpkg -I ${SOURCEDIR} \
-o ${OUTPUTDIR}/wallsolve \
-package zarith \
${SOURCEDIR}/util.mli ${SOURCEDIR}/util.ml \
${SOURCEDIR}/poly.mli ${SOURCEDIR}/poly.ml \
${SOURCEDIR}/wall.mli ${SOURCEDIR}/wall.ml \
${SOURCEDIR}/wallsolve.ml
|