2023-03-02 18:29:14 +01:00
|
|
|
# Build the cpdf command line tools
|
2023-03-23 20:24:50 +01:00
|
|
|
NONDOC = cpdfyojson cpdfxmlm
|
2022-09-11 15:52:08 +02:00
|
|
|
|
|
|
|
DOC = cpdfunicodedata cpdferror cpdfdebug cpdfjson cpdfstrftime cpdfcoord \
|
|
|
|
cpdfattach cpdfpagespec cpdfposition cpdfpresent cpdfmetadata \
|
2022-09-27 20:58:27 +02:00
|
|
|
cpdfbookmarks cpdfpage cpdftruetype cpdfremovetext cpdfextracttext \
|
2023-07-18 15:51:13 +02:00
|
|
|
cpdfembed cpdffont cpdftype cpdfaddtext cpdfpad cpdfocg \
|
2022-09-27 20:58:27 +02:00
|
|
|
cpdfsqueeze cpdfdraft cpdfspot cpdfpagelabels cpdfcreate cpdfannot \
|
2024-10-02 15:20:51 +02:00
|
|
|
cpdfxobject cpdfimpose cpdfchop cpdftweak cpdfprinttree cpdfua cpdftexttopdf cpdftoc \
|
|
|
|
cpdfjpeg cpdfjpeg2000 cpdfpng cpdfimage cpdfdraw \
|
2024-09-30 16:13:56 +02:00
|
|
|
cpdfcomposition cpdfshape cpdfcolours cpdfdrawcontrol \
|
2024-07-03 14:38:38 +02:00
|
|
|
cpdfcommand
|
2022-09-11 15:52:08 +02:00
|
|
|
|
|
|
|
MODS = $(NONDOC) $(DOC)
|
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
|
2022-04-09 14:13:12 +02:00
|
|
|
OCAMLNCFLAGS = -g -safe-string
|
|
|
|
OCAMLBCFLAGS = -g -safe-string
|
2013-08-20 16:32:57 +02:00
|
|
|
OCAMLLDFLAGS = -g
|
|
|
|
|
2023-08-15 19:51:17 +02:00
|
|
|
TARGETS := byte-code byte-code-library htdoc
|
2022-08-02 19:24:05 +02:00
|
|
|
|
|
|
|
LIBINSTALL_FILES = cpdf.cma \
|
|
|
|
$(foreach x,$(MODS),$x.mli) $(foreach x,$(MODS),$x.cmi) \
|
|
|
|
$(foreach x,$(MODS),$x.cmti)
|
|
|
|
|
|
|
|
ifneq ($(shell ocamlopt -version),)
|
|
|
|
TARGETS += native-code native-code-library
|
2022-09-24 12:58:09 +02:00
|
|
|
LIBINSTALL_FILES += cpdf.a cpdf.cmxa $(foreach x,$(MODS),$x.cmx)
|
2022-08-02 19:24:05 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
all : $(TARGETS)
|
2013-08-20 22:00:17 +02:00
|
|
|
|
2014-09-16 17:12:58 +02:00
|
|
|
clean ::
|
2024-10-01 15:57:36 +02:00
|
|
|
rm -rf doc foo foo2 out.pdf out2.pdf out3.pdf foo.pdf decomp.pdf *.cmt \
|
|
|
|
*.cmti *.json test/*.pdf *.ps *.aux *.idx *.log *.out *.toc *.cut \
|
2023-03-20 22:02:10 +01:00
|
|
|
*.ttf *.ttx out.png
|
2014-09-16 17:12:58 +02:00
|
|
|
|
2022-12-23 14:18:39 +01:00
|
|
|
DOC_FILES = $(foreach x,$(DOC),$(x).mli)
|
2021-10-05 19:28:28 +02:00
|
|
|
|
2013-08-20 22:00:17 +02:00
|
|
|
install : libinstall
|
2013-08-20 16:32:57 +02:00
|
|
|
|
|
|
|
-include OCamlMakefile
|