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.

120 lines
3.7 KiB

  1. rem @echo off
  2. setlocal
  3. REM
  4. REM This batch file releases header files and libraries for the internet
  5. REM server project. The headers and libs correspond to a given build.
  6. REM
  7. REM
  8. REM CHECKED build if NTDEBUG defined, else FREE build.
  9. REM
  10. set __TARGETROOT=\\whiteice\inetsrv
  11. set __TARGET_SUBDIR=chk
  12. if "%NTDEBUG%"=="cvp" set __TARGETROOT=\\whiteice\inetsrv.chk
  13. REM
  14. REM determine what kind of processor
  15. REM
  16. if "%PROCESSOR_ARCHITECTURE%"=="x86" goto X86
  17. if "%PROCESSOR_ARCHITECTURE%"=="MIPS" goto MIPS
  18. if "%PROCESSOR_ARCHITECTURE%"=="PPC" goto PPC
  19. if "%PROCESSOR_ARCHITECTURE%"=="ALPHA" goto ALPHA
  20. echo PROCESSOR_ARCHITECTURE not defined.
  21. goto EXIT
  22. :X86
  23. set __TARGET_EXT=i386
  24. set __PROCESSOR_DIR=i386
  25. goto OK
  26. :MIPS
  27. set __TARGET_EXT=MIPS
  28. set __PROCESSOR_DIR=mips
  29. goto OK
  30. :PPC
  31. set __TARGET_EXT=PPC
  32. set __PROCESSOR_DIR=ppc
  33. goto OK
  34. :ALPHA
  35. set __TARGET_EXT=ALPHA
  36. set __PROCESSOR_DIR=alpha
  37. goto OK
  38. :OK
  39. REM
  40. REM check parameters and env vars
  41. REM
  42. if "%1"=="" echo usage: MKDEV ^<version^> && goto EXIT
  43. set __INCTARGET=%__TARGETROOT%\%1\dev\inc
  44. set __LIBTARGET=%__TARGETROOT%\%1\dev\lib\%__TARGET_EXT%
  45. set __DLLTARGET=%__TARGETROOT%\%1\dev\dll\%__TARGET_EXT%
  46. md %__TARGETROOT%\%1\dev
  47. md %__TARGETROOT%\%1\dev\inc
  48. md %__TARGETROOT%\%1\dev\lib
  49. md %__TARGETROOT%\%1\dev\lib\%__TARGET_EXT%
  50. md %__TARGETROOT%\%1\dev\dll
  51. md %__TARGETROOT%\%1\dev\dll\%__TARGET_EXT%
  52. if NOT "%PROCESSOR_ARCHITECTURE%"=="x86" goto skipinc
  53. copy \nt\private\net\sockets\internet\inc %__INCTARGET%
  54. copy \nt\private\net\sockets\internet\svcs\inc %__INCTARGET%
  55. copy \nt\private\net\inc\rpcutil.h %__INCTARGET%
  56. copy \nt\private\net\inc\secobj.h %__INCTARGET%
  57. copy \nt\private\inc\tcpsvcs.h %__INCTARGET%
  58. copy \nt\public\sdk\inc\wininet.h %__INCTARGET%
  59. copy \nt\private\net\sockets\internet\client\inc\wininetd.h %__INCTARGET%
  60. :skipinc
  61. copy \nt\public\sdk\lib\%__TARGET_EXT%\accscomm.lib %__LIBTARGET%
  62. copy \nt\public\sdk\lib\%__TARGET_EXT%\inetsloc.lib %__LIBTARGET%
  63. copy \nt\public\sdk\lib\%__TARGET_EXT%\wininet.lib %__LIBTARGET%
  64. copy \nt\public\sdk\lib\%__TARGET_EXT%\infocomm.lib %__LIBTARGET%
  65. copy \nt\public\sdk\lib\%__TARGET_EXT%\infoadmn.lib %__LIBTARGET%
  66. copy %BINARIES%\nt\inetsrv\sysroot\ssl128.dll %__DLLTARGET%
  67. copy %BINARIES%\nt\inetsrv\sysroot\pctsspi.dll %__DLLTARGET%
  68. copy %BINARIES%\nt\inetsrv\sysroot\pct128.dll %__DLLTARGET%
  69. REM
  70. REM create the samples directories and copy sources & binaries
  71. REM
  72. set __SDKTARGET=%__TARGETROOT%\%1\dev\sdk
  73. md %__SDKTARGET%
  74. md %__SDKTARGET%\samples
  75. md %__SDKTARGET%\include
  76. md %__SDKTARGET%\lib
  77. md %__SDKTARGET%\lib\%__TARGET_EXT%
  78. md %__SDKTARGET%\dll
  79. md %__SDKTARGET%\dll\%__TARGET_EXT%
  80. copy %BINARIES%\nt\inetsrv\sysroot\wininet.dll %__SDKTARGET%\dll\%__TARGET_EXT%
  81. copy \nt\public\sdk\lib\%__TARGET_EXT%\wininet.lib %__SDKTARGET%\lib\%__TARGET_EXT%
  82. if NOT "%PROCESSOR_ARCHITECTURE%"=="x86" goto skipinc2
  83. copy \nt\private\net\sockets\internet\svcs\w3\server\httpfilt.h %__SDKTARGET%\include
  84. copy \nt\private\net\sockets\internet\svcs\w3\server\httpext.h %__SDKTARGET%\include
  85. copy \nt\public\sdk\inc\wininet.h %__SDKTARGET%\include
  86. :skipinc2
  87. call mksample %__SDKTARGET%\samples asyncdl %__PROCESSOR_DIR%
  88. call mksample %__SDKTARGET%\samples ftp %__PROCESSOR_DIR%
  89. call mksample %__SDKTARGET%\samples gopher %__PROCESSOR_DIR%
  90. call mksample %__SDKTARGET%\samples http %__PROCESSOR_DIR%
  91. :EXIT
  92. endlocal