launch.binutils 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. echo TIGCC script: Configuring, compiling and installing binutils...
  7. mkdir ../build; mkdir ../build/binutils;
  8. 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
  9. if [ $? -ne 0 ]
  10. then echo "TIGCC script: Error while configuring"
  11. exit 1
  12. fi
  13. #Binutils 2.14 is very annoying because of its habit to configure subdirectories only during make.
  14. #This keeps us from patching the generated makefile in advance.
  15. #So we have to call make 5 times to get it to work with our removed directories.
  16. make
  17. echo You should have seen an error. This is normal. TIGCC installation continues.
  18. # Create dummy libiberty testuite makefile
  19. rm -f libiberty/testsuite/Makefile
  20. echo all: >libiberty/testsuite/Makefile
  21. make
  22. echo You should have seen an error. This is normal. TIGCC installation continues.
  23. # We do not want to install any documentation. It is redundant with our HTML documentation.
  24. rm -f bfd/doc/Makefile
  25. echo all: >bfd/doc/Makefile
  26. # We do not want any po (NLS) makefiles either: we do not use any NLS anyway
  27. mkdir bfd/po
  28. rm -f bfd/po/Makefile
  29. echo all: >bfd/po/Makefile
  30. make
  31. echo You should have seen an error. This is normal. TIGCC installation continues.
  32. # We do not want any po (NLS) makefiles: we do not use any NLS anyway
  33. rm -f opcodes/po/Makefile
  34. echo all: >opcodes/po/Makefile
  35. make
  36. echo You should have seen an error. This is normal. TIGCC installation continues.
  37. # We do not want to install any documentation. It is redundant with our HTML documentation.
  38. mkdir gas/doc
  39. rm -f gas/doc/Makefile
  40. echo all: >gas/doc/Makefile
  41. # We do not want any po (NLS) makefiles either: we do not use any NLS anyway
  42. mkdir gas/po
  43. rm -f gas/po/Makefile
  44. echo all: >gas/po/Makefile
  45. #Now this one should really work...
  46. make
  47. if [ $? -ne 0 ]
  48. then echo "TIGCC script: Error while making"
  49. exit 2
  50. fi
  51. mkdir $TIGCC/bin/
  52. cp gas/as-new $TIGCC/bin/as
  53. echo Done.