home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / crt / src / bldnt.cmd < prev    next >
OS/2 REXX Batch file  |  1998-06-16  |  759b  |  36 lines

  1. @echo off
  2. IF "%V6TOOLS%" == "" goto Usage1
  3.  
  4. setlocal
  5. IF "%1" == "PMAC" goto buildpmac
  6. IF "%1" == "PMac" goto buildpmac
  7. IF "%1" == "pmac" goto buildpmac
  8. IF "%1" == "" goto dobuild
  9. goto Usage2
  10.  
  11. :buildpmac
  12. shift
  13. set PROCESSOR_ARCHITECTURE=PMAC
  14. set PATH=%V6TOOLS%\mac\mppc\bin;%V6TOOLS%\mac\bin;%PATH%
  15. set INCLUDE=%V6TOOLS%\mac\include;%V6TOOLS%\mac\include\macos;%INCLUDE%
  16. set LIB=%V6TOOLS%\mac\mppc\lib;%LIB%
  17.  
  18. :dobuild
  19. nmake %1 %2 %3 %4 %5 %6 %7 %8
  20. endlocal
  21.  
  22. goto End
  23.  
  24. :Usage1
  25. echo The environment variable V6TOOLS must be set to point
  26. echo to the root of your VC++ 6.0 installation.
  27.  
  28. goto End
  29.  
  30. :Usage2
  31. echo "bldnt" builds the runtimes for Win32 platform.
  32. echo "bldnt PMac" builds the runtimes for the Power Macintosh.
  33.  
  34. :End
  35.  
  36.