cpdf-source/Makefile

44 lines
1.7 KiB
Makefile
Raw Normal View History

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