Hopefuly last fix for bird's eye up/down navigation
[llpp.git] / build.sh
blob70d937758ad2a60546913da055bb464606d8c5c1
1 srcpath=$(dirname $0)
3 mupdf=/home/malc/x/rcs/git/mupdf
5 mupdflibpath=$mupdf/build/release
6 mupdfincpath=$mupdf/fitz:$mupdf/pdf
8 cclib="-lmupdf -lfitz -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
15 ocamlc -c -o parser.cmo $srcpath/parser.ml
17 ocamlc -custom -o llpp \
18 -I +lablGL \
19 str.cma unix.cma lablgl.cma lablglut.cma \
20 link.o \
21 -cclib "$cclib" \
22 parser.cmo \
23 main.cmo