]> www.fi.muni.cz Git - evince.git/blob - pdf/xpdf/Makefile.in
29372f6504abefa7ad4cbef6ebfdd925c39049d0
[evince.git] / pdf / xpdf / Makefile.in
1 #========================================================================
2 #
3 # Xpdf Makefile
4 #
5 # Copyright 1996 Derek B. Noonburg
6 #
7 #========================================================================
8
9 srcdir = @srcdir@
10 VPATH = @srcdir@
11
12 GOOSRCDIR = $(srcdir)/../goo
13 GOOLIBDIR = ../goo
14 LTKSRCDIR = $(srcdir)/../ltk
15 LTKLIBDIR = ../ltk
16
17 #CXXFLAGS = @CXXFLAGS@ @DEFS@ @OPTIONS@ -I$(GOOSRCDIR) -I$(LTKSRCDIR) -I$(srcdir) @X_CFLAGS@ @Xpm_CFLAGS@
18 CXXFLAGS = @CXXFLAGS@ @DEFS@ @OPTIONS@ -I$(GOOSRCDIR) -I$(LTKSRCDIR) `gnome-config --cflags gnomeui` -I$(srcdir) @Xpm_CFLAGS@ @X_CFLAGS@
19 XLIBS = @Xpm_LIBS@ @X_PRE_LIBS@ @X_LIBS@ -lX11 @X_EXTRA_LIBS@
20
21 OTHERLIBS = @LIBS@
22
23 CXX = @CXX@
24 STRIP = @STRIP@
25
26 LIBPREFIX = @LIBPREFIX@
27 EXE = @EXE@
28
29 #------------------------------------------------------------------------
30
31 .SUFFIXES: .cc
32
33 .cc.o:
34         $(CXX) $(CXXFLAGS) -c $<
35
36 #------------------------------------------------------------------------
37
38 CXX_SRC = \
39         $(srcdir)/Array.cc \
40         $(srcdir)/Catalog.cc \
41         $(srcdir)/Dict.cc \
42         $(srcdir)/Error.cc \
43         $(srcdir)/Gfx.cc \
44         $(srcdir)/GfxFont.cc \
45         $(srcdir)/GfxState.cc \
46         $(srcdir)/ImageOutputDev.cc \
47         $(srcdir)/Lexer.cc \
48         $(srcdir)/Link.cc \
49         $(srcdir)/LTKOutputDev.cc \
50         $(srcdir)/Object.cc \
51         $(srcdir)/OutputDev.cc \
52         $(srcdir)/Page.cc \
53         $(srcdir)/Params.cc \
54         $(srcdir)/Parser.cc \
55         $(srcdir)/PBMOutputDev.cc \
56         $(srcdir)/PDFDoc.cc \
57         $(srcdir)/PSOutputDev.cc \
58         $(srcdir)/Stream.cc \
59         $(srcdir)/TextOutputDev.cc \
60         $(srcdir)/XOutputDev.cc \
61         $(srcdir)/XRef.cc \
62         $(srcdir)/xpdf.cc \
63         $(srcdir)/pdftops.cc \
64         $(srcdir)/pdftotext.cc \
65         $(srcdir)/pdfinfo.cc \
66         $(srcdir)/pdftopbm.cc \
67         $(srcdir)/pdfimages.cc
68
69 #------------------------------------------------------------------------
70
71 all: gpdf xpdf
72
73 #all: xpdf$(EXE) pdftops$(EXE) pdftotext$(EXE) pdfinfo$(EXE) \
74 #       pdftopbm$(EXE) pdfimages$(EXE)
75
76 #------------------------------------------------------------------------
77
78 XPDF_OBJS = Array.o Catalog.o Dict.o Error.o Gfx.o GfxFont.o \
79         GfxState.o Lexer.o Link.o LTKOutputDev.o Object.o OutputDev.o \
80         Page.o Params.o Parser.o PDFDoc.o PSOutputDev.o Stream.o \
81         TextOutputDev.o XOutputDev.o XRef.o xpdf.o
82
83 GPDF_OBJS = Array.o Catalog.o Dict.o Error.o Gfx.o GfxFont.o \
84         GfxState.o Lexer.o Link.o GOutputDev.o Object.o OutputDev.o \
85         Page.o Params.o Parser.o PDFDoc.o PSOutputDev.o Stream.o \
86         TextOutputDev.o XRef.o gpdf.o
87
88 XPDF_LIBS = -L$(LTKLIBDIR) -lLTK -L$(GOOLIBDIR) -lGoo $(XLIBS) $(OTHERLIBS) -lm
89
90 GPDF_LIBS = -L$(GOOLIBDIR) $(OTHERLIBS) -lGoo `gnome-config --libs gnomeui` -lm
91
92 gpdf: $(GPDF_OBJS)
93         $(CXX) $(CXXFLAGS) -o gpdf $(GPDF_OBJS) $(GPDF_LIBS)
94
95 xpdf$(EXE): $(XPDF_OBJS)
96         $(CXX) $(CXXFLAGS) -o xpdf$(EXE) $(XPDF_OBJS) $(XPDF_LIBS)
97         $(STRIP) xpdf$(EXE)
98
99 xpdf-ltk.h: xpdf.ltk
100         rm -f $@
101         $(LTKLIBDIR)/ltkbuild <xpdf.ltk >$@.new
102         mv $@.new $@
103
104 #------------------------------------------------------------------------
105
106 PDFTOPS_OBJS = Array.o Catalog.o Dict.o Error.o Gfx.o GfxFont.o \
107         GfxState.o Lexer.o Link.o Object.o OutputDev.o Page.o Params.o \
108         Parser.o PDFDoc.o PSOutputDev.o Stream.o XRef.o pdftops.o
109 PDFTOPS_LIBS = -L$(GOOLIBDIR) -lGoo $(OTHERLIBS) -lm
110
111 pdftops$(EXE): $(PDFTOPS_OBJS)
112         $(CXX) $(CXXFLAGS) -o pdftops$(EXE) $(PDFTOPS_OBJS) $(PDFTOPS_LIBS)
113         $(STRIP) pdftops$(EXE)
114
115 #------------------------------------------------------------------------
116
117 PDFTOTEXT_OBJS = Array.o Catalog.o Dict.o Error.o Gfx.o GfxFont.o \
118         GfxState.o Lexer.o Link.o Object.o OutputDev.o Page.o Params.o \
119         Parser.o PDFDoc.o TextOutputDev.o Stream.o XRef.o pdftotext.o
120 PDFTOTEXT_LIBS = -L$(GOOLIBDIR) -lGoo $(OTHERLIBS) -lm
121
122 pdftotext$(EXE): $(PDFTOTEXT_OBJS)
123         $(CXX) $(CXXFLAGS) -o pdftotext$(EXE) $(PDFTOTEXT_OBJS) \
124                 $(PDFTOTEXT_LIBS)
125         $(STRIP) pdftotext$(EXE)
126
127 #------------------------------------------------------------------------
128
129 PDFINFO_OBJS = Array.o Catalog.o Dict.o Error.o Gfx.o GfxFont.o \
130         GfxState.o Lexer.o Link.o Object.o OutputDev.o Page.o \
131         Params.o Parser.o PDFDoc.o Stream.o XRef.o pdfinfo.o
132 PDFINFO_LIBS = -L$(GOOLIBDIR) -lGoo $(OTHERLIBS) -lm
133
134 pdfinfo$(EXE): $(PDFINFO_OBJS)
135         $(CXX) $(CXXFLAGS) -o pdfinfo$(EXE) $(PDFINFO_OBJS) $(PDFINFO_LIBS)
136         $(STRIP) pdfinfo$(EXE)
137
138 #------------------------------------------------------------------------
139
140 PDFTOPBM_OBJS = Array.o Catalog.o Dict.o Error.o Gfx.o GfxFont.o \
141         GfxState.o Lexer.o Link.o Object.o OutputDev.o PBMOutputDev.o \
142         Page.o Params.o Parser.o PDFDoc.o Stream.o TextOutputDev.o \
143         XOutputDev.o XRef.o pdftopbm.o
144 PDFTOPBM_LIBS = -L$(GOOLIBDIR) -lGoo $(XLIBS) $(OTHERLIBS) -lm
145
146 pdftopbm$(EXE): $(PDFTOPBM_OBJS)
147         $(CXX) $(CXXFLAGS) -o pdftopbm$(EXE) $(PDFTOPBM_OBJS) $(PDFTOPBM_LIBS)
148         $(STRIP) pdftopbm$(EXE)
149
150 #------------------------------------------------------------------------
151
152 PDFIMAGES_OBJS = Array.o Catalog.o Dict.o Error.o Gfx.o GfxFont.o \
153         GfxState.o ImageOutputDev.o Lexer.o Link.o Object.o OutputDev.o \
154         Page.o Params.o Parser.o PDFDoc.o Stream.o XRef.o pdfimages.o
155 PDFIMAGES_LIBS = -L$(GOOLIBDIR) -lGoo $(OTHERLIBS) -lm
156
157 pdfimages$(EXE): $(PDFIMAGES_OBJS)
158         $(CXX) $(CXXFLAGS) -o pdfimages$(EXE) $(PDFIMAGES_OBJS) \
159                 $(PDFIMAGES_LIBS)
160         $(STRIP) pdfimages$(EXE)
161
162 #------------------------------------------------------------------------
163
164 clean:
165         rm -f $(XPDF_OBJS) xpdf-ltk.h.new xpdf$(EXE)
166         rm -f $(PDFTOPS_OBJS) pdftops$(EXE)
167         rm -f $(PDFTOTEXT_OBJS) pdftotext$(EXE)
168         rm -f $(PDFINFO_OBJS) pdfinfo$(EXE)
169         rm -f $(PDFTOPBM_OBJS) pdftopbm$(EXE)
170         rm -f $(PDFIMAGES_OBJS) pdfimages$(EXE)
171
172 #------------------------------------------------------------------------
173
174 distdepend:
175         cp Makefile.in Makefile.in.bak
176         sed '/^#----- dependences -----/q' Makefile.in.bak >Makefile.in
177         $(CXX) $(CXXFLAGS) -MM $(CXX_SRC) >>Makefile.in
178
179 #----- dependences -----
180 Array.o: ./Array.cc ../goo/gmem.h Object.h ../goo/gtypes.h \
181  ../goo/GString.h Array.h Dict.h Stream.h
182 Catalog.o: ./Catalog.cc ../goo/gmem.h Object.h ../goo/gtypes.h \
183  ../goo/GString.h Array.h Dict.h Stream.h Page.h Error.h config.h \
184  Link.h Catalog.h
185 Dict.o: ./Dict.cc ../goo/gmem.h Object.h ../goo/gtypes.h \
186  ../goo/GString.h Array.h Dict.h Stream.h XRef.h
187 Error.o: ./Error.cc ../goo/gtypes.h Params.h Error.h config.h
188 Gfx.o: ./Gfx.cc ../goo/gmem.h Object.h ../goo/gtypes.h \
189  ../goo/GString.h Array.h Dict.h Stream.h Lexer.h Parser.h GfxFont.h \
190  GfxState.h OutputDev.h Params.h Error.h config.h Gfx.h
191 GfxFont.o: ./GfxFont.cc ../goo/GString.h ../goo/gmem.h ../goo/gfile.h \
192  ../goo/gtypes.h config.h Object.h Array.h Dict.h Stream.h Error.h \
193  Params.h GfxFont.h FontInfo.h
194 GfxState.o: ./GfxState.cc ../goo/gmem.h Error.h config.h Object.h \
195  ../goo/gtypes.h ../goo/GString.h Array.h Dict.h Stream.h GfxState.h
196 ImageOutputDev.o: ./ImageOutputDev.cc ../goo/gmem.h config.h Error.h \
197  GfxState.h ../goo/gtypes.h Object.h ../goo/GString.h Array.h Dict.h \
198  Stream.h ImageOutputDev.h OutputDev.h
199 Lexer.o: ./Lexer.cc Lexer.h Object.h ../goo/gtypes.h ../goo/gmem.h \
200  ../goo/GString.h Array.h Dict.h Stream.h Error.h config.h
201 Link.o: ./Link.cc ../goo/gmem.h ../goo/GString.h Error.h config.h \
202  Object.h ../goo/gtypes.h Array.h Dict.h Stream.h Link.h
203 LTKOutputDev.o: ./LTKOutputDev.cc ../goo/gmem.h ../goo/GString.h \
204  ../ltk/LTKWindow.h ../goo/gtypes.h ../ltk/LTKScrollingCanvas.h \
205  ../ltk/LTKWidget.h Object.h Array.h Dict.h Stream.h GfxState.h \
206  GfxFont.h Error.h config.h Params.h LTKOutputDev.h XOutputDev.h \
207  OutputDev.h
208 Object.o: ./Object.cc Object.h ../goo/gtypes.h ../goo/gmem.h \
209  ../goo/GString.h Array.h Dict.h Stream.h Error.h config.h XRef.h
210 OutputDev.o: ./OutputDev.cc Object.h ../goo/gtypes.h ../goo/gmem.h \
211  ../goo/GString.h Array.h Dict.h Stream.h GfxState.h OutputDev.h
212 Page.o: ./Page.cc Object.h ../goo/gtypes.h ../goo/gmem.h \
213  ../goo/GString.h Array.h Dict.h Stream.h XRef.h OutputDev.h Gfx.h \
214  Error.h config.h Params.h Page.h
215 Params.o: ./Params.cc ../goo/gtypes.h ../goo/gmem.h ../goo/GString.h \
216  ../goo/gfile.h Params.h
217 Parser.o: ./Parser.cc Object.h ../goo/gtypes.h ../goo/gmem.h \
218  ../goo/GString.h Array.h Dict.h Stream.h Parser.h Lexer.h Error.h \
219  config.h
220 PBMOutputDev.o: ./PBMOutputDev.cc ../goo/gmem.h ../goo/GString.h \
221  Object.h ../goo/gtypes.h Array.h Dict.h Stream.h GfxState.h GfxFont.h \
222  Error.h config.h Params.h PBMOutputDev.h XOutputDev.h OutputDev.h
223 PDFDoc.o: ./PDFDoc.cc ../goo/GString.h config.h Page.h Object.h \
224  ../goo/gtypes.h ../goo/gmem.h Array.h Dict.h Stream.h Catalog.h \
225  XRef.h Link.h OutputDev.h Params.h Error.h PDFDoc.h
226 PSOutputDev.o: ./PSOutputDev.cc ../goo/GString.h config.h Object.h \
227  ../goo/gtypes.h ../goo/gmem.h Array.h Dict.h Stream.h Error.h \
228  GfxState.h GfxFont.h Catalog.h Page.h PSOutputDev.h OutputDev.h
229 Stream.o: ./Stream.cc ../goo/gmem.h config.h Error.h Object.h \
230  ../goo/gtypes.h ../goo/GString.h Array.h Dict.h Stream.h \
231  Stream-CCITT.h
232 TextOutputDev.o: ./TextOutputDev.cc ../goo/GString.h ../goo/gmem.h \
233  config.h Error.h GfxState.h ../goo/gtypes.h GfxFont.h Object.h \
234  Array.h Dict.h Stream.h TextOutputDev.h OutputDev.h \
235  TextOutputFontInfo.h
236 XOutputDev.o: ./XOutputDev.cc ../goo/gmem.h ../goo/GString.h Object.h \
237  ../goo/gtypes.h Array.h Dict.h Stream.h GfxState.h GfxFont.h Error.h \
238  config.h Params.h TextOutputDev.h OutputDev.h XOutputDev.h \
239  XOutputFontInfo.h
240 XRef.o: ./XRef.cc ../goo/gmem.h Object.h ../goo/gtypes.h \
241  ../goo/GString.h Array.h Dict.h Stream.h Lexer.h Parser.h Error.h \
242  config.h XRef.h
243 xpdf.o: ./xpdf.cc ../goo/gtypes.h ../goo/GString.h ../goo/parseargs.h \
244  ../goo/gfile.h ../goo/gmem.h ../ltk/LTKAll.h ../ltk/LTKApp.h \
245  ../ltk/LTKWindow.h ../ltk/LTKMenu.h ../ltk/LTKWidget.h \
246  ../ltk/LTKCompoundWidget.h ../ltk/LTKBox.h ../ltk/LTKBorder.h \
247  ../ltk/LTKButtonDialog.h ../ltk/LTKButton.h ../ltk/LTKCanvas.h \
248  ../ltk/LTKDblBufCanvas.h ../ltk/LTKEmpty.h ../ltk/LTKFileReq.h \
249  ../ltk/LTKLabel.h ../ltk/LTKList.h ../ltk/LTKScrollbar.h \
250  ../ltk/LTKScrollingCanvas.h ../ltk/LTKTextIn.h ../ltk/LTKResources.h \
251  Object.h Array.h Dict.h Stream.h XRef.h Catalog.h Page.h Link.h \
252  PDFDoc.h XOutputDev.h config.h OutputDev.h LTKOutputDev.h \
253  PSOutputDev.h TextOutputDev.h Params.h Error.h xpdfIcon.xpm \
254  leftArrow.xbm dblLeftArrow.xbm rightArrow.xbm dblRightArrow.xbm \
255  zoomIn.xbm zoomOut.xbm find.xbm postscript.xbm about.xbm xpdf-ltk.h
256 pdftops.o: ./pdftops.cc ../goo/parseargs.h ../goo/gtypes.h \
257  ../goo/GString.h ../goo/gmem.h Object.h Array.h Dict.h Stream.h \
258  XRef.h Catalog.h Page.h PDFDoc.h Link.h PSOutputDev.h config.h \
259  OutputDev.h Params.h Error.h
260 pdftotext.o: ./pdftotext.cc ../goo/parseargs.h ../goo/gtypes.h \
261  ../goo/GString.h ../goo/gmem.h Object.h Array.h Dict.h Stream.h \
262  XRef.h Catalog.h Page.h PDFDoc.h Link.h TextOutputDev.h OutputDev.h \
263  Params.h Error.h config.h
264 pdfinfo.o: ./pdfinfo.cc ../goo/parseargs.h ../goo/gtypes.h \
265  ../goo/GString.h ../goo/gmem.h Object.h Array.h Dict.h Stream.h \
266  XRef.h Catalog.h Page.h PDFDoc.h Link.h Params.h Error.h config.h
267 pdftopbm.o: ./pdftopbm.cc ../goo/parseargs.h ../goo/gtypes.h \
268  ../goo/GString.h ../goo/gmem.h Object.h Array.h Dict.h Stream.h \
269  XRef.h Catalog.h Page.h PDFDoc.h Link.h PBMOutputDev.h config.h \
270  XOutputDev.h OutputDev.h Params.h Error.h
271 pdfimages.o: ./pdfimages.cc ../goo/parseargs.h ../goo/gtypes.h \
272  ../goo/GString.h ../goo/gmem.h Object.h Array.h Dict.h Stream.h \
273  XRef.h Catalog.h Page.h PDFDoc.h Link.h ImageOutputDev.h OutputDev.h \
274  Params.h Error.h config.h