home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / gnu / djgpp / src / binutils.2 / bfd / doc / makefile.in < prev    next >
Encoding:
Makefile  |  1993-05-30  |  9.4 KB  |  308 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) $(CFLAGS) -c $(H_CFLAGS) -I.. -I$(srcdir)/.. -I$(srcdir)/../../include $<
  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  format.texi  libbfd.texi  \
  69.     opncls.texi  reloc.texi  section.texi  \
  70.     syms.texi  targets.texi init.texi ctor.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 ctor.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)/../format.c \
  87.     $(srcdir)/../libbfd.c $(srcdir)/../opncls.c \
  88.     $(srcdir)/../reloc.c  $(srcdir)/../section.c \
  89.     $(srcdir)/../syms.c  $(srcdir)/../targets.c \
  90.     $(srcdir)/../init.c $(srcdir)/../seclet.c
  91.  
  92. SRCPROT = $(srcdir)/../archive.c $(srcdir)/../archures.c \
  93.     $(srcdir)/../bfd.c $(srcdir)/../coffcode.h $(srcdir)/../core.c \
  94.     $(srcdir)/../format.c $(srcdir)/../libbfd.c \
  95.     $(srcdir)/../opncls.c $(srcdir)/../reloc.c \
  96.     $(srcdir)/../section.c $(srcdir)/../syms.c \
  97.     $(srcdir)/../targets.c $(srcdir)/../init.c \
  98.     $(srcdir)/../seclet.c    
  99.  
  100. SRCIPROT = $(srcdir)/../cache.c $(srcdir)/../libbfd.c \
  101.     $(srcdir)/../reloc.c $(srcdir)/../cpu-h8300.c \
  102.     $(srcdir)/../cpu-i960.c $(srcdir)/../archures.c \
  103.     $(srcdir)/../init.c $(srcdir)/../ctor.c \
  104.     $(srcdir)/../seclet.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.     -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
  118.     if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
  119.     -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
  120.     for i in *.info* ; do \
  121.         $(INSTALL_DATA) $$i $(infodir)/$$i ; \
  122.     done
  123.  
  124. docs: $(MKDOC) protos bfd.info bfd.dvi bfd.ps
  125.  
  126. $(MKDOC): chew.o
  127.     $(CC_FOR_BUILD) $(CFLAGS) -o $(MKDOC) $(H_CFLAGS) chew.o $(LOADLIBES)
  128.  
  129. chew.o: chew.c
  130.     $(CC_FOR_BUILD) $(CFLAGS) -c $(H_CFLAGS) -I.. -I$(srcdir)/.. -I$(srcdir)/../../include $(srcdir)/chew.c
  131.  
  132. protos: libbfd.h libcoff.h bfd.h
  133.  
  134. aoutx.texi: $(MKDOC) $(srcdir)/../aoutx.h $(srcdir)/doc.str
  135.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../aoutx.h >aoutx.texi
  136.  
  137. archive.texi: $(MKDOC) $(srcdir)/../archive.c $(srcdir)/doc.str
  138.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../archive.c >archive.texi 
  139.  
  140. archures.texi:  $(srcdir)/../archures.c $(srcdir)/doc.str
  141.     $(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../archures.c >archures.texi 
  142.  
  143. bfd.texi: $(MKDOC) $(srcdir)/../bfd.c $(srcdir)/doc.str
  144.     $(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfd.c >bfd.texi
  145.  
  146. cache.texi: $(MKDOC) $(srcdir)/../cache.c $(srcdir)/doc.str
  147.     $(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../cache.c >cache.texi
  148.  
  149. coffcode.texi:    $(MKDOC) $(srcdir)/../coffcode.h $(srcdir)/doc.str
  150.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../coffcode.h >coffcode.texi
  151.  
  152. core.texi: $(MKDOC) $(srcdir)/../core.c $(srcdir)/doc.str
  153.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../core.c >core.texi
  154.  
  155. format.texi: $(MKDOC) $(srcdir)/../format.c $(srcdir)/doc.str
  156.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../format.c >format.texi
  157.  
  158. libbfd.texi: $(MKDOC) $(srcdir)/../libbfd.c $(srcdir)/doc.str
  159.     $(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../libbfd.c >libbfd.texi 
  160.  
  161. opncls.texi: $(MKDOC) $(srcdir)/../opncls.c $(srcdir)/doc.str
  162.     $(MKDOC) -f $(srcdir)/doc.str  <$(srcdir)/../opncls.c >opncls.texi
  163.  
  164. reloc.texi : $(MKDOC) $(srcdir)/../reloc.c
  165.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../reloc.c >reloc.texi 
  166.  
  167. section.texi: $(MKDOC) $(srcdir)/../section.c $(srcdir)/doc.str
  168.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../section.c >section.texi 
  169.  
  170. syms.texi : $(MKDOC) $(srcdir)/../syms.c
  171.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../syms.c >syms.texi
  172.  
  173. targets.texi: $(MKDOC) $(srcdir)/../targets.c $(srcdir)/doc.str
  174.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../targets.c >targets.texi
  175.  
  176. init.texi: $(MKDOC) $(srcdir)/../init.c $(srcdir)/doc.str
  177.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../init.c >init.texi
  178.  
  179. ctor.texi: $(MKDOC) $(srcdir)/../ctor.c $(srcdir)/doc.str
  180.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../ctor.c >ctor.texi
  181.  
  182.  
  183. libbfd.h: $(srcdir)/../libbfd-in.h    \
  184.     $(srcdir)/../init.c        \
  185.     $(srcdir)/../libbfd.c        \
  186.     $(srcdir)/../cache.c        \
  187.     $(srcdir)/../ctor.c        \
  188.     $(srcdir)/../reloc.c        \
  189.     $(srcdir)/../seclet.c        \
  190.     $(srcdir)/../cpu-h8300.c    \
  191.     $(srcdir)/../cpu-i960.c        \
  192.     $(srcdir)/../archures.c        \
  193.     $(srcdir)/../elf32.c        \
  194.     $(MKDOC)
  195.     cat $(srcdir)/../libbfd-in.h >libbfd.h 
  196.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../init.c >>libbfd.h
  197.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../libbfd.c >>libbfd.h
  198.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../cache.c >>libbfd.h
  199.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../ctor.c >>libbfd.h
  200.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../reloc.c >>libbfd.h
  201.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../seclet.c >>libbfd.h
  202.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../cpu-h8300.c >>libbfd.h
  203.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../cpu-i960.c >>libbfd.h
  204.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../archures.c >>libbfd.h
  205.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../elf32.c >>libbfd.h
  206.  
  207. libcoff.h: $(srcdir)/../libcoff-in.h    \
  208.     $(srcdir)/../coffcode.h \
  209.     $(MKDOC)
  210.     cat $(srcdir)/../libcoff-in.h >libcoff.h
  211.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../coffcode.h >>libcoff.h
  212.  
  213. bfd.h: $(srcdir)/../bfd-in.h         \
  214.     $(srcdir)/../init.c         \
  215.     $(srcdir)/../opncls.c         \
  216.     $(srcdir)/../libbfd.c         \
  217.     $(srcdir)/../section.c         \
  218.     $(srcdir)/../archures.c        \
  219.     $(srcdir)/../reloc.c        \
  220.     $(srcdir)/../seclet.c        \
  221.     $(srcdir)/../syms.c        \
  222.     $(srcdir)/../bfd.c        \
  223.     $(srcdir)/../archive.c        \
  224.     $(srcdir)/../core.c        \
  225.     $(srcdir)/../targets.c        \
  226.     $(srcdir)/../format.c        \
  227.     $(MKDOC)
  228.     cat $(srcdir)/../bfd-in.h >bfd.h
  229.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../init.c >>bfd.h
  230.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../opncls.c >>bfd.h
  231.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../libbfd.c >>bfd.h
  232.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../section.c >>bfd.h
  233.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../archures.c >>bfd.h
  234.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../reloc.c >>bfd.h
  235.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../seclet.c >>bfd.h
  236.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../syms.c >>bfd.h
  237.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../bfd.c >>bfd.h
  238.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../archive.c >>bfd.h
  239.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../core.c >>bfd.h
  240.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../targets.c >>bfd.h
  241.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../format.c >>bfd.h    
  242.     echo "#endif" >>bfd.h
  243.  
  244.  
  245. clean-info: clean
  246.  
  247. mostlyclean:
  248.     rm -rf *.log *.ps *~* *.dvi *# $(MKDOC)
  249.  
  250. clean: mostlyclean
  251.     rm -rf $(STAGESTUFF)
  252.     rm -f *.p *.ip  bfd.?? bfd.??? bfd.h libbfd.h libcoff.h texput.log 
  253.  
  254. distclean: clean
  255.     rm -f Makefile config.status
  256.  
  257. realclean: clean
  258.     rm -f Makefile config.status
  259.  
  260. bfd.info: $(DOCFILES) bfd.texinfo
  261.     $(MAKEINFO) -o bfd.info $(srcdir)/bfd.texinfo
  262.  
  263. bfd.dvi: $(DOCFILES) bfd.texinfo
  264.     $(TEXI2DVI) $(srcdir)/bfd.texinfo
  265.  
  266. bfd.ps: bfd.dvi
  267.     dvips bfd -o
  268.     
  269. quickdoc: $(DOCFILES) bfd.texinfo
  270.     TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo
  271.  
  272. stage1: force
  273.     - mkdir stage1
  274.     - mv -f $(STAGESTUFF) stage1
  275.  
  276. stage2: force
  277.     - mkdir stage2
  278.     - mv -f $(STAGESTUFF) stage2
  279.  
  280. stage3: force
  281.     - mkdir stage3
  282.     - mv -f $(STAGESTUFF) stage3
  283.  
  284. against=stage2
  285.  
  286. comparison: force
  287.     for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i || exit 1 ; done
  288.  
  289. de-stage1: force
  290.     - (cd stage1 ; mv -f $(STAGESTUFF) ..)
  291.     - rmdir stage1
  292.  
  293. de-stage2: force
  294.     - (cd stage2 ; mv -f $(STAGESTUFF) ..)
  295.     - rmdir stage2
  296.  
  297. de-stage3: force
  298.     - (cd stage3 ; mv -f $(STAGESTUFF) ..)
  299.     - rmdir stage3
  300.  
  301. force:
  302.  
  303. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  304.     $(SHELL) ./config.status
  305.  
  306.