home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 110 / EnigmaAmiga110CD.iso / indispensabili / utility / apdf / xpdf-0.80 / xpdf / makefile.in < prev    next >
Makefile  |  1999-04-27  |  12KB  |  285 lines

  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.  
  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: apdf$(EXE) pdftops$(EXE) pdftotext$(EXE) pdfinfo$(EXE) \
  72.     pdftopbm$(EXE) pdfimages$(EXE)
  73.  
  74. #------------------------------------------------------------------------
  75.  
  76. XPDF_OBJS = Array.o Catalog.o Dict.o Error.o Gfx.o GfxFont.o \
  77.     GfxState.o Lexer.o Link.o LTKOutputDev.o Object.o OutputDev.o \
  78.     Page.o Params.o Parser.o PDFDoc.o PSOutputDev.o Stream.o \
  79.     TextOutputDev.o XOutputDev.o XRef.o xpdf.o
  80. XPDF_LIBS = -L$(LTKLIBDIR) -lLTK -L$(GOOLIBDIR) -lGoo $(XLIBS) $(OTHERLIBS) -lm
  81.  
  82. xpdf$(EXE): $(XPDF_OBJS)
  83.     $(CXX) $(CXXFLAGS) -o xpdf$(EXE) $(XPDF_OBJS) $(XPDF_LIBS)
  84.     $(STRIP) xpdf$(EXE)
  85.  
  86. xpdf-ltk.h: xpdf.ltk
  87.     rm -f $@
  88.     $(LTKLIBDIR)/ltkbuild <xpdf.ltk >$@.new
  89.     mv $@.new $@
  90.  
  91. #------------------------------------------------------------------------
  92.  
  93. APDF_OBJS = Array.o Catalog.o Dict.o Error.o Gfx.o GfxFont.o \
  94.     GfxState.o Lexer.o Link.o Object.o OutputDev.o \
  95.     Page.o Params.o Parser.o PDFDoc.o PSOutputDev.o Stream.o \
  96.     TextOutputDev.o AOutputDev.o XRef.o apdf.o
  97. APDF_LIBS = -L$(GOOLIBDIR) -lGoo $(XLIBS) $(OTHERLIBS) -lm
  98.  
  99. Apdf$(EXE): $(APDF_OBJS)
  100.     $(CXX) $(CXXFLAGS) -o apdf$(EXE) $(APDF_OBJS) $(APDF_LIBS)
  101.     $(STRIP) apdf$(EXE)
  102.  
  103. #------------------------------------------------------------------------
  104.  
  105. PDFTOPS_OBJS = Array.o Catalog.o Dict.o Error.o Gfx.o GfxFont.o \
  106.     GfxState.o Lexer.o Link.o Object.o OutputDev.o Page.o Params.o \
  107.     Parser.o PDFDoc.o PSOutputDev.o Stream.o XRef.o pdftops.o
  108. PDFTOPS_LIBS = -L$(GOOLIBDIR) -lGoo $(OTHERLIBS) -lm
  109.  
  110. pdftops$(EXE): $(PDFTOPS_OBJS)
  111.     $(CXX) $(CXXFLAGS) -o pdftops$(EXE) $(PDFTOPS_OBJS) $(PDFTOPS_LIBS)
  112.     $(STRIP) pdftops$(EXE)
  113.  
  114. #------------------------------------------------------------------------
  115.  
  116. PDFTOTEXT_OBJS = Array.o Catalog.o Dict.o Error.o Gfx.o GfxFont.o \
  117.     GfxState.o Lexer.o Link.o Object.o OutputDev.o Page.o Params.o \
  118.     Parser.o PDFDoc.o TextOutputDev.o Stream.o XRef.o pdftotext.o
  119. PDFTOTEXT_LIBS = -L$(GOOLIBDIR) -lGoo $(OTHERLIBS) -lm
  120.  
  121. pdftotext$(EXE): $(PDFTOTEXT_OBJS)
  122.     $(CXX) $(CXXFLAGS) -o pdftotext$(EXE) $(PDFTOTEXT_OBJS) \
  123.         $(PDFTOTEXT_LIBS)
  124.     $(STRIP) pdftotext$(EXE)
  125.  
  126. #------------------------------------------------------------------------
  127.  
  128. PDFINFO_OBJS = Array.o Catalog.o Dict.o Error.o Gfx.o GfxFont.o \
  129.     GfxState.o Lexer.o Link.o Object.o OutputDev.o Page.o \
  130.     Params.o Parser.o PDFDoc.o Stream.o XRef.o pdfinfo.o
  131. PDFINFO_LIBS = -L$(GOOLIBDIR) -lGoo $(OTHERLIBS) -lm
  132.  
  133. pdfinfo$(EXE): $(PDFINFO_OBJS)
  134.     $(CXX) $(CXXFLAGS) -o pdfinfo$(EXE) $(PDFINFO_OBJS) $(PDFINFO_LIBS)
  135.     $(STRIP) pdfinfo$(EXE)
  136.  
  137. #------------------------------------------------------------------------
  138.  
  139. PDFTOPBM_OBJS = Array.o Catalog.o Dict.o Error.o Gfx.o GfxFont.o \
  140.     GfxState.o Lexer.o Link.o Object.o OutputDev.o PBMOutputDev.o \
  141.     Page.o Params.o Parser.o PDFDoc.o Stream.o TextOutputDev.o \
  142.     XOutputDev.o XRef.o pdftopbm.o
  143. PDFTOPBM_LIBS = -L$(GOOLIBDIR) -lGoo $(XLIBS) $(OTHERLIBS) -lm
  144.  
  145. pdftopbm$(EXE): $(PDFTOPBM_OBJS)
  146.     $(CXX) $(CXXFLAGS) -o pdftopbm$(EXE) $(PDFTOPBM_OBJS) $(PDFTOPBM_LIBS)
  147.     $(STRIP) pdftopbm$(EXE)
  148.  
  149. #------------------------------------------------------------------------
  150.  
  151. PDFIMAGES_OBJS = Array.o Catalog.o Dict.o Error.o Gfx.o GfxFont.o \
  152.     GfxState.o ImageOutputDev.o Lexer.o Link.o Object.o OutputDev.o \
  153.     Page.o Params.o Parser.o PDFDoc.o Stream.o XRef.o pdfimages.o
  154. PDFIMAGES_LIBS = -L$(GOOLIBDIR) -lGoo $(OTHERLIBS) -lm
  155.  
  156. pdfimages$(EXE): $(PDFIMAGES_OBJS)
  157.     $(CXX) $(CXXFLAGS) -o pdfimages$(EXE) $(PDFIMAGES_OBJS) \
  158.         $(PDFIMAGES_LIBS)
  159.     $(STRIP) pdfimages$(EXE)
  160.  
  161. #------------------------------------------------------------------------
  162.  
  163. clean:
  164.     rm -f $(XPDF_OBJS) xpdf-ltk.h.new xpdf$(EXE)
  165.     rm -f $(APDF_OBJS) apdf$(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
  275. AOutputDev.o: ./AOutputDev.cc ../goo/gmem.h ../goo/GString.h Object.h \
  276.  ../goo/gtypes.h Array.h Dict.h Stream.h GfxState.h GfxFont.h Error.h \
  277.  config.h Params.h TextOutputDev.h OutputDev.h AOutputDev.h \
  278.  XOutputFontInfo.h
  279. apdf.o: ./apdf.cc ../goo/gtypes.h ../goo/GString.h ../goo/parseargs.h \
  280.  ../goo/gfile.h ../goo/gmem.h \
  281.  Object.h Array.h Dict.h Stream.h XRef.h Catalog.h Page.h Link.h \
  282.  PDFDoc.h AOutputDev.h config.h OutputDev.h \
  283.  PSOutputDev.h TextOutputDev.h Params.h Error.h
  284.  
  285.