home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / gcc-2.7.2.1-base.tgz / gcc-2.7.2.1-base.tar / fsf / gcc / config / msdos / configur.bat next >
DOS Batch File  |  1995-08-28  |  2KB  |  42 lines

  1. @echo off
  2. echo Configuring GCC for go32
  3. rem This batch file assumes a unix-type "sed" program
  4.  
  5. if not exist config\msdos\configure.bat chdir ..\..
  6.  
  7. update config\i386\xm-dos.h config.h
  8. update config\i386\xm-dos.h hconfig.h
  9. update config\i386\xm-dos.h tconfig.h
  10. update config\i386\go32.h tm.h
  11. update config\i386\i386.md md
  12. update config\i386\i386.c aux-output.c
  13.  
  14. echo # Makefile generated by "configure.bat"> Makefile
  15. echo all.dos: cccp cc1 cc1obj xgcc libgcc.a s-objlist >> Makefile
  16. sed -f config/msdos/top.sed Makefile.in >> Makefile
  17.  
  18. set LANG=
  19.  
  20. if not exist cp\make-lang.in goto no_cp
  21. sed -f config/msdos/top.sed cp\make-lang.in >> Makefile
  22. sed -f config/msdos/top.sed cp\makefile.in > cp\Makefile
  23. set LANG=%LANG% c++.&    
  24. :no_cp
  25.  
  26. echo lang.mostlyclean: %LANG% | sed "s/&/mostlyclean/g" >> Makefile
  27. echo lang.clean: %LANG% | sed "s/&/clean/g" >> Makefile
  28. echo lang.distclean: %LANG% | sed "s/&/distclean/g" >> Makefile
  29. echo lang.maintainer-clean: %LANG% | sed "s/&/maintainer-clean/g" >> Makefile
  30. echo /* options.h */ > options.h
  31. if exist cp\lang-options.h echo #include "cp/lang-options.h" >> options.h
  32. if exist ada\lang-options.h echo #include "ada/lang-options.h" >> options.h
  33. if exist f\lang-options.h echo #include "f/lang-options.h" >> options.h
  34. echo /* specs.h */ > specs.h
  35. if exist cp\lang-specs.h echo #include "cp/lang-specs.h" >> specs.h
  36. if exist ada\lang-specs.h echo #include "ada/lang-specs.h" >> specs.h
  37. if exist f\lang-specs.h echo #include "f/lang-specs.h" >> specs.h
  38.  
  39. echo #define MULTILIB_SELECT ". ;" > multilib.h1
  40. update multilib.h1 multilib.h
  41. del multilib.h1
  42.