Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.8 KiB

  1. @echo off
  2. setlocal
  3. if "%MSDEVDIR%"=="" goto Err_EnvVal
  4. if "%MSVCDIR%"=="" goto Err_EnvVal
  5. if "%1"=="" goto Err_Parameter
  6. echo -----------------------------------------------------
  7. echo Buiding Korean IME DLL
  8. echo -----------------------------------------------------
  9. if "%1" == "clean" goto clean
  10. if "%1" == "ship" (set CONFIG="IMEKOR - Win32 Release") & shift & goto build
  11. if "%1" == "debug" (set CONFIG="IMEKOR - Win32 Debug") & shift & goto build
  12. if "%1" == "all" (set CONFIG="IMEKOR - Win32 Debug") & shift & goto buildall
  13. if "%1" == "bbt" shift & goto Lego_Start
  14. goto Err_Parameter
  15. :build
  16. nmake /f imekor.mak CFG=%CONFIG%
  17. goto end
  18. :buildall
  19. nmake /f imekor.mak CFG="IMEKOR - Win32 Release"
  20. nmake /f imekor.mak CFG="IMEKOR - Win32 Debug"
  21. goto end
  22. :clean
  23. nmake /f imekor.mak CFG="IMEKOR - Win32 Release" clean
  24. nmake /f imekor.mak CFG="IMEKOR - Win32 Debug" clean
  25. nmake /f imekor.mak CFG="IMEKOR - Win32 BBTRelease" clean
  26. goto end
  27. rem /////////////////////////////////////////////////////////////
  28. rem // Start BBT
  29. :Lego_Start
  30. nmake /f imekor.mak CFG="IMEKOR - Win32 BBTRelease"
  31. echo copy .\bbtrelease\imekr98u.ime .\BBT directory
  32. copy .\BBTRelease\imekr98u.ime .\bbt
  33. echo copy .\bbtrelease\imekr98u.pdb .\BBT directory
  34. copy .\BBTRelease\imekr98u.pdb .\bbt
  35. goto end
  36. :Err_Parameter
  37. echo Usage : make [all][debug][ship][bbt][clean]
  38. goto end
  39. :Err_EnvVal
  40. echo +---------------------------------------------------------
  41. echo + You need to set following environment variable
  42. echo +
  43. echo + 1. MSDEVDIR - Root of Visual Developer Studio installed files
  44. echo + 2. MSVCDIR - Root of Visual C++ installed files
  45. echo +
  46. echo + Hint: Pls. run Vcvars32.bat
  47. echo +---------------------------------------------------------
  48. :end
  49. endlocal