\r
http://www.microsoft.com/en-us/download/details.aspx?id=12261\r
\r
- If you wish to support zlib, openssl, ssh2, you will have to download\r
+ If you wish to support zlib, openssl, c-ares, ssh2, you will have to download\r
them separately and copy them to the deps directory as shown below:\r
\r
somedirectory\\r
Libraries can be fetched at http://windows.php.net/downloads/php-sdk/deps/\r
Uncompress them into the deps folder.\r
WITH_SSL=<dll or static> - Enable OpenSSL support, DLL or static\r
+ WITH_CARES=<dll or static> - Enable c-ares support, DLL or static\r
WITH_ZLIB=<dll or static> - Enable zlib support, DLL or static\r
WITH_SSH2=<dll or static> - Enable libSSH2 support, DLL or static\r
ENABLE_SSPI=<yes or no> - Enable SSPI support, defaults to yes\r
!MESSAGE Libraries can be fetched at http://pecl2.php.net/downloads/php-windows-builds/\r
!MESSAGE Uncompress them into the deps folder.\r
!MESSAGE WITH_SSL=<dll or static> - Enable OpenSSL support, DLL or static\r
+!MESSAGE WITH_CARES=<dll or static> - Enable c-ares support, DLL or static\r
!MESSAGE WITH_ZLIB=<dll or static> - Enable zlib support, DLL or static\r
!MESSAGE WITH_SSH2=<dll or static> - Enable libSSH2 support, DLL or static\r
!MESSAGE ENABLE_IDN=<yes or no> - Enable use of Windows IDN APIs, defaults to yes\r
SSL = static\r
!ENDIF\r
\r
+!IF "$(WITH_CARES)"=="dll"\r
+USE_CARES = true\r
+CARES = dll\r
+!ELSEIF "$(WITH_CARES)"=="static"\r
+USE_CARES = true\r
+CARES = static\r
+!ENDIF\r
+\r
!IF "$(WITH_ZLIB)"=="dll"\r
USE_ZLIB = true\r
ZLIB = dll\r
CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-ssl-$(SSL)\r
!ENDIF\r
\r
+!IF "$(USE_CARES)"=="true"\r
+CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-cares-$(CARES)\r
+!ENDIF\r
+\r
!IF "$(USE_ZLIB)"=="true"\r
CONFIG_NAME_LIB = $(CONFIG_NAME_LIB)-zlib-$(ZLIB)\r
!ENDIF\r
SSL_CFLAGS = /DUSE_SSLEAY /I"$(DEVEL_INCLUDE)/openssl"\r
!ENDIF\r
\r
+!IF "$(WITH_CARES)"=="dll"\r
+!IF "$(DEBUG)"=="yes"\r
+CARES_LIBS = caresd.lib\r
+!ELSE\r
+CARES_LIBS = cares.lib\r
+!ENDIF\r
+USE_CARES = true\r
+CARES = dll\r
+!ELSEIF "$(WITH_CARES)"=="static"\r
+!IF "$(DEBUG)"=="yes"\r
+CARES_LIBS = libcaresd.lib\r
+!ELSE\r
+CARES_LIBS = libcares.lib\r
+!ENDIF\r
+USE_CARES = true\r
+CARES = static\r
+!ENDIF\r
+\r
+!IFDEF USE_CARES\r
+CARES_CFLAGS = /DUSE_ARES /I"$(DEVEL_INCLUDE)/cares"\r
+!ENDIF\r
\r
!IF "$(WITH_ZLIB)"=="dll"\r
ZLIB_LIBS = zlib.lib\r
LFLAGS = $(LFLAGS) $(SSL_LFLAGS) $(SSL_LIBS)\r
!ENDIF\r
\r
+!IF "$(USE_CARES)"=="true"\r
+CFLAGS = $(CFLAGS) $(CARES_CFLAGS)\r
+LFLAGS = $(LFLAGS) $(CARES_LFLAGS) $(CARES_LIBS)\r
+!ENDIF\r
+\r
!IF "$(USE_ZLIB)"=="true"\r
CFLAGS = $(CFLAGS) $(ZLIB_CFLAGS)\r
LFLAGS = $(LFLAGS) $(ZLIB_LFLAGS) $(ZLIB_LIBS)\r
\r
$(TARGET): $(LIB_OBJS) $(LIB_DIROBJ) $(DISTDIR)\r
@echo Using SSL: $(USE_SSL)\r
+ @echo Using c-ares: $(USE_CARES)\r
@echo Using SSH2: $(USE_SSH2)\r
@echo Using ZLIB: $(USE_ZLIB)\r
@echo Using IDN: $(USE_IDN)\r