Optionally allow to scroll past last page
[llpp.git] / build.sh
blobbde6da123e6cc18b34852ddbd3a39a19be5896a1
1 srcpath=$(dirname $0)
3 mupdf=/home/malc/x/rcs/svn/sumatrapdf-read-only/mupdf
5 mupdflibpath=$mupdf/build/release
6 mupdfincpath=$mupdf/fitz:$mupdf/mupdf
8 cclib="-lmupdf -lz -ljpeg -lopenjpeg -ljbig2dec -lfreetype"
10 export LIBRARY_PATH=$LIBRARY_PATH:$mupdflibpath
11 export CPATH=$CPATH:$mupdfincpath
13 ocamlc -c -o link.o -ccopt -O $srcpath/link.c
14 ocamlc -c -o main.cmo -I +lablGL $srcpath/main.ml
16 ocamlc -custom -o llpp \
17 -I +lablGL \
18 unix.cma lablgl.cma lablglut.cma \
19 link.o \
20 -cclib "$cclib" \
21 main.cmo