2013-08-20 16:32:57 +02:00
|
|
|
# Build the cpdf command line tools and top level
|
2021-12-21 16:40:52 +01:00
|
|
|
MODS = cpdfyojson cpdfxmlm cpdfutil \
|
2021-12-21 16:00:17 +01:00
|
|
|
cpdfunicodedata cpdferror cpdfdebug cpdfjson cpdfstrftime cpdfcoord \
|
|
|
|
cpdfattach cpdfpagespec cpdfposition cpdfpresent cpdfmetadata \
|
|
|
|
cpdfbookmarks cpdfpage cpdfaddtext cpdf cpdfimage cpdffont cpdftype \
|
2021-12-21 16:25:59 +01:00
|
|
|
cpdftexttopdf cpdftoc cpdfpad cpdfocg cpdfsqueeze cpdfdraft cpdfspot \
|
2021-12-21 16:33:56 +01:00
|
|
|
cpdfpagelabels cpdfcreate cpdfannot cpdfxobject cpdfcommand
|
2013-08-20 22:00:17 +02:00
|
|
|
|
2020-07-21 13:28:32 +02:00
|
|
|
SOURCES = $(foreach x,$(MODS),$(x).ml $(x).mli) cpdfcommandrun.ml
|
2013-08-20 16:32:57 +02:00
|
|
|
|
|
|
|
RESULT = cpdf
|
2013-09-16 14:17:40 +02:00
|
|
|
ANNOTATE = true
|
2020-12-02 14:31:23 +01:00
|
|
|
PACKS = camlpdf
|
2013-08-20 16:32:57 +02:00
|
|
|
|
2020-07-21 13:28:32 +02:00
|
|
|
CFLAGS = -fPIC
|
2019-09-15 18:29:23 +02:00
|
|
|
OCAMLFLAGS = -bin-annot
|
|
|
|
OCAMLNCFLAGS = -g -safe-string -w -3
|
|
|
|
OCAMLBCFLAGS = -g -safe-string -w -3
|
2013-08-20 16:32:57 +02:00
|
|
|
OCAMLLDFLAGS = -g
|
|
|
|
|
2013-08-20 22:00:17 +02:00
|
|
|
all : native-code native-code-library byte-code-library top htdoc
|
|
|
|
|
2014-09-16 17:12:58 +02:00
|
|
|
clean ::
|
2021-12-21 16:00:17 +01:00
|
|
|
rm -rf doc foo foo2 out.pdf out2.pdf foo.pdf decomp.pdf *.cmt *.cmti \
|
|
|
|
*.json test/*.pdf debug/*.pdf *.ps
|
2014-09-16 17:12:58 +02:00
|
|
|
|
2021-10-05 19:28:28 +02:00
|
|
|
DOC_FILES = cpdferror.mli cpdfjson.mli cpdfstrftime.mli cpdfcoord.mli \
|
|
|
|
cpdfattach.mli cpdfpagespec.mli cpdfposition.mli cpdf.mli \
|
|
|
|
cpdfcommand.mli
|
|
|
|
|
2013-11-22 15:42:18 +01:00
|
|
|
LIBINSTALL_FILES = cpdf.a cpdf.cma cpdf.cmxa \
|
2016-03-29 15:40:01 +02:00
|
|
|
$(foreach x,$(MODS),$x.mli) $(foreach x,$(MODS),$x.cmi) \
|
2019-09-15 18:29:23 +02:00
|
|
|
$(foreach x,$(MODS),$x.cmx) $(foreach x,$(MODS),$x.cmti)
|
2013-08-20 22:00:17 +02:00
|
|
|
|
|
|
|
install : libinstall
|
2013-08-20 16:32:57 +02:00
|
|
|
|
|
|
|
-include OCamlMakefile
|