1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

enabled ares build.

This commit is contained in:
Gunter Knauf 2007-07-04 13:45:46 +00:00
parent 3760180320
commit 9f21f74fbd
2 changed files with 13 additions and 0 deletions

View File

@ -19,6 +19,8 @@ ifndef ZLIB_PATH
ZLIB_PATH = ../../zlib-1.2.3 ZLIB_PATH = ../../zlib-1.2.3
endif endif
ARES_LIB = ../ares
CC = gcc CC = gcc
AR = ar AR = ar
RM = rm -f RM = rm -f
@ -30,6 +32,11 @@ STRIP = strip -g
INCLUDES = -I. -I../include INCLUDES = -I. -I../include
CFLAGS = -g -O2 -DBUILDING_LIBCURL -DHAVE_LONGLONG 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 ifdef SSH2
INCLUDES += -I"$(LIBSSH2_PATH)/include" -I"$(LIBSSH2_PATH)/win32" INCLUDES += -I"$(LIBSSH2_PATH)/include" -I"$(LIBSSH2_PATH)/win32"
CFLAGS += -DUSE_LIBSSH2 -DHAVE_LIBSSH2_H CFLAGS += -DUSE_LIBSSH2 -DHAVE_LIBSSH2_H

View File

@ -19,6 +19,8 @@ ifndef ZLIB_PATH
ZLIB_PATH = ../../zlib-1.2.3 ZLIB_PATH = ../../zlib-1.2.3
endif endif
ARES_LIB = ../ares
CC = gcc CC = gcc
CFLAGS = -g -O2 CFLAGS = -g -O2
LDFLAGS = LDFLAGS =
@ -47,6 +49,10 @@ else
curl_LDADD = -L../lib -lcurl curl_LDADD = -L../lib -lcurl
COMPILE += -DCURL_STATICLIB COMPILE += -DCURL_STATICLIB
endif endif
ifdef ARES
CFLAGS += -DUSE_ARES
curl_LDADD += -L$(ARES_LIB) -lcares
endif
ifdef SSH2 ifdef SSH2
CFLAGS += -DUSE_LIBSSH2 -DHAVE_LIBSSH2_H CFLAGS += -DUSE_LIBSSH2 -DHAVE_LIBSSH2_H
curl_LDADD += -L$(LIBSSH2_PATH)/win32 -lssh2 curl_LDADD += -L$(LIBSSH2_PATH)/win32 -lssh2