-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (37 loc) · 1.6 KB
/
Copy pathMakefile
File metadata and controls
50 lines (37 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Build the cpdf command line tools
NONDOC = cpdfyojson cpdfxmlm
DOC = cpdfutil cpdfunicodedata cpdferror cpdfdebug cpdfjson cpdfstrftime \
cpdfcoord cpdfattach cpdfpagespec cpdfposition cpdfpresent cpdfmetadata \
cpdfbookmarks cpdfpage cpdftruetype cpdfremovetext \
cpdfembed cpdffont cpdftype cpdfaddtext cpdfpad cpdfocg \
cpdfdraft cpdfspot cpdfpagelabels cpdfcreate cpdfannot cpdfxobject \
cpdfimpose cpdfchop cpdftweak cpdfprinttree cpdfua cpdftexttopdf \
cpdftoc cpdfjpeg cpdfjpeg2000 cpdfpng cpdfimage cpdfdraw \
cpdfcomposition cpdfcontent cpdfsqueeze cpdfshape cpdfcolours \
cpdfdrawcontrol cpdfjs cpdfportfolio cpdfclip cpdfredact cpdfcommand
MODS = $(NONDOC) $(DOC)
SOURCES = gpc.c gpcml.c $(foreach x,$(MODS),$(x).ml $(x).mli) cpdfcommandrun.ml
RESULT = cpdf
ANNOTATE = true
PACKS = unix camlpdf
CFLAGS = -fPIC -g
OCAMLFLAGS = -bin-annot
OCAMLNCFLAGS = -g -safe-string
OCAMLBCFLAGS = -g -safe-string
OCAMLLDFLAGS = -g
TARGETS := byte-code byte-code-library htdoc
LIBINSTALL_FILES = cpdf.cma libcpdf_stubs.a dllcpdf_stubs.* \
$(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
LIBINSTALL_FILES += cpdf.a cpdf.cmxa $(foreach x,$(MODS),$x.cmx)
endif
all : $(TARGETS)
clean ::
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 \
*.ttf *.ttx out.png cpdf.dSYM *.trace out.txt
DOC_FILES = $(foreach x,$(DOC),$(x).mli)
install : libinstall
-include OCamlMakefile