1 #========================================================================
5 # Copyright 1996-2003 Glyph & Cog, LLC
7 #========================================================================
15 GOOSRCDIR
= $(srcdir)/..
/goo
17 FOFISRCDIR
= $(srcdir)/..
/fofi
19 SPLASHSRCDIR
= $(srcdir)/..
/splash
20 SPLASHLIBDIR
= ..
/splash
22 CXXFLAGS
= @CXXFLAGS@ @DEFS@
-I..
-I
$(GOOSRCDIR
) -I
$(FOFISRCDIR
) -I
$(SPLASHSRCDIR
) -I
$(srcdir) @freetype2_CFLAGS@ @Sgm_CFLAGS@ @Xm_CFLAGS@ @Xt_CFLAGS@ @Xp_CFLAGS@ @Xext_CFLAGS@ @Xpm_CFLAGS@ @t1_CFLAGS@ @libpaper_CFLAGS@ @X_CFLAGS@
27 FTLIBS
= @freetype2_LIBS@
29 XLIBS
= @Sgm_LIBS@ @Xm_LIBS@ @Xt_LIBS@ @Xp_LIBS@ @Xext_LIBS@ @Xpm_LIBS@ @X_PRE_LIBS@ @X_LIBS@
-lX11 @X_EXTRA_LIBS@
31 SPLASHLIBS
= -L
$(SPLASHLIBDIR
) -lsplash
33 OTHERLIBS
= @LIBS@ @libpaper_LIBS@ \
34 -L
$(FOFILIBDIR
) -lfofi \
39 LIBPREFIX
= @LIBPREFIX@
42 #------------------------------------------------------------------------
47 $(CXX
) $(CXXFLAGS
) -c
$<
49 #------------------------------------------------------------------------
54 $(srcdir)/BuiltinFont.
cc \
55 $(srcdir)/BuiltinFontTables.
cc \
57 $(srcdir)/Catalog.
cc \
58 $(srcdir)/CharCodeToUnicode.
cc \
59 $(srcdir)/CoreOutputDev.
cc \
60 $(srcdir)/Decrypt.
cc \
63 $(srcdir)/FontEncodingTables.
cc \
64 $(srcdir)/Function.
cc \
66 $(srcdir)/GfxFont.
cc \
67 $(srcdir)/GfxState.
cc \
68 $(srcdir)/GlobalParams.
cc \
69 $(srcdir)/ImageOutputDev.
cc \
70 $(srcdir)/JArithmeticDecoder.
cc \
71 $(srcdir)/JBIG2Stream.
cc \
72 $(srcdir)/JPXStream.
cc \
75 $(srcdir)/NameToCharCode.
cc \
77 $(srcdir)/Outline.
cc \
78 $(srcdir)/OutputDev.
cc \
79 $(srcdir)/PDFCore.
cc \
81 $(srcdir)/PDFDocEncoding.
cc \
82 $(srcdir)/PSOutputDev.
cc \
83 $(srcdir)/PSTokenizer.
cc \
86 $(srcdir)/PreScanOutputDev.
cc \
87 $(srcdir)/SecurityHandler.
cc \
88 $(srcdir)/SplashOutputDev.
cc \
90 $(srcdir)/TextOutputDev.
cc \
91 $(srcdir)/UnicodeMap.
cc \
92 $(srcdir)/UnicodeTypeTable.
cc \
93 $(srcdir)/XPDFApp.
cc \
94 $(srcdir)/XPDFCore.
cc \
95 $(srcdir)/XPDFTree.
cc \
96 $(srcdir)/XPDFViewer.
cc \
97 $(srcdir)/XpdfPluginAPI.
cc \
99 $(srcdir)/pdftops.
cc \
100 $(srcdir)/pdftotext.
cc \
101 $(srcdir)/pdfinfo.
cc \
102 $(srcdir)/pdffonts.
cc \
103 $(srcdir)/pdftoppm.
cc \
104 $(srcdir)/pdfimages.
cc \
107 #------------------------------------------------------------------------
109 all: xpdf
$(EXE
) pdftops
$(EXE
) pdftotext
$(EXE
) pdfinfo
$(EXE
) \
110 pdffonts
$(EXE
) pdftoppm
$(EXE
) pdfimages
$(EXE
)
112 all-no-x
: pdftops
$(EXE
) pdftotext
$(EXE
) pdfinfo
$(EXE
) pdffonts
$(EXE
) \
115 #------------------------------------------------------------------------
117 XPDF_OBJS
= Annot.o Array.o BuiltinFont.o BuiltinFontTables.o Catalog.o \
118 CharCodeToUnicode.o CMap.o CoreOutputDev.o Decrypt.o Dict.o \
119 Error.o FontEncodingTables.o Function.o Gfx.o GfxFont.o \
120 GfxState.o GlobalParams.o JArithmeticDecoder.o JBIG2Stream.o \
121 JPXStream.o Lexer.o Link.o NameToCharCode.o Object.o Outline.o \
122 OutputDev.o Page.o Parser.o PDFCore.o PDFDoc.o PDFDocEncoding.o \
123 PreScanOutputDev.o PSOutputDev.o PSTokenizer.o SecurityHandler.x.o \
124 SplashOutputDev.o Stream.o TextOutputDev.o UnicodeMap.o \
125 UnicodeTypeTable.o XPDFApp.o XPDFCore.o XPDFTree.o XPDFViewer.o \
126 XpdfPluginAPI.o XRef.o xpdf.o
127 XPDF_LIBS
= -L
$(GOOLIBDIR
) -lGoo
$(SPLASHLIBS
) $(T1LIBS
) $(FTLIBS
) \
128 $(XLIBS
) $(OTHERLIBS
) -lm
130 xpdf
$(EXE
): $(XPDF_OBJS
) $(GOOLIBDIR
)/$(LIBPREFIX
)Goo.a
131 $(CXX
) $(CXXFLAGS
) $(LDFLAGS
) -o xpdf
$(EXE
) $(XPDF_OBJS
) $(XPDF_LIBS
)
133 #------------------------------------------------------------------------
135 PDFTOPS_OBJS
= Annot.o Array.o BuiltinFont.o BuiltinFontTables.o \
136 Catalog.o CharCodeToUnicode.o CMap.o Decrypt.o Dict.o Error.o \
137 FontEncodingTables.o Function.o Gfx.o GfxFont.o \
138 GfxState.o GlobalParams.o JArithmeticDecoder.o JBIG2Stream.o \
139 JPXStream.o Lexer.o Link.o NameToCharCode.o Outline.o Object.o \
140 OutputDev.o Page.o Parser.o PDFDoc.o PDFDocEncoding.o \
141 PreScanOutputDev.o PSOutputDev.o PSTokenizer.o SecurityHandler.o \
142 SplashOutputDev.o Stream.o UnicodeMap.o XpdfPluginAPI.o XRef.o \
144 PDFTOPS_LIBS
= -L
$(GOOLIBDIR
) -lGoo
$(SPLASHLIBS
) $(T1LIBS
) $(FTLIBS
) \
147 pdftops
$(EXE
): $(PDFTOPS_OBJS
) $(GOOLIBDIR
)/$(LIBPREFIX
)Goo.a
148 $(CXX
) $(CXXFLAGS
) $(LDFLAGS
) -o pdftops
$(EXE
) $(PDFTOPS_OBJS
) \
151 #------------------------------------------------------------------------
153 PDFTOTEXT_OBJS
= Annot.o Array.o BuiltinFont.o BuiltinFontTables.o \
154 Catalog.o CharCodeToUnicode.o CMap.o Decrypt.o Dict.o Error.o \
155 FontEncodingTables.o Function.o Gfx.o GfxFont.o \
156 GfxState.o GlobalParams.o JArithmeticDecoder.o JBIG2Stream.o \
157 JPXStream.o Lexer.o Link.o NameToCharCode.o Object.o Outline.o \
158 OutputDev.o Page.o Parser.o PDFDoc.o PDFDocEncoding.o PSTokenizer.o \
159 SecurityHandler.o Stream.o TextOutputDev.o UnicodeMap.o \
160 UnicodeTypeTable.o XpdfPluginAPI.o XRef.o pdftotext.o
161 PDFTOTEXT_LIBS
= -L
$(GOOLIBDIR
) -lGoo
$(OTHERLIBS
) -lm
163 pdftotext
$(EXE
): $(PDFTOTEXT_OBJS
) $(GOOLIBDIR
)/$(LIBPREFIX
)Goo.a
164 $(CXX
) $(CXXFLAGS
) $(LDFLAGS
) -o pdftotext
$(EXE
) $(PDFTOTEXT_OBJS
) \
167 #------------------------------------------------------------------------
169 PDFINFO_OBJS
= Annot.o Array.o BuiltinFont.o BuiltinFontTables.o \
170 Catalog.o CharCodeToUnicode.o CMap.o Decrypt.o Dict.o Error.o \
171 FontEncodingTables.o Function.o Gfx.o GfxFont.o \
172 GfxState.o GlobalParams.o JArithmeticDecoder.o JBIG2Stream.o \
173 JPXStream.o Lexer.o Link.o NameToCharCode.o Object.o Outline.o \
174 OutputDev.o Page.o Parser.o PDFDoc.o PDFDocEncoding.o PSTokenizer.o \
175 SecurityHandler.o Stream.o UnicodeMap.o XpdfPluginAPI.o XRef.o \
177 PDFINFO_LIBS
= -L
$(GOOLIBDIR
) -lGoo
$(OTHERLIBS
) -lm
179 pdfinfo
$(EXE
): $(PDFINFO_OBJS
) $(GOOLIBDIR
)/$(LIBPREFIX
)Goo.a
180 $(CXX
) $(CXXFLAGS
) $(LDFLAGS
) -o pdfinfo
$(EXE
) $(PDFINFO_OBJS
) \
183 #------------------------------------------------------------------------
185 PDFFONTS_OBJS
= Annot.o Array.o BuiltinFont.o BuiltinFontTables.o \
186 Catalog.o CharCodeToUnicode.o CMap.o Decrypt.o Dict.o Error.o \
187 FontEncodingTables.o Function.o Gfx.o GfxFont.o \
188 GfxState.o GlobalParams.o JArithmeticDecoder.o JBIG2Stream.o \
189 JPXStream.o Lexer.o Link.o NameToCharCode.o Object.o Outline.o \
190 OutputDev.o Page.o Parser.o PDFDoc.o PDFDocEncoding.o PSTokenizer.o \
191 SecurityHandler.o Stream.o UnicodeMap.o XpdfPluginAPI.o XRef.o \
193 PDFFONTS_LIBS
= -L
$(GOOLIBDIR
) -lGoo
$(OTHERLIBS
) -lm
195 pdffonts
$(EXE
): $(PDFFONTS_OBJS
) $(GOOLIBDIR
)/$(LIBPREFIX
)Goo.a
196 $(CXX
) $(CXXFLAGS
) $(LDFLAGS
) -o pdffonts
$(EXE
) $(PDFFONTS_OBJS
) \
199 #------------------------------------------------------------------------
201 PDFTOPPM_OBJS
= Annot.o Array.o BuiltinFont.o BuiltinFontTables.o \
202 Catalog.o CharCodeToUnicode.o CMap.o Decrypt.o Dict.o Error.o \
203 FontEncodingTables.o Function.o Gfx.o GfxFont.o GfxState.o \
204 GlobalParams.o JArithmeticDecoder.o JBIG2Stream.o JPXStream.o \
205 Lexer.o Link.o NameToCharCode.o Object.o Outline.o OutputDev.o \
206 Page.o Parser.o PDFDoc.o PDFDocEncoding.o PSTokenizer.o \
207 SecurityHandler.o SplashOutputDev.o Stream.o TextOutputDev.o \
208 UnicodeMap.o UnicodeTypeTable.o XpdfPluginAPI.o XRef.o pdftoppm.o
209 PDFTOPPM_LIBS
= -L
$(GOOLIBDIR
) -lGoo
$(SPLASHLIBS
) $(T1LIBS
) $(FTLIBS
) \
212 pdftoppm
$(EXE
): $(PDFTOPPM_OBJS
) $(GOOLIBDIR
)/$(LIBPREFIX
)Goo.a
213 $(CXX
) $(CXXFLAGS
) $(LDFLAGS
) -o pdftoppm
$(EXE
) $(PDFTOPPM_OBJS
) \
216 #------------------------------------------------------------------------
218 PDFIMAGES_OBJS
= Annot.o Array.o BuiltinFont.o BuiltinFontTables.o \
219 Catalog.o CharCodeToUnicode.o CMap.o Decrypt.o Dict.o Error.o \
220 FontEncodingTables.o Function.o Gfx.o GfxFont.o GfxState.o \
221 GlobalParams.o ImageOutputDev.o JArithmeticDecoder.o \
222 JBIG2Stream.o JPXStream.o Lexer.o Link.o NameToCharCode.o Object.o \
223 Outline.o OutputDev.o Page.o Parser.o PDFDoc.o PDFDocEncoding.o \
224 PSTokenizer.o SecurityHandler.o Stream.o UnicodeMap.o \
225 XpdfPluginAPI.o XRef.o pdfimages.o
226 PDFIMAGES_LIBS
= -L
$(GOOLIBDIR
) -lGoo
$(OTHERLIBS
) -lm
228 pdfimages
$(EXE
): $(PDFIMAGES_OBJS
) $(GOOLIBDIR
)/$(LIBPREFIX
)Goo.a
229 $(CXX
) $(CXXFLAGS
) $(LDFLAGS
) -o pdfimages
$(EXE
) $(PDFIMAGES_OBJS
) \
232 #------------------------------------------------------------------------
234 SecurityHandler.x.o
: SecurityHandler.
cc
235 $(CXX
) $(CXXFLAGS
) -DHAVE_XPDFCORE
-c
-o SecurityHandler.x.o \
238 #------------------------------------------------------------------------
241 rm -f
$(XPDF_OBJS
) xpdf
$(EXE
)
242 rm -f
$(PDFTOPS_OBJS
) pdftops
$(EXE
)
243 rm -f
$(PDFTOTEXT_OBJS
) pdftotext
$(EXE
)
244 rm -f
$(PDFINFO_OBJS
) pdfinfo
$(EXE
)
245 rm -f
$(PDFFONTS_OBJS
) pdffonts
$(EXE
)
246 rm -f
$(PDFTOPPM_OBJS
) pdftoppm
$(EXE
)
247 rm -f
$(PDFIMAGES_OBJS
) pdfimages
$(EXE
)
249 #------------------------------------------------------------------------
252 $(CXX
) $(CXXFLAGS
) -MM
$(CXX_SRC
) >Makefile.dep