home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 December / PCWKCD1296.iso / vjplusb / msdev / setup.bin / 300 / 107 < prev    next >
Text File  |  1996-07-11  |  2KB  |  61 lines

  1. rem
  2. rem VcOsDir is used to help create either a Windows 95 or Windows NT specific path.
  3. rem
  4. set VcOsDir=WIN95
  5. if "%OS%" == "Windows_NT" set VcOsDir=WINNT
  6.  
  7. if "%1" == "x86" goto x86
  8. if "%1" == "m68k" goto m68k
  9. if "%1" == "mppc" goto mppc
  10.  
  11. echo Usage: vcvars32 [target]
  12. echo     Where target is one of the following: x86, m68k, mppc.
  13. if "%1" == "" goto default
  14. goto done
  15.  
  16. :default
  17. echo No target specified.  Selecting x86 as default target. 
  18.  
  19. :x86
  20. rem
  21. echo Setting environment for building x86 target
  22. rem
  23. if "%vcsource%" == "" goto x86main
  24. rem
  25. rem Include cdrom files in environment.
  26. rem
  27. if "%OS%" == "Windows_NT" set PATH=%vcsource%\BIN;%vcsource%\BIN\%VcOsDir%;%PATH%
  28. if "%OS%" == "" set PATH="%vcsource%\BIN";"%vcsource%\BIN\%VcOsDir%";"%PATH%"
  29. set INCLUDE=%vcsource%\INCLUDE;%vcsource%\MFC\INCLUDE;%INCLUDE%
  30. set LIB=%vcsource%\LIB;%vcsource%\MFC\LIB;%LIB%
  31. set vcsource=
  32.  
  33. :x86main
  34. if "%OS%" == "Windows_NT" set PATH=%MSDevDir%\BIN;%MSDevDir%\BIN\%VcOsDir%;%PATH%
  35. if "%OS%" == "" set PATH="%MSDevDir%\BIN";"%MSDevDir%\BIN\%VcOsDir%";"%PATH%"
  36. set INCLUDE=%MSDevDir%\INCLUDE;%MSDevDir%\MFC\INCLUDE;%INCLUDE%
  37. set LIB=%MSDevDir%\LIB;%MSDevDir%\MFC\LIB;%LIB%
  38. goto done
  39.  
  40. :m68k
  41. rem
  42. echo Setting environment for building m68k target
  43. rem
  44. if "%OS%" == "Windows_NT" set PATH=%MSDevDir%\mac\m68k\bin;%MSDevDir%\mac\bin;%MSDevDir%\BIN;%MSDevDir%\BIN\%VcOsDir%;%PATH%
  45. if "%OS%" == "" set PATH="%MSDevDir%\mac\m68k\bin";"%MSDevDir%\mac\bin";"%MSDevDir%\BIN";"%MSDevDir%\BIN\%VcOsDir%";"%PATH%"
  46. set INCLUDE=%MSDevDir%\mac\include;%MSDevDir%\mac\include\macos;%MSDevDir%\mac\include\mrc;%MSDevDir%\INCLUDE;%MSDevDir%\MFC\INCLUDE;%INCLUDE%
  47. set LIB=%MSDevDir%\mac\m68k\lib;%MSDevDir%\LIB;%MSDevDir%\MFC\LIB;%LIB%
  48. goto done
  49.  
  50. :mppc
  51. rem
  52. echo Setting environment for building mppc target
  53. rem
  54. if "%OS%" == "Windows_NT" set PATH=%MSDevDir%\mac\mppc\bin;%MSDevDir%\mac\bin;%MSDevDir%\BIN;%MSDevDir%\BIN\%VcOsDir%;%PATH%
  55. if "%OS%" == "" set PATH="%MSDevDir%\mac\mppc\bin";"%MSDevDir%\mac\bin";"%MSDevDir%\BIN";"%MSDevDir%\BIN\%VcOsDir%";"%PATH%"
  56. set INCLUDE=%MSDevDir%\mac\include;%MSDevDir%\mac\include\macos;%MSDevDir%\mac\include\sys;%MSDevDir%\mac\include\mrc;%MSDevDir%\INCLUDE;%MSDevDir%\MFC\INCLUDE;%INCLUDE%
  57. set LIB=%MSDevDir%\mac\mppc\lib;%MSDevDir%\LIB;%MSDevDir%\MFC\LIB;%LIB%
  58.  
  59. :done
  60. set VcOsDir=
  61.