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 GEN_PDB=<yes or no> - Generate Program Database (debug symbols release build)
\r
31 !MESSAGE DEBUG=<yes or no> - Debug builds
\r
32 !ERROR please choose a valid mode
\r
36 !INCLUDE "../lib/Makefile.inc"
\r
37 LIBCURL_OBJS=$(CSOURCES:.c=.obj)
\r
40 !INCLUDE "../src/Makefile.inc"
\r
42 # hugehelp has a special rule
\r
43 CURL_OBJS=$(CURL_CFILES:hugehelp.c=)
\r
45 CURL_OBJS=$(CURL_OBJS:.c=.obj)
\r
54 !ELSEIF "$(ENABLE_IPV6)"=="yes"
\r
56 !ELSEIF "$(ENABLE_IPV6)"=="no"
\r
62 !ELSEIF "$(ENABLE_IDN)"=="yes"
\r
64 !ELSEIF "$(ENABLE_IDN)"=="no"
\r
68 CONFIG_NAME_LIB = libcurl
\r
70 !IF "$(WITH_SSL)"=="dll"
\r
73 !ELSEIF "$(WITH_SSL)"=="static"
\r
76 !ELSEIF "$(WITH_SSL)"=="schannel"
\r
82 !IF "$(WITH_ZLIB)"=="dll"
\r
85 !ELSEIF "$(WITH_ZLIB)"=="static"
\r
90 !IF "$(WITH_SSH2)"=="dll"
\r
93 !ELSEIF "$(WITH_SSH2)"=="static"
\r
98 !IF "$(DEBUG)"=="yes"
\r
99 CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-debug
\r
101 CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-release
\r
104 !IF "$(AS_DLL)" == "true"
\r
105 CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-dll
\r
107 CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-static
\r
110 !IF "$(USE_SSL)"=="true"
\r
111 CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-ssl-$(SSL)
\r
114 !IF "$(USE_ZLIB)"=="true"
\r
115 CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-zlib-$(ZLIB)
\r
118 !IF "$(USE_SSH2)"=="true"
\r
119 CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-ssh2-$(SSH2)
\r
122 !IF "$(USE_IPV6)"=="true"
\r
123 CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-ipv6
\r
126 !IF "$(USE_SSPI)"=="true"
\r
127 CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-sspi
\r
130 !MESSAGE configuration name: $(CONFIG_NAME_LIB)
\r
132 BUILD_DIR=../builds/$(CONFIG_NAME_LIB)
\r
133 LIBCURL_DIROBJ = ..\builds\$(CONFIG_NAME_LIB)-obj-lib
\r
134 CURL_DIROBJ = ..\builds\$(CONFIG_NAME_LIB)-obj-curl
\r
135 DIRDIST = ..\builds\$(CONFIG_NAME_LIB)\
\r
138 @SET LIBCURL_DIROBJ=$(LIBCURL_DIROBJ)
\r
139 @SET MACRO_NAME=LIBCURL_OBJS
\r
140 @SET OUTFILE=LIBCURL_OBJS.inc
\r
141 @gen_resp_file.bat $(LIBCURL_OBJS)
\r
142 @SET LIBCURL_DIROBJ=$(CURL_DIROBJ)
\r
143 @SET MACRO_NAME=CURL_OBJS
\r
144 @SET OUTFILE=CURL_OBJS.inc
\r
145 @gen_resp_file.bat $(CURL_OBJS)
\r
146 @SET USE_IPV6=$(USE_IPV6)
\r
147 @SET USE_IDN=$(USE_IDN)
\r
148 @$(MAKE) /NOLOGO /F MakefileBuild.vc
\r
152 FOR %%i IN ($(CURLX_ONES:/=\)) DO copy %%i ..\src\
\r