home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / gdb-4.14-src.lha / gdb-4.14 / bfd / doc / Makefile.in < prev    next >
Encoding:
Makefile  |  1995-03-09  |  10.0 KB  |  321 lines

  1. #
  2. # Makefile
  3. #   Copyright (C) 1990, 1991, 1992, 1993 Free Software Foundation
  4. #
  5. # This file is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program; if not, write to the Free Software
  15. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  16. #
  17.  
  18. srcdir = .
  19.  
  20. prefix = /usr/local
  21.  
  22. exec_prefix = $(prefix)
  23. bindir = $(exec_prefix)/bin
  24. libdir = $(exec_prefix)/lib
  25.  
  26. datadir = $(prefix)/lib
  27. mandir = $(prefix)/man
  28. man1dir = $(mandir)/man1
  29. man2dir = $(mandir)/man2
  30. man3dir = $(mandir)/man3
  31. man4dir = $(mandir)/man4
  32. man5dir = $(mandir)/man5
  33. man6dir = $(mandir)/man6
  34. man7dir = $(mandir)/man7
  35. man8dir = $(mandir)/man8
  36. man9dir = $(mandir)/man9
  37. infodir = $(prefix)/info
  38. includedir = $(prefix)/include
  39. docdir = $(datadir)/doc
  40.  
  41. MKDOC=./chew
  42. SHELL = /bin/sh
  43.  
  44. INSTALL = install -c
  45. INSTALL_PROGRAM = $(INSTALL)
  46. INSTALL_DATA = $(INSTALL)
  47.  
  48. AR = ar
  49. AR_FLAGS = qv
  50. BISON = bison
  51. MAKEINFO = makeinfo
  52. TEXI2DVI = texi2dvi
  53. RANLIB = ranlib
  54. CFLAGS = -g
  55.  
  56. CC_FOR_BUILD = $(CC)
  57.  
  58. #### Host, target, and site specific Makefile fragments come in here.
  59. ###
  60.  
  61. .c.o:
  62.     $(CC) -c -I.. -I$(srcdir)/.. -I$(srcdir)/../../include $(H_CFLAGS) $(CFLAGS) $<
  63.  
  64. # main GDB source directory
  65.  
  66. DOCFILES = aoutx.texi  archive.texi archures.texi \
  67.     bfd.texi  cache.texi coffcode.texi \
  68.     core.texi elf.texi elfcode.texi  amiga.texi amigalink.texi format.texi  libbfd.texi  \
  69.     opncls.texi  reloc.texi  section.texi  \
  70.     syms.texi  targets.texi init.texi hash.texi linker.texi
  71.  
  72. PROTOS = archive.p archures.p bfd.p \
  73.      core.p format.p \
  74.     libbfd.p opncls.p reloc.p \
  75.     section.p syms.p targets.p  \
  76.     format.p  core.p init.p
  77.  
  78. IPROTOS = cache.ip libbfd.ip reloc.ip init.ip archures.ip coffcode.ip
  79.  
  80. # SRCDOC, SRCPROT, SRCIPROT only used to sidestep Sun Make bug in interaction 
  81. # between VPATH and suffix rules.  If you use GNU Make, perhaps other Makes,
  82. # you don't need these three:
  83. SRCDOC = $(srcdir)/../aoutx.h  $(srcdir)/../archive.c \
  84.     $(srcdir)/../archures.c $(srcdir)/../bfd.c \
  85.     $(srcdir)/../cache.c $(srcdir)/../coffcode.h \
  86.     $(srcdir)/../core.c $(srcdir)/../elf.c \
  87.     $(srcdir)/../elfcode.h  $(srcdir)/../format.c \
  88.     $(srcdir)/../amigados.c $(srcdir)/../amigadoslink.c \
  89.     $(srcdir)/../libbfd.c $(srcdir)/../opncls.c \
  90.     $(srcdir)/../reloc.c  $(srcdir)/../section.c \
  91.     $(srcdir)/../syms.c  $(srcdir)/../targets.c \
  92.     $(srcdir)/../hash.c $(srcdir)/../linker.c
  93.  
  94. SRCPROT = $(srcdir)/../archive.c $(srcdir)/../archures.c \
  95.     $(srcdir)/../bfd.c $(srcdir)/../coffcode.h $(srcdir)/../core.c \
  96.     $(srcdir)/../format.c $(srcdir)/../libbfd.c \
  97.     $(srcdir)/../opncls.c $(srcdir)/../reloc.c \
  98.     $(srcdir)/../section.c $(srcdir)/../syms.c \
  99.     $(srcdir)/../targets.c $(srcdir)/../init.c
  100.  
  101. SRCIPROT = $(srcdir)/../cache.c $(srcdir)/../libbfd.c \
  102.     $(srcdir)/../reloc.c $(srcdir)/../cpu-h8300.c \
  103.     $(srcdir)/../cpu-i960.c $(srcdir)/../archures.c \
  104.     $(srcdir)/../init.c
  105.  
  106. STAGESTUFF = $(DOCFILES) *.info*
  107.  
  108. TEXIDIR = $(srcdir)/../../texinfo/fsf
  109.  
  110. all install:
  111.  
  112. info: bfd.info
  113.  
  114. dvi: bfd.dvi
  115.  
  116. install-info: info
  117.     for i in *.info* ; do \
  118.         $(INSTALL_DATA) $$i $(infodir)/$$i ; \
  119.     done
  120.  
  121. docs: $(MKDOC) protos bfd.info bfd.dvi bfd.ps
  122.  
  123. $(MKDOC): chew.o
  124.     $(CC_FOR_BUILD) -o $(MKDOC) chew.o $(LOADLIBES) $(LDFLAGS)
  125.  
  126. chew.o: chew.c
  127.     $(CC_FOR_BUILD) -c -I.. -I$(srcdir)/.. -I$(srcdir)/../../include $(H_CFLAGS) $(CFLAGS) $(srcdir)/chew.c
  128.  
  129. protos: libbfd.h libcoff.h bfd.h
  130.  
  131.  
  132. # We can't replace these rules with an implicit rule, because
  133. # makes without VPATH support couldn't find the .h files in `..'.
  134.  
  135. aoutx.texi: $(MKDOC) $(srcdir)/../aoutx.h $(srcdir)/doc.str
  136.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../aoutx.h >aoutx.texi
  137.  
  138. amiga.texi: $(MKDOC) $(srcdir)/../amigados.c $(srcdir)/doc.str
  139.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../amigados.c >amiga.texi
  140.  
  141. amigalink.texi: $(MKDOC) $(srcdir)/../amigadoslink.c $(srcdir)/doc.str
  142.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../amigadoslink.c >amigalink.texi
  143.  
  144. archive.texi: $(MKDOC) $(srcdir)/../archive.c $(srcdir)/doc.str
  145.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../archive.c >archive.texi 
  146.  
  147. archures.texi: $(MKDOC) $(srcdir)/../archures.c $(srcdir)/doc.str
  148.     $(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../archures.c >archures.texi 
  149.  
  150. bfd.texi: $(MKDOC) $(srcdir)/../bfd.c $(srcdir)/doc.str
  151.     $(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfd.c >bfd.texi
  152.  
  153. cache.texi: $(MKDOC) $(srcdir)/../cache.c $(srcdir)/doc.str
  154.     $(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../cache.c >cache.texi
  155.  
  156. coffcode.texi:    $(MKDOC) $(srcdir)/../coffcode.h $(srcdir)/doc.str
  157.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../coffcode.h >coffcode.texi
  158.  
  159. core.texi: $(MKDOC) $(srcdir)/../core.c $(srcdir)/doc.str
  160.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../core.c >core.texi
  161.  
  162. elf.texi: $(MKDOC) $(srcdir)/../elf.c $(srcdir)/doc.str
  163.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../elf.c >elf.texi
  164.  
  165. elfcode.texi: $(MKDOC) $(srcdir)/../elfcode.h $(srcdir)/doc.str
  166.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../elfcode.h >elfcode.texi
  167.  
  168. format.texi: $(MKDOC) $(srcdir)/../format.c $(srcdir)/doc.str
  169.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../format.c >format.texi
  170.  
  171. libbfd.texi: $(MKDOC) $(srcdir)/../libbfd.c $(srcdir)/doc.str
  172.     $(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../libbfd.c >libbfd.texi 
  173.  
  174. opncls.texi: $(MKDOC) $(srcdir)/../opncls.c $(srcdir)/doc.str
  175.     $(MKDOC) -f $(srcdir)/doc.str  <$(srcdir)/../opncls.c >opncls.texi
  176.  
  177. reloc.texi : $(MKDOC) $(srcdir)/../reloc.c
  178.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../reloc.c >reloc.texi 
  179.  
  180. section.texi: $(MKDOC) $(srcdir)/../section.c $(srcdir)/doc.str
  181.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../section.c >section.texi 
  182.  
  183. syms.texi : $(MKDOC) $(srcdir)/../syms.c
  184.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../syms.c >syms.texi
  185.  
  186. targets.texi: $(MKDOC) $(srcdir)/../targets.c $(srcdir)/doc.str
  187.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../targets.c >targets.texi
  188.  
  189. init.texi: $(MKDOC) $(srcdir)/../init.c $(srcdir)/doc.str
  190.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../init.c >init.texi
  191.  
  192. hash.texi: $(MKDOC) $(srcdir)/../hash.c $(srcdir)/doc.str
  193.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../hash.c >hash.texi
  194.  
  195. linker.texi: $(MKDOC) $(srcdir)/../linker.c $(srcdir)/doc.str
  196.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../linker.c >linker.texi
  197.  
  198. libbfd.h: $(srcdir)/../libbfd-in.h    \
  199.     $(srcdir)/../init.c        \
  200.     $(srcdir)/../libbfd.c        \
  201.     $(srcdir)/../cache.c        \
  202.     $(srcdir)/../reloc.c        \
  203.     $(srcdir)/../cpu-h8300.c    \
  204.     $(srcdir)/../cpu-i960.c        \
  205.     $(srcdir)/../archures.c        \
  206.     $(srcdir)/../elfcode.h        \
  207.     $(MKDOC)
  208.     cat $(srcdir)/../libbfd-in.h >libbfd.h 
  209.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../init.c >>libbfd.h
  210.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../libbfd.c >>libbfd.h
  211.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../cache.c >>libbfd.h
  212.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../reloc.c >>libbfd.h
  213.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../cpu-h8300.c >>libbfd.h
  214.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../cpu-i960.c >>libbfd.h
  215.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../archures.c >>libbfd.h
  216.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../elf.c >>libbfd.h
  217.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../elfcode.h >>libbfd.h
  218.  
  219. libcoff.h: $(srcdir)/../libcoff-in.h    \
  220.     $(srcdir)/../coffcode.h \
  221.     $(MKDOC)
  222.     cat $(srcdir)/../libcoff-in.h >libcoff.h
  223.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../coffcode.h >>libcoff.h
  224.  
  225. bfd.h: $(srcdir)/../bfd-in.h         \
  226.     $(srcdir)/../init.c         \
  227.     $(srcdir)/../opncls.c         \
  228.     $(srcdir)/../libbfd.c         \
  229.     $(srcdir)/../section.c         \
  230.     $(srcdir)/../archures.c        \
  231.     $(srcdir)/../reloc.c        \
  232.     $(srcdir)/../syms.c        \
  233.     $(srcdir)/../bfd.c        \
  234.     $(srcdir)/../archive.c        \
  235.     $(srcdir)/../core.c        \
  236.     $(srcdir)/../targets.c        \
  237.     $(srcdir)/../format.c        \
  238.     $(MKDOC)
  239.     cat $(srcdir)/../bfd-in.h >bfd.h
  240.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../init.c >>bfd.h
  241.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../opncls.c >>bfd.h
  242.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../libbfd.c >>bfd.h
  243.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../section.c >>bfd.h
  244.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../archures.c >>bfd.h
  245.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../reloc.c >>bfd.h
  246.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../syms.c >>bfd.h
  247.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../bfd.c >>bfd.h
  248.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../archive.c >>bfd.h
  249.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../core.c >>bfd.h
  250.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../targets.c >>bfd.h
  251.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../format.c >>bfd.h    
  252.     echo "#endif" >>bfd.h
  253.  
  254.  
  255. clean-info: clean
  256.  
  257. mostlyclean:
  258.     rm -rf *.log *.ps *~* *.dvi *# $(MKDOC) *.o
  259.  
  260. clean: mostlyclean
  261.     rm -rf $(STAGESTUFF)
  262.     rm -f *.p *.ip  bfd.?? bfd.??? bfd.h libbfd.h libcoff.h texput.log 
  263.  
  264. distclean: clean
  265.     rm -f Makefile config.status
  266.  
  267. realclean: clean
  268.     rm -f Makefile config.status
  269.  
  270. bfd.info: $(DOCFILES) bfdsumm.texi bfd.texinfo
  271.     $(MAKEINFO) -I$(srcdir) -o bfd.info $(srcdir)/bfd.texinfo
  272.  
  273. bfd.guide: $(DOCFILES) bfdsumm.texi bfd.texinfo
  274.     $(MAKEINFO) --amiga -I$(srcdir) -o bfd.guide $(srcdir)/bfd.texinfo
  275.  
  276. bfd.dvi: $(DOCFILES) bfdsumm.texi bfd.texinfo
  277.     $(TEXI2DVI) $(srcdir)/bfd.texinfo
  278.  
  279. bfd.ps: bfd.dvi
  280.     dvips bfd -o
  281.  
  282. quickdoc: $(DOCFILES) bfdsumm.texi bfd.texinfo
  283.     TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo
  284.  
  285. stage1: force
  286.     - mkdir stage1
  287.     - mv -f $(STAGESTUFF) stage1
  288.  
  289. stage2: force
  290.     - mkdir stage2
  291.     - mv -f $(STAGESTUFF) stage2
  292.  
  293. stage3: force
  294.     - mkdir stage3
  295.     - mv -f $(STAGESTUFF) stage3
  296.  
  297. against=stage2
  298.  
  299. comparison: force
  300.     for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i || exit 1 ; done
  301.  
  302. de-stage1: force
  303.     - (cd stage1 ; mv -f $(STAGESTUFF) ..)
  304.     - rmdir stage1
  305.  
  306. de-stage2: force
  307.     - (cd stage2 ; mv -f $(STAGESTUFF) ..)
  308.     - rmdir stage2
  309.  
  310. de-stage3: force
  311.     - (cd stage3 ; mv -f $(STAGESTUFF) ..)
  312.     - rmdir stage3
  313.  
  314. force:
  315.  
  316. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  317.     $(SHELL) ./config.status
  318.  
  319.