diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-08-05 14:40:59 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-08-05 14:40:59 +0000 |
commit | b73612392d7afbf9835a119446e2a58e72384b00 (patch) | |
tree | ec582f5818cdc30837afe560830b895618a6694d /lib/Makefile.am | |
parent | f85935f0f964f1475e522914c3f665508349e5ed (diff) |
ares awareness/usage/support added. If configure --enable-ares is used, we
build libcurl to use ares for asynch name resolves.
Diffstat (limited to 'lib/Makefile.am')
-rw-r--r-- | lib/Makefile.am | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am index 421b4fecb..ffa6be2b1 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -12,10 +12,16 @@ EXTRA_DIST = getdate.y Makefile.b32 Makefile.b32.resp Makefile.m32 \ lib_LTLIBRARIES = libcurl.la +if ARES +ARESINC = -I$(top_srcdir)/ares +endif + # we use srcdir/include for the static global include files # we use builddir/lib for the generated lib/config.h file to get found # we use srcdir/lib for the lib-private header files -INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/lib -I$(top_srcdir)/lib +INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/lib -I$(top_srcdir)/lib $(ARESINC) + +LDFLAGS = -L$(top_srcdir)/lib VERSION=-version-info 2:2:0 @@ -48,15 +54,18 @@ VERSION=-version-info 2:2:0 # if NO_UNDEFINED -# The -no-undefined flag is CRUCIAL for this to build fine on Cygwin. If we -# find a case in which we need to remove this flag, we should most likely -# write a configure check that detects when this flag is needed and when its -# not. -libcurl_la_LDFLAGS = -no-undefined $(VERSION) +# The -no-undefined flag is CRUCIAL for this to build fine on Cygwin. +UNDEF = -no-undefined else -libcurl_la_LDFLAGS = $(VERSION) +UNDEF = endif +if ARES +ARESLIB = -lares -L$(top_builddir)/ares +endif + +libcurl_la_LDFLAGS = $(UNDEF) $(VERSION) $(ARESLIB) + libcurl_la_SOURCES = arpa_telnet.h file.c getpass.h netrc.h timeval.c \ base64.c file.h hostip.c progress.c timeval.h base64.h formdata.c \ hostip.h progress.h cookie.c formdata.h http.c sendf.c cookie.h ftp.c \ |