home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / libg++-2.7.1-base.tgz / libg++-2.7.1-src.tar / fsf / libg++ / mpw-config.in < prev    next >
Text File  |  1995-09-26  |  4KB  |  99 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. Set configdirs "{host_libs} {host_tools} {target_libs} {target_tools}"
  28. Export configdirs
  29.  
  30. # Make up a special include directory that tools will share.
  31.  
  32. If "`Exists "{objdir}"extra-include`" == ""
  33.     NewFolder "{objdir}"extra-include
  34. End If
  35.  
  36. Set edir "{objdir}extra-include:"
  37.  
  38. forward-include "{srcdir}"include:mpw:sys:file.h "{edir}"'sys/file.h'
  39. forward-include "{srcdir}"include:mpw:sys:ioctl.h "{edir}"'sys/ioctl.h'
  40. forward-include "{srcdir}"include:mpw:sys:param.h "{edir}"'sys/param.h'
  41. forward-include "{srcdir}"include:mpw:sys:resource.h "{edir}"'sys/resource.h'
  42. forward-include "{srcdir}"include:mpw:sys:stat.h "{edir}"'sys/stat.h'
  43. forward-include "{srcdir}"include:mpw:sys:time.h "{edir}"'sys/time.h'
  44. forward-include "{srcdir}"include:mpw:sys:types.h "{edir}"'sys/types.h'
  45.  
  46. forward-include "{srcroot}"include:aout:aout64.h "{edir}"'aout/aout64.h'
  47. forward-include "{srcroot}"include:aout:ar.h "{edir}"'aout/ar.h'
  48. forward-include "{srcroot}"include:aout:ranlib.h "{edir}"'aout/ranlib.h'
  49. forward-include "{srcroot}"include:aout:reloc.h "{edir}"'aout/reloc.h'
  50. forward-include "{srcroot}"include:aout:stab.def "{edir}"'aout/stab.def'
  51. forward-include "{srcroot}"include:aout:stab_gnu.h "{edir}"'aout/stab_gnu.h'
  52.  
  53. If "`Exists "{srcroot}"include:aout:"{target_cpu}".h`" != ""
  54.     forward-include "{srcroot}"include:aout:"{target_cpu}".h "{edir}"'aout/'"{target_cpu}"'.h'
  55. End If
  56.  
  57. forward-include "{srcroot}"include:coff:ecoff.h "{edir}"'coff/ecoff.h'
  58. forward-include "{srcroot}"include:coff:internal.h "{edir}"'coff/internal.h'
  59. forward-include "{srcroot}"include:coff:sym.h "{edir}"'coff/sym.h'
  60. forward-include "{srcroot}"include:coff:symconst.h "{edir}"'coff/symconst.h'
  61.  
  62. If "`Exists "{srcroot}"include:coff:"{target_cpu}".h`" != ""
  63.     forward-include "{srcroot}"include:coff:"{target_cpu}".h "{edir}"'coff/'"{target_cpu}"'.h'
  64. End If
  65. If "{target_cpu}" =~ /powerpc/
  66.     forward-include "{srcroot}"include:coff:rs6000.h "{edir}"'coff/rs6000.h'
  67. End If
  68.  
  69. forward-include "{srcroot}"include:elf:common.h "{edir}"'elf/common.h'
  70. forward-include "{srcroot}"include:elf:dwarf.h "{edir}"'elf/dwarf.h'
  71. forward-include "{srcroot}"include:elf:external.h "{edir}"'elf/external.h'
  72. forward-include "{srcroot}"include:elf:internal.h "{edir}"'elf/internal.h'
  73.  
  74. # Believe it or not, GDB needs this for all targets.
  75. forward-include "{srcroot}"include:elf:mips.h "{edir}"'elf/mips.h'
  76.  
  77. If "`Exists "{srcroot}"include:elf:"{target_cpu}".h`" != ""
  78.     forward-include "{srcroot}"include:elf:"{target_cpu}".h "{edir}"'elf/'"{target_cpu}"'.h'
  79. End If
  80. If "{target_cpu}" =~ /powerpc/
  81.     forward-include "{srcroot}"include:elf:ppc.h "{edir}"'elf/ppc.h'
  82. End If
  83.  
  84. If "`Exists "{srcroot}"include:opcode:"{target_cpu}".h`" != ""
  85.     forward-include "{srcroot}"include:opcode:"{target_cpu}".h "{edir}"'opcode/'"{target_cpu}"'.h'
  86. End If
  87. If "{target_cpu}" =~ /powerpc/
  88.     forward-include "{srcroot}"include:opcode:ppc.h "{edir}"'opcode/ppc.h'
  89. End If
  90.  
  91. # Add some bfd includes that get mentioned outside the bfd dir.
  92.     
  93. forward-include "{srcroot}"bfd:libcoff.h "{edir}"'bfd/libcoff.h'
  94. forward-include "{srcroot}"bfd:libecoff.h "{edir}"'bfd/libecoff.h'
  95.  
  96. # Make the README more visible.
  97.  
  98. Catenate "{srcdir}"mpw-README > "{objdir}Read Me for MPW"
  99.