winbuild: Allow SSPI build with or without Schannel
[platform/upstream/curl.git] / winbuild / Makefile.vc
index a45e4ee..59e29d6 100644 (file)
@@ -27,6 +27,7 @@ CFGSET=true
 !MESSAGE   ENABLE_IPV6=<yes or no>      - Enable IPV6, default to yes\r
 !MESSAGE   ENABLE_IDN=<yes or no>       - Wheter or not to use IDN Windows APIs. Requires Windows Vista or later.\r
 !MESSAGE                                  or to install http://www.microsoft.com/downloads/details.aspx?FamilyID=AD6158D7-DDBA-416A-9109-07607425A815\r
+!MESSAGE   ENABLE_WINSSL=<yes or no>    - Enable native Windows SSL support, default to yes\r
 !MESSAGE   GEN_PDB=<yes or no>          - Generate Program Database (debug symbols release build)\r
 !MESSAGE   DEBUG=<yes or no>            - Debug builds\r
 !ERROR please choose a valid mode\r
@@ -65,6 +66,14 @@ USE_IDN = true
 USE_IDN = false\r
 !ENDIF\r
 \r
+!IFNDEF ENABLE_WINSSL\r
+USE_WINSSL = true\r
+!ELSEIF "$(ENABLE_WINSSL)"=="yes"\r
+USE_WINSSL = true\r
+!ELSEIF "$(ENABLE_WINSSL)"=="no"\r
+USE_WINSSL = false\r
+!ENDIF\r
+\r
 CONFIG_NAME_LIB = libcurl\r
 \r
 !IF "$(WITH_SSL)"=="dll"\r
@@ -123,6 +132,10 @@ CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-ipv6
 CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-sspi\r
 !ENDIF\r
 \r
+!IF "$(USE_WINSSL)"=="true"\r
+CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-winssl\r
+!ENDIF\r
+\r
 !MESSAGE configuration name: $(CONFIG_NAME_LIB)\r
 \r
 BUILD_DIR=../builds/$(CONFIG_NAME_LIB)\r
@@ -141,6 +154,7 @@ $(MODE):
        @gen_resp_file.bat $(CURL_OBJS)\r
        @SET USE_IPV6=$(USE_IPV6)\r
        @SET USE_IDN=$(USE_IDN)\r
+       @SET USE_WINSSL=$(USE_WINSSL)\r
        @$(MAKE) /NOLOGO /F MakefileBuild.vc\r
 \r
 copy_from_lib:\r