Correct KEYBUTMASK processing
[llpp.git] / build.sh
blob5090f4340b00063200501bea752379df3b07cb4a
1 srcpath=$(dirname $0)
3 mupdf=/home/malc/x/rcs/git/mupdf
5 mupdflibpath=$mupdf/build/release
6 mupdfincpath=$mupdf/fitz:$mupdf/pdf:$mupdf/xps:$mupdf/cbz
8 cclib="-lmupdf -lmuxps -lmucbz -lfitz"
9 cclib="$cclib -lz -ljpeg -lopenjpeg -ljbig2dec -lfreetype"
10 cclib="$cclib -lX11"
11 ccopt="$(freetype-config --cflags) -O -include ft2build.h -D_GNU_SOURCE"
12 export LIBRARY_PATH=$LIBRARY_PATH:$mupdflibpath
13 export CPATH=$CPATH:$mupdfincpath
15 sh mkhelp.sh $srcpath/keystoml.ml $srcpath/KEYS > help.ml
17 ocamlc -c -o link.o -ccopt "$ccopt" $srcpath/link.c
18 ocamlc -c -o help.cmo help.ml
19 ocamlc -c -o parser.cmo $srcpath/parser.ml
20 ocamlc -c -o main.cmo -I +lablGL $srcpath/main.ml
22 ocamlc -custom -o llpp \
23 -I +lablGL \
24 str.cma unix.cma lablgl.cma lablglut.cma \
25 link.o \
26 -cclib "$cclib" \
27 help.cmo \
28 parser.cmo \
29 main.cmo