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