home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / gdb-4.16-base.tgz / gdb-4.16-base.tar / fsf / gdb / mpw-config.in < prev    next >
Text File  |  1995-11-13  |  4KB  |  104 lines

  1. # Configuration fragment for Cygnus source tree.
  2.  
  3. # Check that we can find all the special tools that we will need.
  4. # The test for sed is semi-pointless, because it's already been invoked
  5. # by the calculation of target_cpu in the main configure script, but
  6. # the test will also show which one is being used.
  7.  
  8. Set Exit 0
  9. Echo byacc is `Which byacc`
  10. Echo flex is `Which flex`
  11. Echo forward-include is `Which forward-include`
  12. Echo MoveIfChange is `Which MoveIfChange`
  13. Echo open-brace is `Which open-brace`
  14. Echo sed is `Which sed`
  15. Echo mpw-touch is `Which mpw-touch`
  16. Echo 'tr-7to8' is `Which tr-7to8`
  17. Set Exit 1
  18.  
  19. Set host_libs "libiberty opcodes bfd readline"
  20.  
  21. Set host_tools "byacc flex binutils ld gas gcc gdb"
  22.  
  23. Set target_libs "newlib"
  24.  
  25. Set target_tools "examples"
  26.  
  27. # Configure the resource compiler if targeting Macs.
  28. If {target_os} =~ /macos/ || {target_os} =~ /mpw/
  29.     Set host_tools "{host_tools} grez"
  30. End If
  31.     
  32. Set configdirs "{host_libs} {host_tools} {target_libs} {target_tools}"
  33. Export configdirs
  34.  
  35. # Make up a special include directory that tools will share.
  36.  
  37. If "`Exists "{objdir}"extra-include`" == ""
  38.     NewFolder "{objdir}"extra-include
  39. End If
  40.  
  41. Set edir "{objdir}extra-include:"
  42.  
  43. forward-include "{srcdir}"include:mpw:sys:file.h "{edir}"'sys/file.h'
  44. forward-include "{srcdir}"include:mpw:sys:ioctl.h "{edir}"'sys/ioctl.h'
  45. forward-include "{srcdir}"include:mpw:sys:param.h "{edir}"'sys/param.h'
  46. forward-include "{srcdir}"include:mpw:sys:resource.h "{edir}"'sys/resource.h'
  47. forward-include "{srcdir}"include:mpw:sys:stat.h "{edir}"'sys/stat.h'
  48. forward-include "{srcdir}"include:mpw:sys:time.h "{edir}"'sys/time.h'
  49. forward-include "{srcdir}"include:mpw:sys:types.h "{edir}"'sys/types.h'
  50.  
  51. forward-include "{srcroot}"include:aout:aout64.h "{edir}"'aout/aout64.h'
  52. forward-include "{srcroot}"include:aout:ar.h "{edir}"'aout/ar.h'
  53. forward-include "{srcroot}"include:aout:ranlib.h "{edir}"'aout/ranlib.h'
  54. forward-include "{srcroot}"include:aout:reloc.h "{edir}"'aout/reloc.h'
  55. forward-include "{srcroot}"include:aout:stab.def "{edir}"'aout/stab.def'
  56. forward-include "{srcroot}"include:aout:stab_gnu.h "{edir}"'aout/stab_gnu.h'
  57.  
  58. If "`Exists "{srcroot}"include:aout:"{target_cpu}".h`" != ""
  59.     forward-include "{srcroot}"include:aout:"{target_cpu}".h "{edir}"'aout/'"{target_cpu}"'.h'
  60. End If
  61.  
  62. forward-include "{srcroot}"include:coff:ecoff.h "{edir}"'coff/ecoff.h'
  63. forward-include "{srcroot}"include:coff:internal.h "{edir}"'coff/internal.h'
  64. forward-include "{srcroot}"include:coff:sym.h "{edir}"'coff/sym.h'
  65. forward-include "{srcroot}"include:coff:symconst.h "{edir}"'coff/symconst.h'
  66.  
  67. If "`Exists "{srcroot}"include:coff:"{target_cpu}".h`" != ""
  68.     forward-include "{srcroot}"include:coff:"{target_cpu}".h "{edir}"'coff/'"{target_cpu}"'.h'
  69. End If
  70. If "{target_cpu}" =~ /powerpc/
  71.     forward-include "{srcroot}"include:coff:rs6000.h "{edir}"'coff/rs6000.h'
  72. End If
  73.  
  74. forward-include "{srcroot}"include:elf:common.h "{edir}"'elf/common.h'
  75. forward-include "{srcroot}"include:elf:dwarf.h "{edir}"'elf/dwarf.h'
  76. forward-include "{srcroot}"include:elf:external.h "{edir}"'elf/external.h'
  77. forward-include "{srcroot}"include:elf:internal.h "{edir}"'elf/internal.h'
  78.  
  79. # Believe it or not, GDB needs this for all targets.
  80. forward-include "{srcroot}"include:elf:mips.h "{edir}"'elf/mips.h'
  81.  
  82. If "`Exists "{srcroot}"include:elf:"{target_cpu}".h`" != ""
  83.     forward-include "{srcroot}"include:elf:"{target_cpu}".h "{edir}"'elf/'"{target_cpu}"'.h'
  84. End If
  85. If "{target_cpu}" =~ /powerpc/
  86.     forward-include "{srcroot}"include:elf:ppc.h "{edir}"'elf/ppc.h'
  87. End If
  88.  
  89. If "`Exists "{srcroot}"include:opcode:"{target_cpu}".h`" != ""
  90.     forward-include "{srcroot}"include:opcode:"{target_cpu}".h "{edir}"'opcode/'"{target_cpu}"'.h'
  91. End If
  92. If "{target_cpu}" =~ /powerpc/
  93.     forward-include "{srcroot}"include:opcode:ppc.h "{edir}"'opcode/ppc.h'
  94. End If
  95.  
  96. # Add some bfd includes that get mentioned outside the bfd dir.
  97.     
  98. forward-include "{srcroot}"bfd:libcoff.h "{edir}"'bfd/libcoff.h'
  99. forward-include "{srcroot}"bfd:libecoff.h "{edir}"'bfd/libecoff.h'
  100.  
  101. # Make the README more visible.
  102.  
  103. Catenate "{srcdir}"mpw-README > "{objdir}Read Me for MPW"
  104.