1 !IF "$(MODE)"=="static"
\r
2 TARGET = $(LIB_NAME_STATIC)
\r
5 !ELSEIF "$(MODE)"=="dll"
\r
6 TARGET = $(LIB_NAME_DLL)
\r
10 !MESSAGE Invalid mode: $(MODE)
\r
12 #######################
\r
16 !MESSAGE Usage: nmake /f makefile.vc mode=<static or dll> <options>
\r
17 !MESSAGE where <options> is one or many of:
\r
18 !MESSAGE VC=<6,7,8,9,10> - VC versions
\r
19 !MESSAGE WITH_DEVEL=<path> - Paths for the development files (SSL, zlib, etc.)
\r
20 !MESSAGE Default to sibbling directory deps: ../deps
\r
21 !MESSAGE Libraries can be fetched at http://pecl2.php.net/downloads/php-windows-builds/
\r
22 !MESSAGE Uncompress them into the deps folder.
\r
23 !MESSAGE WITH_SSL=<dll or static> - Enable OpenSSL support, DLL or static
\r
24 !MESSAGE WITH_ZLIB=<dll or static> - Enable ZLib support, DLL or static
\r
25 !MESSAGE WITH_SSH2=<dll or static> - Enable LIbSSH2 support, DLL or static
\r
26 !MESSAGE USE_SSPI=<yes or no> - Enable SSPI support, default to yes
\r
27 !MESSAGE ENABLE_IPV6=<yes or no> - Enable IPV6, default to yes
\r
28 !MESSAGE ENABLE_IDN=<yes or no> - Wheter or not to use IDN Windows APIs. Requires Windows Vista or later.
\r
29 !MESSAGE or to install http://www.microsoft.com/downloads/details.aspx?FamilyID=AD6158D7-DDBA-416A-9109-07607425A815
\r
30 !MESSAGE ENABLE_WINSSL=<yes or no> - Enable native Windows SSL support, default to yes
\r
31 !MESSAGE GEN_PDB=<yes or no> - Generate Program Database (debug symbols release build)
\r
32 !MESSAGE DEBUG=<yes or no> - Debug builds
\r
33 !ERROR please choose a valid mode
\r
37 !INCLUDE "../lib/Makefile.inc"
\r
38 LIBCURL_OBJS=$(CSOURCES:.c=.obj)
\r
41 !INCLUDE "../src/Makefile.inc"
\r
43 # hugehelp has a special rule
\r
44 CURL_OBJS=$(CURL_CFILES:hugehelp.c=)
\r
46 CURL_OBJS=$(CURL_OBJS:.c=.obj)
\r
55 !ELSEIF "$(ENABLE_IPV6)"=="yes"
\r
57 !ELSEIF "$(ENABLE_IPV6)"=="no"
\r
63 !ELSEIF "$(ENABLE_IDN)"=="yes"
\r
65 !ELSEIF "$(ENABLE_IDN)"=="no"
\r
69 !IFNDEF ENABLE_WINSSL
\r
71 !ELSEIF "$(ENABLE_WINSSL)"=="yes"
\r
73 !ELSEIF "$(ENABLE_WINSSL)"=="no"
\r
77 CONFIG_NAME_LIB = libcurl
\r
79 !IF "$(WITH_SSL)"=="dll"
\r
82 !ELSEIF "$(WITH_SSL)"=="static"
\r
87 !IF "$(WITH_ZLIB)"=="dll"
\r
90 !ELSEIF "$(WITH_ZLIB)"=="static"
\r
95 !IF "$(WITH_SSH2)"=="dll"
\r
98 !ELSEIF "$(WITH_SSH2)"=="static"
\r
103 !IF "$(DEBUG)"=="yes"
\r
104 CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-debug
\r
106 CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-release
\r
109 !IF "$(AS_DLL)" == "true"
\r
110 CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-dll
\r
112 CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-static
\r
115 !IF "$(USE_SSL)"=="true"
\r
116 CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-ssl-$(SSL)
\r
119 !IF "$(USE_ZLIB)"=="true"
\r
120 CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-zlib-$(ZLIB)
\r
123 !IF "$(USE_SSH2)"=="true"
\r
124 CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-ssh2-$(SSH2)
\r
127 !IF "$(USE_IPV6)"=="true"
\r
128 CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-ipv6
\r
131 !IF "$(USE_SSPI)"=="true"
\r
132 CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-sspi
\r
135 !IF "$(USE_WINSSL)"=="true"
\r
136 CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-winssl
\r
139 !MESSAGE configuration name: $(CONFIG_NAME_LIB)
\r
141 BUILD_DIR=../builds/$(CONFIG_NAME_LIB)
\r
142 LIBCURL_DIROBJ = ..\builds\$(CONFIG_NAME_LIB)-obj-lib
\r
143 CURL_DIROBJ = ..\builds\$(CONFIG_NAME_LIB)-obj-curl
\r
144 DIRDIST = ..\builds\$(CONFIG_NAME_LIB)\
\r
147 @SET LIBCURL_DIROBJ=$(LIBCURL_DIROBJ)
\r
148 @SET MACRO_NAME=LIBCURL_OBJS
\r
149 @SET OUTFILE=LIBCURL_OBJS.inc
\r
150 @gen_resp_file.bat $(LIBCURL_OBJS)
\r
151 @SET LIBCURL_DIROBJ=$(CURL_DIROBJ)
\r
152 @SET MACRO_NAME=CURL_OBJS
\r
153 @SET OUTFILE=CURL_OBJS.inc
\r
154 @gen_resp_file.bat $(CURL_OBJS)
\r
155 @SET USE_IPV6=$(USE_IPV6)
\r
156 @SET USE_IDN=$(USE_IDN)
\r
157 @SET USE_WINSSL=$(USE_WINSSL)
\r
158 @$(MAKE) /NOLOGO /F MakefileBuild.vc
\r
162 FOR %%i IN ($(CURLX_ONES:/=\)) DO copy %%i ..\src\
\r