]> granicus.if.org Git - curl/commitdiff
enabled ares build.
authorGunter Knauf <gk@gknw.de>
Wed, 4 Jul 2007 13:45:46 +0000 (13:45 +0000)
committerGunter Knauf <gk@gknw.de>
Wed, 4 Jul 2007 13:45:46 +0000 (13:45 +0000)
lib/Makefile.m32
src/Makefile.m32

index 76145917d929f77c9f020a25d2df0879e6a01b88..d16325456970f5439226c83287fdcc5cc704da3b 100644 (file)
@@ -19,6 +19,8 @@ ifndef ZLIB_PATH
 ZLIB_PATH = ../../zlib-1.2.3
 endif
 
+ARES_LIB = ../ares
+
 CC = gcc
 AR = ar
 RM = rm -f
@@ -30,6 +32,11 @@ STRIP = strip -g
 
 INCLUDES = -I. -I../include
 CFLAGS = -g -O2 -DBUILDING_LIBCURL -DHAVE_LONGLONG
+ifdef ARES
+  INCLUDES += -I$(ARES_LIB)
+  CFLAGS += -DUSE_ARES
+  DLL_LIBS += -L$(ARES_LIB) -lcares
+endif
 ifdef SSH2
   INCLUDES += -I"$(LIBSSH2_PATH)/include" -I"$(LIBSSH2_PATH)/win32"
   CFLAGS += -DUSE_LIBSSH2 -DHAVE_LIBSSH2_H
index ced5c7003c6c9fbab1dd74c725128b417dc9e1d5..655bda4d94030dabba073e1d78ddd5f30ae1fd04 100644 (file)
@@ -19,6 +19,8 @@ ifndef ZLIB_PATH
 ZLIB_PATH = ../../zlib-1.2.3
 endif
 
+ARES_LIB = ../ares
+
 CC = gcc
 CFLAGS = -g -O2
 LDFLAGS =
@@ -47,6 +49,10 @@ else
   curl_LDADD = -L../lib -lcurl
   COMPILE += -DCURL_STATICLIB
 endif
+ifdef ARES
+  CFLAGS += -DUSE_ARES
+  curl_LDADD += -L$(ARES_LIB) -lcares
+endif
 ifdef SSH2
   CFLAGS += -DUSE_LIBSSH2 -DHAVE_LIBSSH2_H
   curl_LDADD += -L$(LIBSSH2_PATH)/win32 -lssh2