* Remove unused modules (avoid name clashes)
* Build on packaged zlib
* Don't link system libraries into resulting cma
Index: camlpdf/makefile
===================================================================
--- camlpdf.orig/makefile 2009-06-02 18:17:24.000000000 +0200
+++ camlpdf/makefile 2009-06-02 18:19:12.000000000 +0200
@@ -3,13 +3,8 @@
# and dllcamlpdf_stubs.so, libcamlpdf_stubs.a or similar
# OCaml and C source and interface files. Order matters.
SOURCES = utility.ml utility.mli \
- istring.ml istring.mli \
- io.ml io.mli \
- unzip.ml unzip.mli \
pdfio.ml pdfio.mli \
cgenlex.ml cgenlex.mli \
- zlib.ml zlib.mli \
- zlibstubs.c \
transform.ml transform.mli \
units.ml units.mli \
paper.ml paper.mli \
@@ -36,7 +31,7 @@
TRASH = tl prog.tex camlpdf.tex camlpdf.aux camlpdf.log camlpdf.toc
# ML Libraries
-LIBS = unix bigarray str
+LIBS =
CLIBS = z
@@ -44,6 +39,8 @@
#OCAMLNCFLAGS = -g
#OCAMLBCFLAGS = -g
#CAMLLDFLAGS = -g
+OCAMLFLAGS=-I $(shell ocamlfind query zip)
+OCAMLLDFLAGS=-I $(shell ocamlfind query zip)
#Uncomment if you have these compilers
#OCAMLOPT = ocamlopt.opt