home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 110 / EnigmaAmiga110CD.iso / indispensabili / utility / apdf / xpdf-0.80 / buildsas / xpdf / smakefile < prev   
Makefile  |  1999-06-24  |  9KB  |  249 lines

  1.  
  2. #========================================================================
  3. #
  4. # Apdf Makefile
  5. #
  6. # Copyright 1999 Emmanuel Lesueur
  7. #
  8. #========================================================================
  9.  
  10. srcdir = //xpdf
  11.  
  12. GOOSRCDIR = //goo
  13. GOOLIBDIR = /goo
  14.  
  15. OTHERLIBS =
  16.  
  17. # note: do not add symbols to the executable, because the C++
  18. # compiler creates symbols with more than 100 characters, and
  19. # AmigaOS refuses to load an executable with such symbols.
  20. # If you really want symbols, you can use a tool that removes
  21. # those long symbols, but cpr seems to get confused by
  22. # executables with missing symbols...
  23. # Here, big symbols seem to come only from poly.cc.
  24. CFLAGS =
  25. CXXFLAGS =
  26.  
  27. CXX = sc
  28.  
  29. EXE = 
  30.  
  31. #------------------------------------------------------------------------
  32.  
  33. .cc.o:
  34.     $(CXX) $(CXXFLAGS) $<
  35.  
  36. .c.o:
  37.     $(CC) $(CFLAGS) $<
  38.  
  39. #------------------------------------------------------------------------
  40.  
  41. CXX_SRC = \
  42.     $(srcdir)/stub.cc \
  43.     $(srcdir)/mystdio.cc \
  44.     $(srcdir)/Array.cc \
  45.     $(srcdir)/Catalog.cc \
  46.     $(srcdir)/Dict.cc \
  47.     $(srcdir)/Error.cc \
  48.     $(srcdir)/Gfx.cc \
  49.     $(srcdir)/GfxFont.cc \
  50.     $(srcdir)/GfxState.cc \
  51.     $(srcdir)/ImageOutputDev.cc \
  52.     $(srcdir)/Lexer.cc \
  53.     $(srcdir)/Link.cc \
  54.     $(srcdir)/Object.cc \
  55.     $(srcdir)/OutputDev.cc \
  56.     $(srcdir)/Page.cc \
  57.     $(srcdir)/Parser.cc \
  58.     $(srcdir)/PBMOutputDev.cc \
  59.     $(srcdir)/PDFDoc.cc \
  60.     $(srcdir)/PSOutputDev.cc \
  61.     $(srcdir)/Stream.cc \
  62.     $(srcdir)/TextOutputDev.cc \
  63.     $(srcdir)/XRef.cc \
  64.     $(srcdir)/Apdf.c \
  65.     $(srcdir)/Apdfppc.cc \
  66.     $(srcdir)/Apdfcommon.cc \
  67.     $(srcdir)/AOutputDev.cc \
  68.     $(srcdir)/FontOutputDev.cc \
  69.     $(srcdir)/AGfx.cc \
  70.     $(srcdir)/poly.cc
  71.  
  72. #------------------------------------------------------------------------
  73.  
  74. apdf68k: Apdf
  75.  
  76. all: Apdf
  77.  
  78. #------------------------------------------------------------------------
  79.  
  80. APDF_OBJS = Array.o Catalog.o Dict.o Error.o Gfx.o GfxFont.o \
  81.     TextOutputDev.o AOutputDev.o XRef.o AGfx.o \
  82.     GfxState.o Lexer.o Link.o Object.o OutputDev.o mystdio.o \
  83.     Page.o Parser.o PDFDoc.o PSOutputDev.o Stream.o \
  84.     Apdfcommon.o Apdf.o ImageOutputDev.o poly.o stub.o \
  85.     FontOutputDev.o
  86. APDF_LIBS = lib /goo/goo.lib $(OTHERLIBS)
  87.  
  88. Apdf: $(APDF_OBJS)
  89.     $(CXX) $(CXXFLAGS) link to apdf $(APDF_OBJS) $(APDF_LIBS)
  90.  
  91.  
  92. stub.o: //xpdf/stub.cc //goo/gmem.h
  93.     sc code=near $<
  94.  
  95. #------------------------------------------------------------------------
  96.  
  97. clean:
  98.     delete $(APDF_OBJS) apdf *.lnk *.tmp *.bak
  99.  
  100. #------------------------------------------------------------------------
  101. # won't work with SAS/C...
  102. # make dependencies with gcc and then replace "../../" by "//" and
  103. # "xpdf/../goo" by "goo"
  104. depend:
  105.     copy Makefile Makefile.bak
  106.     sed '/^#----- dependences -----/q' Makefile.bak >Makefile
  107.     $(CXX) $(CXXFLAGS) -MM $(CXX_SRC) >>Makefile
  108.  
  109. #----- dependences -----
  110. mystdio.o: //xpdf/mystdio.cc //xpdf/mystdio.h \
  111.  //goo/gmem.h
  112. Array.o: //xpdf/Array.cc //goo/gmem.h \
  113.  //xpdf/Object.h //xpdf/mystdio.h //goo/gtypes.h \
  114.  //goo/GString.h //xpdf/Array.h //xpdf/Dict.h \
  115.  //xpdf/Stream.h
  116. Catalog.o: //xpdf/Catalog.cc //goo/gmem.h \
  117.  //xpdf/Object.h //xpdf/mystdio.h //goo/gtypes.h \
  118.  //goo/GString.h //xpdf/Array.h //xpdf/Dict.h \
  119.  //xpdf/Stream.h //xpdf/Page.h //xpdf/Error.h \
  120.  //xpdf/config.h //xpdf/Link.h //xpdf/Catalog.h
  121. Dict.o: //xpdf/Dict.cc //goo/gmem.h \
  122.  //xpdf/Object.h //xpdf/mystdio.h //goo/gtypes.h \
  123.  //goo/GString.h //xpdf/Array.h //xpdf/Dict.h \
  124.  //xpdf/Stream.h //xpdf/XRef.h
  125. Error.o: //xpdf/Error.cc //goo/gtypes.h \
  126.  //xpdf/Params.h //xpdf/Error.h //xpdf/config.h
  127. Gfx.o: //xpdf/Gfx.cc //goo/gmem.h //xpdf/Object.h \
  128.  //xpdf/mystdio.h //goo/gtypes.h \
  129.  //goo/GString.h //xpdf/Array.h //xpdf/Dict.h \
  130.  //xpdf/Stream.h //xpdf/Lexer.h //xpdf/Parser.h \
  131.  //xpdf/GfxFont.h //xpdf/GfxState.h //xpdf/OutputDev.h \
  132.  //xpdf/Params.h //xpdf/Error.h //xpdf/config.h \
  133.  //xpdf/Gfx.h
  134. GfxFont.o: //xpdf/GfxFont.cc //goo/GString.h \
  135.  //goo/gmem.h //goo/gfile.h \
  136.  //goo/gtypes.h //xpdf/config.h //xpdf/Object.h \
  137.  //xpdf/mystdio.h //xpdf/Array.h //xpdf/Dict.h \
  138.  //xpdf/Stream.h //xpdf/Error.h //xpdf/Params.h \
  139.  //xpdf/GfxFont.h //xpdf/FontInfo.h
  140. GfxState.o: //xpdf/GfxState.cc //goo/gmem.h \
  141.  //xpdf/Error.h //xpdf/config.h //xpdf/Object.h \
  142.  //xpdf/mystdio.h //goo/gtypes.h \
  143.  //goo/GString.h //xpdf/Array.h //xpdf/Dict.h \
  144.  //xpdf/Stream.h //xpdf/GfxState.h
  145. ImageOutputDev.o: //xpdf/ImageOutputDev.cc \
  146.  //goo/gmem.h //xpdf/config.h //xpdf/Error.h \
  147.  //xpdf/GfxState.h //goo/gtypes.h //xpdf/Object.h \
  148.  //xpdf/mystdio.h //goo/GString.h //xpdf/Array.h \
  149.  //xpdf/Dict.h //xpdf/Stream.h //xpdf/ImageOutputDev.h \
  150.  //xpdf/OutputDev.h
  151. Lexer.o: //xpdf/Lexer.cc //xpdf/Lexer.h //xpdf/Object.h \
  152.  //xpdf/mystdio.h //goo/gtypes.h \
  153.  //goo/gmem.h //goo/GString.h \
  154.  //xpdf/Array.h //xpdf/Dict.h //xpdf/Stream.h \
  155.  //xpdf/Error.h //xpdf/config.h
  156. Link.o: //xpdf/Link.cc //goo/gmem.h \
  157.  //goo/GString.h //xpdf/Error.h //xpdf/config.h \
  158.  //xpdf/Object.h //xpdf/mystdio.h //goo/gtypes.h \
  159.  //xpdf/Array.h //xpdf/Dict.h //xpdf/Stream.h \
  160.  //xpdf/Link.h
  161. Object.o: //xpdf/Object.cc //xpdf/Object.h \
  162.  //xpdf/mystdio.h //goo/gtypes.h \
  163.  //goo/gmem.h //goo/GString.h \
  164.  //xpdf/Array.h //xpdf/Dict.h //xpdf/Stream.h \
  165.  //xpdf/Error.h //xpdf/config.h //xpdf/XRef.h
  166. OutputDev.o: //xpdf/OutputDev.cc //xpdf/Object.h \
  167.  //xpdf/mystdio.h //goo/gtypes.h \
  168.  //goo/gmem.h //goo/GString.h \
  169.  //xpdf/Array.h //xpdf/Dict.h //xpdf/Stream.h \
  170.  //xpdf/GfxState.h //xpdf/OutputDev.h
  171. Page.o: //xpdf/Page.cc //xpdf/Object.h //xpdf/mystdio.h \
  172.  //goo/gtypes.h //goo/gmem.h \
  173.  //goo/GString.h //xpdf/Array.h //xpdf/Dict.h \
  174.  //xpdf/Stream.h //xpdf/XRef.h //xpdf/OutputDev.h \
  175.  //xpdf/Gfx.h //xpdf/Error.h //xpdf/config.h \
  176.  //xpdf/Params.h //xpdf/Page.h
  177. Parser.o: //xpdf/Parser.cc //xpdf/Object.h \
  178.  //xpdf/mystdio.h //goo/gtypes.h \
  179.  //goo/gmem.h //goo/GString.h \
  180.  //xpdf/Array.h //xpdf/Dict.h //xpdf/Stream.h \
  181.  //xpdf/Parser.h //xpdf/Lexer.h //xpdf/Error.h \
  182.  //xpdf/config.h
  183. PBMOutputDev.o: //xpdf/PBMOutputDev.cc //goo/gmem.h \
  184.  //goo/GString.h //xpdf/Object.h //xpdf/mystdio.h \
  185.  //goo/gtypes.h //xpdf/Array.h //xpdf/Dict.h \
  186.  //xpdf/Stream.h //xpdf/GfxState.h //xpdf/GfxFont.h \
  187.  //xpdf/Error.h //xpdf/config.h //xpdf/Params.h \
  188.  //xpdf/PBMOutputDev.h //xpdf/XOutputDev.h \
  189.  //xpdf/OutputDev.h
  190. PDFDoc.o: //xpdf/PDFDoc.cc //goo/GString.h \
  191.  //xpdf/config.h //xpdf/Page.h //xpdf/Object.h \
  192.  //xpdf/mystdio.h //goo/gtypes.h \
  193.  //goo/gmem.h //xpdf/Array.h //xpdf/Dict.h \
  194.  //xpdf/Stream.h //xpdf/Catalog.h //xpdf/XRef.h \
  195.  //xpdf/Link.h //xpdf/OutputDev.h //xpdf/Params.h \
  196.  //xpdf/Error.h //xpdf/PDFDoc.h
  197. PSOutputDev.o: //xpdf/PSOutputDev.cc //goo/GString.h \
  198.  //xpdf/config.h //xpdf/Object.h //xpdf/mystdio.h \
  199.  //goo/gtypes.h //goo/gmem.h \
  200.  //xpdf/Array.h //xpdf/Dict.h //xpdf/Stream.h \
  201.  //xpdf/Error.h //xpdf/GfxState.h //xpdf/GfxFont.h \
  202.  //xpdf/Catalog.h //xpdf/Page.h //xpdf/PSOutputDev.h \
  203.  //xpdf/OutputDev.h
  204. Stream.o: //xpdf/Stream.cc //goo/gmem.h \
  205.  //xpdf/config.h //xpdf/Error.h //xpdf/Object.h \
  206.  //xpdf/mystdio.h //goo/gtypes.h \
  207.  //goo/GString.h //xpdf/Array.h //xpdf/Dict.h \
  208.  //xpdf/Stream.h //xpdf/Stream-CCITT.h
  209. TextOutputDev.o: //xpdf/TextOutputDev.cc \
  210.  //goo/GString.h //goo/gmem.h \
  211.  //xpdf/config.h //xpdf/Error.h //xpdf/GfxState.h \
  212.  //goo/gtypes.h //xpdf/GfxFont.h //xpdf/Object.h \
  213.  //xpdf/mystdio.h //xpdf/Array.h //xpdf/Dict.h \
  214.  //xpdf/Stream.h //xpdf/TextOutputDev.h //xpdf/OutputDev.h \
  215.  //xpdf/TextOutputFontInfo.h
  216. XRef.o: //xpdf/XRef.cc //goo/gmem.h \
  217.  //xpdf/Object.h //xpdf/mystdio.h //goo/gtypes.h \
  218.  //goo/GString.h //xpdf/Array.h //xpdf/Dict.h \
  219.  //xpdf/Stream.h //xpdf/Lexer.h //xpdf/Parser.h \
  220.  //xpdf/Error.h //xpdf/config.h //xpdf/XRef.h
  221. Apdf.o: //xpdf/Apdf.c //xpdf/config.h //xpdf/AComm.h
  222. Apdfcommon.o: //xpdf/Apdfcommon.cc //goo/parseargs.h \
  223.  //goo/gtypes.h //goo/GString.h \
  224.  //goo/gmem.h //xpdf/Object.h //xpdf/mystdio.h \
  225.  //xpdf/Array.h //xpdf/Dict.h //xpdf/Stream.h \
  226.  //xpdf/XRef.h //xpdf/Catalog.h //xpdf/Page.h \
  227.  //xpdf/Link.h //xpdf/PDFDoc.h //xpdf/AOutputDev.h \
  228.  //xpdf/config.h //xpdf/OutputDev.h //xpdf/AGfx.h \
  229.  //xpdf/poly.h //xpdf/TextOutputDev.h //xpdf/PSOutputDev.h \
  230.  //xpdf/ImageOutputDev.h //xpdf/FontOutputDev.h \
  231.  //xpdf/GfxFont.h //xpdf/Error.h //xpdf/AComm.h
  232. AOutputDev.o: //xpdf/AOutputDev.cc //goo/gmem.h \
  233.  //goo/GString.h //xpdf/Object.h //xpdf/mystdio.h \
  234.  //goo/gtypes.h //xpdf/Array.h //xpdf/Dict.h \
  235.  //xpdf/Stream.h //xpdf/GfxState.h //xpdf/GfxFont.h \
  236.  //xpdf/Error.h //xpdf/config.h //xpdf/TextOutputDev.h \
  237.  //xpdf/OutputDev.h //xpdf/AOutputDev.h //xpdf/AGfx.h \
  238.  //xpdf/poly.h //xpdf/FontOutputDev.h
  239. FontOutputDev.o: //xpdf/FontOutputDev.cc \
  240.  //goo/GString.h //goo/gmem.h \
  241.  //xpdf/config.h //xpdf/Error.h //xpdf/GfxState.h \
  242.  //goo/gtypes.h //xpdf/GfxFont.h //xpdf/Object.h \
  243.  //xpdf/mystdio.h //xpdf/Array.h //xpdf/Dict.h \
  244.  //xpdf/Stream.h //xpdf/FontOutputDev.h //xpdf/OutputDev.h \
  245.  //xpdf/XOutputFontInfo.h
  246. AGfx.o: //xpdf/AGfx.cc //goo/gmem.h //xpdf/AGfx.h \
  247.  //xpdf/poly.h
  248. poly.o: //xpdf/poly.cc //xpdf/poly.h
  249.