1 # Generated automatically from Makefile.in by configure.
4 top_srcdir = @top_srcdir@
5 include ../../Makefile.common
7 all-local: ../libgfxpdf$(A) pdf2swf$(E) pdf2jpeg$(E)
11 libgfxpdf: ../libgfxpdf$(A)
13 libgfxpdf_objects = GFXOutputDev.$(O) InfoOutputDev.$(O) BitmapOutputDev.$(O) FullBitmapOutputDev.$(O) XMLOutputDev.$(O) pdf.$(O) fonts.$(O) bbox.$(O) popplercompat.$(O)
15 xpdf_in_source = @xpdf_in_source@
17 xpdf_objects = xpdf/GHash.$(O) xpdf/GList.$(O) xpdf/GString.$(O) xpdf/gmem.$(O) xpdf/gfile.$(O) \
18 xpdf/FoFiTrueType.$(O) xpdf/FoFiType1.$(O) xpdf/FoFiType1C.$(O) xpdf/FoFiBase.$(O) xpdf/FoFiEncodings.$(O) \
19 xpdf/OutputDev.$(O) xpdf/PDFDoc.$(O) xpdf/Error.$(O) xpdf/Stream.$(O) xpdf/Object.$(O) \
20 xpdf/Decrypt.$(O) xpdf/Array.$(O) xpdf/XRef.$(O) xpdf/Dict.$(O) xpdf/Parser.$(O) \
21 xpdf/Lexer.$(O) xpdf/Outline.$(O) xpdf/PDFDocEncoding.$(O) xpdf/Catalog.$(O) \
22 xpdf/Link.$(O) xpdf/GlobalParams.$(O) xpdf/JBIG2Stream.$(O) xpdf/Page.$(O) xpdf/JPXStream.$(O) \
23 xpdf/JArithmeticDecoder.$(O) xpdf/Gfx.$(O) xpdf/GfxFont.$(O) xpdf/CMap.$(O) xpdf/CharCodeToUnicode.$(O) \
24 xpdf/PSTokenizer.$(O) xpdf/FontEncodingTables.$(O) xpdf/BuiltinFont.$(O) xpdf/BuiltinFontTables.$(O) \
25 xpdf/GfxState.$(O) xpdf/Function.$(O) xpdf/Annot.$(O) xpdf/NameToCharCode.$(O) xpdf/UnicodeMap.$(O) \
26 xpdf/SecurityHandler.$(O) xpdf/TextOutputDev.$(O) xpdf/UnicodeTypeTable.$(O)
27 #xpdf/OptionalContent.$(O)
29 splash_in_source = @splash_in_source@
30 splash_objects = xpdf/SplashOutputDev.$(O) xpdf/SplashFont.$(O) xpdf/SplashState.$(O) xpdf/Splash.$(O) \
31 xpdf/SplashBitmap.$(O) xpdf/SplashClip.$(O) xpdf/SplashPattern.$(O) \
32 xpdf/SplashFontEngine.$(O) xpdf/SplashFontFile.$(O) xpdf/SplashFontFileID.$(O) \
33 xpdf/SplashScreen.$(O) xpdf/SplashPath.$(O) xpdf/SplashXPath.$(O) xpdf/SplashXPathScanner.$(O) \
34 xpdf/SplashFTFontEngine.$(O) xpdf/SplashFTFontFile.$(O) xpdf/SplashFTFont.$(O)
36 xpdf_include = @xpdf_include@
38 popplercompat.$(O): popplercompat.cc
39 $(C) popplercompat.cc -o $@
45 $(CC) -I ./ $(xpdf_include) cmyk.cc -o $@
46 GFXOutputDev.$(O): GFXOutputDev.cc GFXOutputDev.h CommonOutputDev.h InfoOutputDev.h ../gfxpoly.h
47 $(CC) -I ./ $(xpdf_include) GFXOutputDev.cc -o $@
48 InfoOutputDev.$(O): InfoOutputDev.cc InfoOutputDev.h
49 $(CC) -I ./ $(xpdf_include) InfoOutputDev.cc -o $@
50 BitmapOutputDev.$(O): BitmapOutputDev.cc BitmapOutputDev.h CommonOutputDev.h InfoOutputDev.h
51 $(CC) -I ./ $(xpdf_include) BitmapOutputDev.cc -o $@
52 XMLOutputDev.$(O): XMLOutputDev.cc XMLOutputDev.h xpdf/TextOutputDev.h
53 $(CC) -I ./ $(xpdf_include) XMLOutputDev.cc -o $@
54 FullBitmapOutputDev.$(O): FullBitmapOutputDev.cc FullBitmapOutputDev.h CommonOutputDev.h InfoOutputDev.h
55 $(CC) -I ./ $(xpdf_include) FullBitmapOutputDev.cc -o $@
56 DummyOutputDev.$(O): DummyOutputDev.cc DummyOutputDev.h InfoOutputDev.h
57 $(CC) -I ./ $(xpdf_include) DummyOutputDev.cc -o $@
58 pdf.$(O): pdf.cc GFXOutputDev.h InfoOutputDev.h CommonOutputDev.h BitmapOutputDev.h FullBitmapOutputDev.h InfoOutputDev.h
59 $(CC) -I ./ $(xpdf_include) pdf.cc -o $@
62 ifeq ($(shell echo inject*xpdf.pl),inject-xpdf.pl)
63 $(XPDFOK): Makefile.in inject-xpdf.pl xpdf-*tar.gz xpdf*patch
64 @if test xpdf-changes.patch -nt $(XPDFOK);then perl inject-xpdf.pl xpdf-3.02.tar.gz;fi
65 @if test '!' -d xpdf;then perl inject-xpdf.pl xpdf-3.02.tar.gz;fi
68 xpdf/UnicodeMap.$(O): xpdf/UnicodeMap.cc
69 $(CC) -I ./ -I xpdf xpdf/UnicodeMap.cc -o $@
70 xpdf/NameToCharCode.$(O): xpdf/NameToCharCode.cc
71 $(CC) -I ./ -I xpdf xpdf/NameToCharCode.cc -o $@
72 xpdf/Annot.$(O): xpdf/Annot.cc
73 $(CC) -I ./ -I xpdf xpdf/Annot.cc -o $@
74 xpdf/Function.$(O): xpdf/Function.cc
75 $(CC) -I ./ -I xpdf xpdf/Function.cc -o $@
76 xpdf/BuiltinFontTables.$(O): xpdf/BuiltinFontTables.cc
77 $(CC) -I ./ -I xpdf xpdf/BuiltinFontTables.cc -o $@
78 xpdf/BuiltinFont.$(O): xpdf/BuiltinFont.cc
79 $(CC) -I ./ -I xpdf xpdf/BuiltinFont.cc -o $@
80 xpdf/FontEncodingTables.$(O): xpdf/FontEncodingTables.cc
81 $(CC) -I ./ -I xpdf xpdf/FontEncodingTables.cc -o $@
82 xpdf/PSTokenizer.$(O): xpdf/PSTokenizer.cc
83 $(CC) -I ./ -I xpdf xpdf/PSTokenizer.cc -o $@
84 xpdf/CharCodeToUnicode.$(O): xpdf/CharCodeToUnicode.cc
85 $(CC) -I ./ -I xpdf xpdf/CharCodeToUnicode.cc -o $@
86 xpdf/CMap.$(O): xpdf/CMap.cc
87 $(CC) -I ./ -I xpdf xpdf/CMap.cc -o $@
88 xpdf/GfxFont.$(O): xpdf/GfxFont.cc
89 $(CC) -I ./ -I xpdf xpdf/GfxFont.cc -o $@
90 xpdf/Gfx.$(O): xpdf/Gfx.cc
91 $(CC) -I ./ -I xpdf xpdf/Gfx.cc -o $@
92 xpdf/GfxState.$(O): xpdf/GfxState.cc
93 $(CC) -I ./ -I xpdf xpdf/GfxState.cc -o $@
94 xpdf/JArithmeticDecoder.$(O): xpdf/JArithmeticDecoder.cc
95 $(CC) -I ./ -I xpdf xpdf/JArithmeticDecoder.cc -o $@
96 xpdf/JPXStream.$(O): xpdf/JPXStream.cc
97 $(CC) -I ./ -I xpdf xpdf/JPXStream.cc -o $@
98 xpdf/GlobalParams.$(O): xpdf/GlobalParams.cc xpdf/GlobalParams.h
99 $(CC) -I ./ -I xpdf xpdf/GlobalParams.cc -o $@
100 xpdf/JBIG2Stream.$(O): xpdf/JBIG2Stream.cc
101 $(CC) -I ./ -I xpdf xpdf/JBIG2Stream.cc -o $@
102 xpdf/Page.$(O): xpdf/Page.cc
103 $(CC) -I ./ -I xpdf xpdf/Page.cc -o $@
104 xpdf/Link.$(O): xpdf/Link.cc
105 $(CC) -I ./ -I xpdf xpdf/Link.cc -o $@
106 xpdf/Catalog.$(O): xpdf/Catalog.cc
107 $(CC) -I ./ -I xpdf xpdf/Catalog.cc -o $@
108 xpdf/PDFDocEncoding.$(O): xpdf/PDFDocEncoding.cc
109 $(CC) -I ./ -I xpdf xpdf/PDFDocEncoding.cc -o $@
110 xpdf/Outline.$(O): xpdf/Outline.cc
111 $(CC) -I ./ -I xpdf xpdf/Outline.cc -o $@
112 xpdf/Lexer.$(O): xpdf/Lexer.cc
113 $(CC) -I ./ -I xpdf xpdf/Lexer.cc -o $@
114 xpdf/Parser.$(O): xpdf/Parser.cc
115 $(CC) -I ./ -I xpdf xpdf/Parser.cc -o $@
116 xpdf/XRef.$(O): xpdf/XRef.cc
117 $(CC) -I ./ -I xpdf xpdf/XRef.cc -o $@
118 xpdf/Array.$(O): xpdf/Array.cc
119 $(CC) -I ./ -I xpdf xpdf/Array.cc -o $@
120 xpdf/Dict.$(O): xpdf/Dict.cc
121 $(CC) -I ./ -I xpdf xpdf/Dict.cc -o $@
122 xpdf/Decrypt.$(O): xpdf/Decrypt.cc
123 $(CC) -I ./ -I xpdf xpdf/Decrypt.cc -o $@
124 xpdf/Object.$(O): xpdf/Object.cc
125 $(CC) -I ./ -I xpdf xpdf/Object.cc -o $@
126 xpdf/Error.$(O): xpdf/Error.cc aconf.h
127 $(CC) -I ./ -I xpdf xpdf/Error.cc -o $@
128 xpdf/Stream.$(O): xpdf/Stream.cc
129 $(CC) -I ./ -I xpdf xpdf/Stream.cc -o $@
130 xpdf/PDFDoc.$(O): xpdf/PDFDoc.cc
131 $(CC) -I ./ -I xpdf xpdf/PDFDoc.cc -o $@
132 xpdf/SecurityHandler.$(O): xpdf/SecurityHandler.cc xpdf/SecurityHandler.h
133 $(CC) -I ./ -I xpdf xpdf/SecurityHandler.cc -o $@
134 xpdf/OutputDev.$(O): xpdf/OutputDev.cc xpdf/GfxState.h xpdf/Stream.h xpdf/Object.h xpdf/OutputDev.h xpdf/gtypes.h xpdf/CharTypes.h
135 $(CC) -I ./ -I xpdf xpdf/OutputDev.cc -o $@
136 xpdf/FoFiBase.$(O): xpdf/FoFiBase.cc
137 $(CC) -I ./ -I xpdf xpdf/FoFiBase.cc -o $@
138 xpdf/FoFiTrueType.$(O): xpdf/FoFiTrueType.cc xpdf/FoFiBase.h
139 $(CC) -I ./ -I xpdf xpdf/FoFiTrueType.cc -o $@
140 xpdf/FoFiEncodings.$(O): xpdf/FoFiEncodings.cc xpdf/FoFiEncodings.h
141 $(CC) -I ./ -I xpdf xpdf/FoFiEncodings.cc -o $@
142 xpdf/FoFiType1C.$(O): xpdf/FoFiType1C.cc xpdf/FoFiBase.h
143 $(CC) -I ./ -I xpdf xpdf/FoFiType1C.cc -o $@
144 xpdf/FoFiType1.$(O): xpdf/FoFiType1.cc xpdf/FoFiBase.h
145 $(CC) -I ./ -I xpdf xpdf/FoFiType1.cc -o $@
146 xpdf/GList.$(O): xpdf/GList.cc
147 $(CC) -I ./ -I xpdf xpdf/GList.cc -o $@
148 xpdf/GString.$(O): xpdf/GString.cc
149 $(CC) -I ./ -I xpdf xpdf/GString.cc -o $@
150 xpdf/GHash.$(O): xpdf/GHash.cc
151 $(CC) -I ./ -I xpdf xpdf/GHash.cc -o $@
152 xpdf/gfile.$(O): xpdf/gfile.cc
153 $(CC) -I ./ -I xpdf xpdf/gfile.cc -o $@
154 xpdf/gmem.$(O): xpdf/gmem.cc
155 $(C) -I ./ -I xpdf xpdf/gmem.cc -o $@
156 xpdf/parseargs.$(O): xpdf/parseargs.c
157 $(C) -I ./ -I xpdf xpdf/parseargs.c -o $@
159 xpdf/%.$(O): xpdf/%.cc
160 $(CC) -I ./ -I xpdf $< -o $@
163 ../libgfxpdf$(A): $(XPDFOK) $(libgfxpdf_objects) $(xpdf_in_source) $(splash_in_source)
164 rm -f ../libgfxpdf$(A)
165 $(AR) r ../libgfxpdf$(A) $(libgfxpdf_objects) $(xpdf_in_source) $(splash_in_source)
166 $(RANLIB) ../libgfxpdf$(A)
168 xpdfapp_sources=xpdf/XPDFApp.cc xpdf/XPDFCore.cc xpdf/XPDFTree.cc xpdf/XPDFViewer.cc xpdf/PDFCore.cc xpdf/TextOutputDev.cc xpdf/xpdf.cc xpdf/CoreOutputDev.cc xpdf/UnicodeTypeTable.cc xpdf/PSOutputDev.cc
169 splash_sources=xpdf/Splash.cc xpdf/SplashBitmap.cc xpdf/SplashClip.cc xpdf/SplashFTFont.cc xpdf/SplashFTFontEngine.cc xpdf/SplashFTFontFile.cc xpdf/SplashFont.cc xpdf/SplashFontEngine.cc xpdf/SplashFontFile.cc xpdf/SplashFontFileID.cc xpdf/SplashOutputDev.cc xpdf/SplashPath.cc xpdf/SplashPattern.cc xpdf/SplashScreen.cc xpdf/SplashState.cc xpdf/SplashT1Font.cc xpdf/SplashT1FontEngine.cc xpdf/SplashT1FontFile.cc xpdf/SplashXPath.cc xpdf/SplashXPathScanner.cc
170 xpdfapp_objects=xpdf/XPDFApp.$(O) xpdf/XPDFCore.$(O) xpdf/XPDFTree.$(O) xpdf/XPDFViewer.$(O) xpdf/PDFCore.$(O) xpdf/xpdf.$(O) xpdf/CoreOutputDev.$(O) xpdf/PSOutputDev.$(O)
172 xxpdf$(E): $(xpdf_objects) $(xpdfapp_objects) $(splash_objects)
173 $(LL) $(CPPFLAGS) -DXPDFEXE -g -I xpdf -I . $(xpdfapp_objects) $(xpdf_objects) $(splash_objects) xpdf/parseargs.c -o xxpdf$(E) $(LIBS) -lXm -lX11
175 pdftoppm.$(O): $(XPDFOK) xpdf/pdftoppm.cc $(xpdf_objects) $(splash_objects)
176 $(CC) -DXPDFEXE -I xpdf -I . xpdf/pdftoppm.cc
177 pdftotext.$(O): $(XPDFOK) xpdf/pdftotext.cc $(xpdf_objects)
178 $(CC) -DXPDFEXE -I xpdf -I . xpdf/pdftotext.cc
179 pdfinfo.$(O): $(XPDFOK) xpdf/pdfinfo.cc $(xpdf_objects)
180 $(CC) -DXPDFEXE -I xpdf -I . xpdf/pdfinfo.cc
182 pdftoppm$(E): $(XPDFOK) xpdf/pdftoppm.$(O) xpdf/parseargs.$(O) $(xpdf_objects) $(splash_objects)
183 $(LL) $(CPPFLAGS) -DXPDFEXE -g $(xpdf_include) -I . xpdf/pdftoppm.$(O) $(xpdf_objects) $(splash_objects) xpdf/parseargs.$(O) -o pdftoppm$(E) $(LIBS)
184 pdftotext$(E): $(XPDFOK) xpdf/pdftotext.$(O) xpdf/parseargs.$(O) $(xpdf_objects)
185 $(LL) $(CPPFLAGS) -DXPDFEXE -g $(xpdf_include) -I . xpdf/pdftotext.$(O) $(xpdf_objects) xpdf/parseargs.$(O) -o pdftotext$(E) $(LIBS)
186 pdfinfo$(E): $(XPDFOK) xpdf/pdfinfo.$(O) xpdf/parseargs.$(O) $(xpdf_objects)
187 $(LL) $(CPPFLAGS) -DXPDFEXE -g $(xpdf_include) -I . xpdf/pdfinfo.$(O) $(xpdf_objects) xpdf/parseargs.$(O) -o pdfinfo$(E) $(LIBS)
189 gfx_objects = ../libgfxswf$(A) ../libgfx$(A) ../librfxswf$(A) ../libbase$(A)
190 gfx_objects2 = $(gfx_objects) ../libocr$(A)
192 pdf2jpeg$(E): $(XPDFOK) pdf2jpeg.c ../libbase$(A) xpdf/parseargs.$(O) $(xpdf_objects) $(splash_objects)
193 $(LL) $(CPPFLAGS) -DXPDFEXE $(xpdf_include) -I. -g pdf2jpeg.c xpdf/parseargs.$(O) ../libbase$(A) $(xpdf_objects) $(splash_objects) -o pdf2jpeg$(E) $(LIBS)
194 pdf2swf$(E): $(XPDFOK) ../../src/pdf2swf.c $(libgfxpdf_objects) $(xpdf_in_source) $(splash_in_source) $(gfx_objects)
195 $(LL) $(CPPFLAGS) -g ../../src/pdf2swf.c $(libgfxpdf_objects) $(xpdf_in_source) $(splash_in_source) $(gfx_objects) -o pdf2swf$(E) $(LIBS)
196 pdf2pdf$(E): $(XPDFOK) ../../src/pdf2pdf.c $(libgfxpdf_objects) $(xpdf_in_source) $(splash_in_source) $(gfx_objects)
197 $(LL) $(CPPFLAGS) -g ../../src/pdf2pdf.c $(libgfxpdf_objects) $(xpdf_in_source) $(splash_in_source) $(gfx_objects) -o pdf2pdf$(E) $(LIBS)
198 gfx2gfx$(E): $(XPDFOK) ../../src/gfx2gfx.c $(libgfxpdf_objects) $(xpdf_in_source) $(splash_in_source) $(gfx_objects2)
199 $(LL) $(CPPFLAGS) -g ../../src/gfx2gfx.c $(libgfxpdf_objects) $(xpdf_in_source) $(splash_in_source) $(gfx_objects2) -o gfx2gfx$(E) $(LIBS)
202 $(mkinstalldirs) $(bindir)
203 @for file in pdfinfo pdftoppm pdftotext; do if test -f $$file;then $(INSTALL_BIN);fi;done
209 rm -f xpdf/*.o xpdf/*.obj *.o pdf2swf pdftoppm pdftotext pdf2swf.exe pdftoppm.exe pdftotext.exe *.obj *.lo *.a *.lib *.la gmon.out
211 .PHONY: clean install uninstall check all xpdf