1 #========================================================================
5 # Copyright 1996 Derek B. Noonburg
7 #========================================================================
12 GOOSRCDIR = $(srcdir)/../goo
14 LTKSRCDIR = $(srcdir)/../ltk
17 #CXXFLAGS = @CXXFLAGS@ @DEFS@ @OPTIONS@ -I$(GOOSRCDIR) -I$(LTKSRCDIR) -I$(srcdir) @X_CFLAGS@ @Xpm_CFLAGS@
18 CXXFLAGS = @CXXFLAGS@ @DEFS@ @OPTIONS@ -I$(GOOSRCDIR) `gnome-config --cflags gnomeui` -I$(srcdir) @X_CFLAGS@
19 XLIBS = @Xpm_LIBS@ @X_PRE_LIBS@ @X_LIBS@ -lX11 @X_EXTRA_LIBS@
26 LIBPREFIX = @LIBPREFIX@
29 #------------------------------------------------------------------------
34 $(CXX) $(CXXFLAGS) -c $<
36 #------------------------------------------------------------------------
40 $(srcdir)/Catalog.cc \
44 $(srcdir)/GfxFont.cc \
45 $(srcdir)/GfxState.cc \
46 $(srcdir)/ImageOutputDev.cc \
49 $(srcdir)/LTKOutputDev.cc \
51 $(srcdir)/OutputDev.cc \
55 $(srcdir)/PBMOutputDev.cc \
57 $(srcdir)/PSOutputDev.cc \
59 $(srcdir)/TextOutputDev.cc \
60 $(srcdir)/XOutputDev.cc \
63 $(srcdir)/pdftops.cc \
64 $(srcdir)/pdftotext.cc \
65 $(srcdir)/pdfinfo.cc \
66 $(srcdir)/pdftopbm.cc \
67 $(srcdir)/pdfimages.cc
69 #------------------------------------------------------------------------
73 all: xpdf$(EXE) pdftops$(EXE) pdftotext$(EXE) pdfinfo$(EXE) \
74 pdftopbm$(EXE) pdfimages$(EXE)
76 #------------------------------------------------------------------------
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
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 XOutputDev.o XRef.o gpdf.o
88 XPDF_LIBS = -L$(LTKLIBDIR) -lLTK -L$(GOOLIBDIR) -lGoo $(XLIBS) $(OTHERLIBS) -lm
90 GPDF_LIBS = -L$(GOOLIBDIR) $(OTHERLIBS) -lGoo `gnome-config --libs gnomeui` -lm
93 $(CXX) $(CXXFLAGS) -o gpdf $(GPDF_OBJS) $(GPDF_LIBS)
95 xpdf$(EXE): $(XPDF_OBJS)
96 $(CXX) $(CXXFLAGS) -o xpdf$(EXE) $(XPDF_OBJS) $(XPDF_LIBS)
101 $(LTKLIBDIR)/ltkbuild <xpdf.ltk >$@.new
104 #------------------------------------------------------------------------
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
111 pdftops$(EXE): $(PDFTOPS_OBJS)
112 $(CXX) $(CXXFLAGS) -o pdftops$(EXE) $(PDFTOPS_OBJS) $(PDFTOPS_LIBS)
113 $(STRIP) pdftops$(EXE)
115 #------------------------------------------------------------------------
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
122 pdftotext$(EXE): $(PDFTOTEXT_OBJS)
123 $(CXX) $(CXXFLAGS) -o pdftotext$(EXE) $(PDFTOTEXT_OBJS) \
125 $(STRIP) pdftotext$(EXE)
127 #------------------------------------------------------------------------
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
134 pdfinfo$(EXE): $(PDFINFO_OBJS)
135 $(CXX) $(CXXFLAGS) -o pdfinfo$(EXE) $(PDFINFO_OBJS) $(PDFINFO_LIBS)
136 $(STRIP) pdfinfo$(EXE)
138 #------------------------------------------------------------------------
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
146 pdftopbm$(EXE): $(PDFTOPBM_OBJS)
147 $(CXX) $(CXXFLAGS) -o pdftopbm$(EXE) $(PDFTOPBM_OBJS) $(PDFTOPBM_LIBS)
148 $(STRIP) pdftopbm$(EXE)
150 #------------------------------------------------------------------------
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
157 pdfimages$(EXE): $(PDFIMAGES_OBJS)
158 $(CXX) $(CXXFLAGS) -o pdfimages$(EXE) $(PDFIMAGES_OBJS) \
160 $(STRIP) pdfimages$(EXE)
162 #------------------------------------------------------------------------
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)
172 #------------------------------------------------------------------------
175 cp Makefile.in Makefile.in.bak
176 sed '/^#----- dependences -----/q' Makefile.in.bak >Makefile.in
177 $(CXX) $(CXXFLAGS) -MM $(CXX_SRC) >>Makefile.in
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 \
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 \
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 \
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 \
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 \
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 \
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 \
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