Added option to use c-ares resolver lib.

This commit is contained in:
Yang Tse 2008-08-20 23:35:48 +00:00
parent 56f852a64f
commit 8ca51bc68a

View File

@ -19,11 +19,16 @@ CFLAGS = -3r -mf -d3 -hc -zff -zgf -zq -zm -zc -s -fr=con -w2 -fpi -oilrtfm -bt=
#
ZLIB_ROOT = ..\..\..\zlib-1.2.3
USE_ZLIB = 0
USE_ARES = 0
!ifeq USE_ZLIB 1
CFLAGS += -dHAVE_ZLIB_H -dHAVE_LIBZ -I$(ZLIB_ROOT)
!endif
!ifeq USE_ARES 1
CFLAGS += -dUSE_ARES -I..\ares
!endif
OBJ_BASE = WC_Win32.obj
C_ARG = $(OBJ_BASE)\wcc386.arg
LINK_ARG = $(OBJ_BASE)\dyn\wlink.arg
@ -119,6 +124,9 @@ $(LINK_ARG): $(__MAKEFILES__)
!ifeq USE_ZLIB 1
@%append $^@ library $(ZLIB_ROOT)\zlib.lib
!endif
!ifeq USE_ARES 1
@%append $^@ library ..\ares\cares.lib
!endif
$(LIB_ARG): $(__MAKEFILES__)
%create $^@