launch.binutils 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #! /bin/sh
  2. #
  3. # This script launch configure with the right arguments
  4. # The tree must have been patched before doing this.
  5. #
  6. isbsd=`uname | grep "BSD"`
  7. if [ $isbsd = "" ]; then
  8. #Assume GNU make
  9. make=make
  10. else
  11. make=gmake
  12. fi
  13. echo TIGCC script: Configuring, compiling and installing binutils...
  14. mkdir ../build; mkdir ../build/binutils;
  15. cd ../build/binutils; ../../download/binutils.ti/configure --disable-serial-configure --prefix=$TIGCC --target=m68k-coff --disable-shared --enable-static --disable-multilib --disable-nls --disable-win32-registry
  16. if [ $? -ne 0 ]
  17. then echo "TIGCC script: Error while configuring"
  18. exit 1
  19. fi
  20. #Binutils 2.14 is very annoying because of its habit to configure subdirectories only during make.
  21. #This keeps us from patching the generated makefile in advance.
  22. #So we have to call make 5 times to get it to work with our removed directories.
  23. ${make}
  24. echo You should have seen an error. This is normal. TIGCC installation continues.
  25. # Create dummy libiberty testuite makefile
  26. rm -f libiberty/testsuite/Makefile
  27. echo all: >libiberty/testsuite/Makefile
  28. ${make}
  29. echo You should have seen an error. This is normal. TIGCC installation continues.
  30. # We do not want to install any documentation. It is redundant with our HTML documentation.
  31. rm -f bfd/doc/Makefile
  32. echo all: >bfd/doc/Makefile
  33. # We do not want any po (NLS) makefiles either: we do not use any NLS anyway
  34. mkdir bfd/po
  35. rm -f bfd/po/Makefile
  36. echo all: >bfd/po/Makefile
  37. ${make}
  38. echo You should have seen an error. This is normal. TIGCC installation continues.
  39. # We do not want any po (NLS) makefiles: we do not use any NLS anyway
  40. rm -f opcodes/po/Makefile
  41. echo all: >opcodes/po/Makefile
  42. ${make}
  43. echo You should have seen an error. This is normal. TIGCC installation continues.
  44. # We do not want to install any documentation. It is redundant with our HTML documentation.
  45. mkdir gas/doc
  46. rm -f gas/doc/Makefile
  47. echo all: >gas/doc/Makefile
  48. # We do not want any po (NLS) makefiles either: we do not use any NLS anyway
  49. mkdir gas/po
  50. rm -f gas/po/Makefile
  51. echo all: >gas/po/Makefile
  52. #Now this one should really work...
  53. ${make}
  54. if [ $? -ne 0 ]
  55. then echo "TIGCC script: Error while making"
  56. exit 2
  57. fi
  58. mkdir $TIGCC/bin/
  59. cp gas/as-new $TIGCC/bin/as
  60. echo Done.