5 ocamlflags = -w a -I $builddir
6 libs = -lmupdf $mujs -lpthread -L$mupdf/build/$buildtype
8 cflags =$cflags -Wall -Werror -I$mupdf/include -I$freetype $
14 command = $ocamlc -cc $cc -ccopt "$cflags -MMD -MF $out.d -o $out" -c $in
17 command = sh $srcdir/doocaml $out $in -c $ocamlflags
20 command = cd $builddir >/dev/null && $
21 $ocaml $ocamlflags -c -o help.cmo help.ml
24 command = sh $srcdir/mkhelp.sh $srcdir/keystoml.ml $srcdir/KEYS >$out
26 sedcmd = sed -f $srcdir/pp.sed
28 build $builddir/help.ml: genhelp
29 build $builddir/link.o: cc $srcdir/link.c
30 cflags = $cflags -D_GNU_SOURCE -DOBSCURED_OPT -DFFP $
32 build $builddir/help.cmo: helpcmo | $builddir/help.ml
33 build $builddir/utils.cmo: ocamlc $srcdir/utils.ml
34 build $builddir/bo.cmo: ocamlc $srcdir/le/bo.ml
35 build $builddir/wsi.cmi: ocamlc $srcdir/wsi.mli
36 build $builddir/wsi.cmo: ocamlc $srcdir/wsi.ml | $
37 $builddir/wsi.cmi $builddir/bo.cmo
38 build $builddir/parser.cmo: ocamlc $srcdir/parser.ml
39 build $builddir/config.cmo: ocamlc $srcdir/config.ml
40 ocamlflags = $ocamlflags -I +lablGL
41 build $builddir/main.cmo: ocamlc $srcdir/main.ml
42 ocamlflags = $ocamlflags -I +lablGL -pp "$sedcmd"
44 cmos = $builddir/help.cmo $
46 $builddir/parser.cmo $
49 $builddir/config.cmo $
53 command = $cc -o $out -shared $in $libs
55 build $builddir/link.so: linkso $builddir/link.o
58 command = $ocaml -custom $
59 -cclib "$builddir/link.so $lflags" $
60 -o $out -I +lablGL str.cma unix.cma lablgl.cma $cmos
62 build $builddir/llpp: link | $
65 $builddir/parser.cmo $
68 $builddir/config.cmo $
72 default $builddir/llpp