4 ocamlflags = -warn-error +a -w +a-6-4 -g
5 libs = -lmupdf $mujs -lpthread -L$mupdf/build/$buildtype
7 cflags =$cflags -Wall -Werror -I$mupdf/include -I$freetype -g
12 command = $ocamlc -cc "$cc" -ccopt "$cflags -MMD -MF $out.d -o $out" -c $in
18 command = sh $srcdir/doocaml $ocamlc $out $in -c $ocamlflags
19 description = ocamlc $out
22 command = sh $srcdir/mkhelp.sh $srcdir/keystoml.ml $srcdir/KEYS >$out
25 sedcmd = sed -f $srcdir/pp.sed
27 build $builddir/help.ml: genhelp $
28 $srcdir/mkhelp.sh $srcdir/keystoml.ml $srcdir/KEYS
29 build $builddir/link.o: cc $srcdir/link.c
30 cflags = $cflags -D_GNU_SOURCE -DOBSCURED_OPT -DFFP
31 build $builddir/help.cmo: ocamlc $builddir/help.ml
32 build $builddir/utils.cmo: ocamlc $srcdir/utils.ml
33 build $builddir/bo.cmo: ocamlc $srcdir/le/bo.ml
34 build $builddir/wsi.cmi: ocamlc $srcdir/wsi.mli
35 build $builddir/wsi.cmo: ocamlc $srcdir/wsi.ml $
36 || $builddir/bo.cmo $builddir/utils.cmo $builddir/wsi.cmi
37 build $builddir/parser.cmo: ocamlc $srcdir/parser.ml
38 build $builddir/config.cmo: ocamlc $srcdir/config.ml $
39 || $builddir/wsi.cmi $builddir/utils.cmo $builddir/parser.cmo
40 ocamlflags = $ocamlflags -I +lablGL
41 build $builddir/main.cmo: ocamlc $srcdir/main.ml $
42 || $builddir/wsi.cmi $builddir/utils.cmo $builddir/config.cmo $
44 ocamlflags = $ocamlflags -I +lablGL -pp "$sedcmd"
46 cmos = $builddir/help.cmo $
48 $builddir/parser.cmo $
51 $builddir/config.cmo $
55 command = $cc -o $out -shared $in $libs $lflags
56 description = linkso $out
58 build $builddir/link.so: linkso $builddir/link.o
61 command = $ocamlc -g -o $out -I +lablGL $
62 str.cma unix.cma lablgl.cma $cmos $
64 description = link $out
66 build $builddir/llpp: link $
69 $builddir/parser.cmo $
72 $builddir/config.cmo $
76 default $builddir/llpp