诸暨麻将添加redis
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 
 

203 rindas
5.3 KiB

  1. !IF "$(MODE)"=="static"
  2. TARGET = $(LIB_NAME_STATIC)
  3. AS_DLL = false
  4. CFGSET=true
  5. !ELSEIF "$(MODE)"=="dll"
  6. TARGET = $(LIB_NAME_DLL)
  7. AS_DLL = true
  8. CFGSET=true
  9. !ELSE
  10. !MESSAGE Invalid mode: $(MODE)
  11. #######################
  12. # Usage
  13. #
  14. !MESSAGE Usage: nmake /f Makefile.vc mode=<static or dll> <options>
  15. !MESSAGE where <options> is one or many of:
  16. !MESSAGE VC=<6,7,8,9,10> - VC versions
  17. !MESSAGE WITH_DEVEL=<path> - Paths for the development files (SSL, zlib, etc.)
  18. !MESSAGE Defaults to sibbling directory deps: ../deps
  19. !MESSAGE Libraries can be fetched at http://pecl2.php.net/downloads/php-windows-builds/
  20. !MESSAGE Uncompress them into the deps folder.
  21. !MESSAGE WITH_SSL=<dll or static> - Enable OpenSSL support, DLL or static
  22. !MESSAGE WITH_ZLIB=<dll or static> - Enable zlib support, DLL or static
  23. !MESSAGE WITH_SSH2=<dll or static> - Enable libSSH2 support, DLL or static
  24. !MESSAGE ENABLE_IDN=<yes or no> - Enable use of Windows IDN APIs, defaults to yes
  25. !MESSAGE Requires Windows Vista or later, or installation from:
  26. !MESSAGE http://www.microsoft.com/downloads/details.aspx?FamilyID=AD6158D7-DDBA-416A-9109-07607425A815
  27. !MESSAGE ENABLE_IPV6=<yes or no> - Enable IPv6, defaults to yes
  28. !MESSAGE ENABLE_SSPI=<yes or no> - Enable SSPI support, defaults to yes
  29. !MESSAGE ENABLE_SPNEGO=<yes or no> - Enable Simple and Protected GSSAPI Negotiation Mechanism, defaults to yes
  30. !MESSAGE ENABLE_WINSSL=<yes or no> - Enable native Windows SSL support, defaults to yes
  31. !MESSAGE GEN_PDB=<yes or no> - Generate Program Database (debug symbols for release build)
  32. !MESSAGE DEBUG=<yes or no> - Debug builds
  33. !MESSAGE MACHINE=<x86 or x64> - Target architecture (default x64 on AMD64, x86 on others)
  34. !ERROR please choose a valid mode
  35. !ENDIF
  36. !INCLUDE "../lib/Makefile.inc"
  37. LIBCURL_OBJS=$(CSOURCES:.c=.obj)
  38. !INCLUDE "../src/Makefile.inc"
  39. # tool_hugehelp has a special rule
  40. CURL_OBJS=$(CURL_CFILES:tool_hugehelp.c=)
  41. CURL_OBJS=$(CURL_OBJS:.c=.obj)
  42. # backwards compatible check for USE_SSPI
  43. !IFDEF USE_SSPI
  44. ENABLE_SSPI = $(USE_SSPI)
  45. !ENDIF
  46. # default options
  47. !IFNDEF MACHINE
  48. !IF "$(PROCESSOR_ARCHITECTURE)"=="AMD64"
  49. MACHINE = x64
  50. !ELSE
  51. MACHINE = x86
  52. !ENDIF
  53. !ENDIF
  54. !IFNDEF ENABLE_IDN
  55. USE_IDN = true
  56. !ELSEIF "$(ENABLE_IDN)"=="yes"
  57. USE_IDN = true
  58. !ELSEIF "$(ENABLE_IDN)"=="no"
  59. USE_IDN = false
  60. !ENDIF
  61. !IFNDEF ENABLE_IPV6
  62. USE_IPV6 = true
  63. !ELSEIF "$(ENABLE_IPV6)"=="yes"
  64. USE_IPV6 = true
  65. !ELSEIF "$(ENABLE_IPV6)"=="no"
  66. USE_IPV6 = false
  67. !ENDIF
  68. !IFNDEF ENABLE_SSPI
  69. USE_SSPI = true
  70. !ELSEIF "$(ENABLE_SSPI)"=="yes"
  71. USE_SSPI = true
  72. !ELSEIF "$(ENABLE_SSPI)"=="no"
  73. USE_SSPI = false
  74. !ENDIF
  75. !IFNDEF ENABLE_SPNEGO
  76. USE_SPNEGO = true
  77. !ELSEIF "$(ENABLE_SPNEGO)"=="yes"
  78. USE_SPNEGO = true
  79. !ELSEIF "$(ENABLE_SPNEGO)"=="no"
  80. USE_SPNEGO = false
  81. !ENDIF
  82. !IFNDEF ENABLE_WINSSL
  83. USE_WINSSL = $(USE_SSPI)
  84. !ELSEIF "$(ENABLE_WINSSL)"=="yes"
  85. USE_WINSSL = true
  86. !ELSEIF "$(ENABLE_WINSSL)"=="no"
  87. USE_WINSSL = false
  88. !ENDIF
  89. CONFIG_NAME_LIB = libcurl
  90. !IF "$(WITH_SSL)"=="dll"
  91. USE_SSL = true
  92. SSL = dll
  93. !ELSEIF "$(WITH_SSL)"=="static"
  94. USE_SSL = true
  95. SSL = static
  96. !ENDIF
  97. !IF "$(WITH_ZLIB)"=="dll"
  98. USE_ZLIB = true
  99. ZLIB = dll
  100. !ELSEIF "$(WITH_ZLIB)"=="static"
  101. USE_ZLIB = true
  102. ZLIB = static
  103. !ENDIF
  104. !IF "$(WITH_SSH2)"=="dll"
  105. USE_SSH2 = true
  106. SSH2 = dll
  107. !ELSEIF "$(WITH_SSH2)"=="static"
  108. USE_SSH2 = true
  109. SSH2 = static
  110. !ENDIF
  111. CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-vc$(VC)-$(MACHINE)
  112. !IF "$(DEBUG)"=="yes"
  113. CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-debug
  114. !ELSE
  115. CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-release
  116. !ENDIF
  117. !IF "$(AS_DLL)"=="true"
  118. CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-dll
  119. !ELSE
  120. CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-static
  121. !ENDIF
  122. !IF "$(USE_SSL)"=="true"
  123. CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-ssl-$(SSL)
  124. !ENDIF
  125. !IF "$(USE_ZLIB)"=="true"
  126. CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-zlib-$(ZLIB)
  127. !ENDIF
  128. !IF "$(USE_SSH2)"=="true"
  129. CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-ssh2-$(SSH2)
  130. !ENDIF
  131. !IF "$(USE_IPV6)"=="true"
  132. CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-ipv6
  133. !ENDIF
  134. !IF "$(USE_SSPI)"=="true"
  135. CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-sspi
  136. !ENDIF
  137. !IF "$(USE_SPNEGO)"=="true"
  138. CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-spnego
  139. !ENDIF
  140. !IF "$(USE_WINSSL)"=="true"
  141. CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-winssl
  142. !ENDIF
  143. !MESSAGE configuration name: $(CONFIG_NAME_LIB)
  144. BUILD_DIR=../builds/$(CONFIG_NAME_LIB)
  145. LIBCURL_DIROBJ = ..\builds\$(CONFIG_NAME_LIB)-obj-lib
  146. CURL_DIROBJ = ..\builds\$(CONFIG_NAME_LIB)-obj-curl
  147. DIRDIST = ..\builds\$(CONFIG_NAME_LIB)\
  148. $(MODE):
  149. @SET DIROBJ=$(LIBCURL_DIROBJ)
  150. @SET MACRO_NAME=LIBCURL_OBJS
  151. @SET OUTFILE=LIBCURL_OBJS.inc
  152. @gen_resp_file.bat $(LIBCURL_OBJS)
  153. @SET DIROBJ=$(CURL_DIROBJ)
  154. @SET MACRO_NAME=CURL_OBJS
  155. @SET OUTFILE=CURL_OBJS.inc
  156. @gen_resp_file.bat $(CURL_OBJS)
  157. @SET CONFIG_NAME_LIB=$(CONFIG_NAME_LIB)
  158. @SET MACHINE=$(MACHINE)
  159. @SET USE_IDN=$(USE_IDN)
  160. @SET USE_IPV6=$(USE_IPV6)
  161. @SET USE_SSPI=$(USE_SSPI)
  162. @SET USE_SPNEGO=$(USE_SPNEGO)
  163. @SET USE_WINSSL=$(USE_WINSSL)
  164. @$(MAKE) /NOLOGO /F MakefileBuild.vc
  165. copy_from_lib:
  166. echo copying .c...
  167. FOR %%i IN ($(CURLX_ONES:/=\)) DO copy %%i ..\src\