30 lines
793 B
Makefile
30 lines
793 B
Makefile
# Build the cpdf command line tools and top level
|
|
MODS = cpdfstream tjutil tjutf16 tjllist tjparserMonad tjjson xmlm \
|
|
cpdfJSON cpdfstrftime cpdfcoord \
|
|
cpdfpagespec cpdfposition cpdf cpdfcommand
|
|
|
|
SOURCES = $(foreach x,$(MODS),$(x).ml $(x).mli) cpdfcommandrun.ml
|
|
|
|
RESULT = cpdf
|
|
ANNOTATE = true
|
|
PACKS = camlpdf
|
|
|
|
CFLAGS = -fPIC
|
|
OCAMLFLAGS = -bin-annot
|
|
OCAMLNCFLAGS = -g -safe-string -w -3
|
|
OCAMLBCFLAGS = -g -safe-string -w -3
|
|
OCAMLLDFLAGS = -g
|
|
|
|
all : native-code native-code-library byte-code-library top htdoc
|
|
|
|
clean ::
|
|
rm -rf doc foo foo2 out.pdf out2.pdf *.cmt *.cmti
|
|
|
|
LIBINSTALL_FILES = cpdf.a cpdf.cma cpdf.cmxa \
|
|
$(foreach x,$(MODS),$x.mli) $(foreach x,$(MODS),$x.cmi) \
|
|
$(foreach x,$(MODS),$x.cmx) $(foreach x,$(MODS),$x.cmti)
|
|
|
|
install : libinstall
|
|
|
|
-include OCamlMakefile
|