Added option for using C-ares and libidn.
Dependencies generated from $(CSOURCES).
This commit is contained in:
parent
5e2e87cc8d
commit
3590fffeae
@ -23,11 +23,22 @@ USE_SSL = 0
|
|||||||
#
|
#
|
||||||
USE_ZLIB = 0
|
USE_ZLIB = 0
|
||||||
|
|
||||||
|
#
|
||||||
|
# Use libidn for international domain names
|
||||||
|
#
|
||||||
|
USE_IDNA = 0
|
||||||
|
|
||||||
#
|
#
|
||||||
# Use Watt-32 IPv6 stack (only IPv6 name resolution working at the moment)
|
# Use Watt-32 IPv6 stack (only IPv6 name resolution working at the moment)
|
||||||
#
|
#
|
||||||
USE_IPV6 = 0
|
USE_IPV6 = 0
|
||||||
|
|
||||||
|
#
|
||||||
|
# Use C-Ares resolver library
|
||||||
|
# This conflicts with USE_IPV6=1
|
||||||
|
#
|
||||||
|
USE_ARES = 0
|
||||||
|
|
||||||
#
|
#
|
||||||
# Enable debug code in libcurl/curl
|
# Enable debug code in libcurl/curl
|
||||||
#
|
#
|
||||||
@ -42,11 +53,13 @@ default: all
|
|||||||
WATT32_ROOT = $(subst \,/,$(WATT_ROOT))
|
WATT32_ROOT = $(subst \,/,$(WATT_ROOT))
|
||||||
OPENSSL_ROOT = /net/openssl.098
|
OPENSSL_ROOT = /net/openssl.098
|
||||||
ZLIB_ROOT = /djgpp/contrib/zlib
|
ZLIB_ROOT = /djgpp/contrib/zlib
|
||||||
|
LIBIDN_ROOT = ../../IDN/libidn
|
||||||
|
ARES_ROOT = ../ares
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
YACC = bison -y
|
YACC = bison -y
|
||||||
|
|
||||||
CFLAGS = -g -O2 -I. -I../include -I../lib -Wall -DHAVE_CONFIG_H
|
CFLAGS = -g -O2 -I. -I../include -I../lib -I$(WATT32_ROOT)/inc -Wall -DHAVE_CONFIG_H
|
||||||
|
|
||||||
ifeq ($(USE_SSL),1)
|
ifeq ($(USE_SSL),1)
|
||||||
CFLAGS += -DUSE_SSLEAY -I$(OPENSSL_ROOT)
|
CFLAGS += -DUSE_SSLEAY -I$(OPENSSL_ROOT)
|
||||||
@ -60,6 +73,15 @@ ifeq ($(USE_IPV6),1)
|
|||||||
CFLAGS += -DENABLE_IPV6
|
CFLAGS += -DENABLE_IPV6
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(USE_ARES),1)
|
||||||
|
CFLAGS += -DUSE_ARES -I$(ARES_ROOT)
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(USE_IDNA),1)
|
||||||
|
CFLAGS += -DHAVE_LIBIDN -DHAVE_IDN_FREE_H -DHAVE_IDN_FREE -DHAVE_TLD_H \
|
||||||
|
-DHAVE_TLD_STRERROR -I$(LIBIDN_ROOT)/lib
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(USE_DEBUG),1)
|
ifeq ($(USE_DEBUG),1)
|
||||||
CFLAGS += -DDEBUG=1 -DCURLDEBUG #-DMALLOCDEBUG=1 -DDPRINTF_DEBUG2=1
|
CFLAGS += -DDEBUG=1 -DCURLDEBUG #-DMALLOCDEBUG=1 -DDPRINTF_DEBUG2=1
|
||||||
endif
|
endif
|
||||||
@ -86,7 +108,7 @@ depend: $(DEPEND_PREREQ)
|
|||||||
@echo "*cpp: %(cpp_cpu) %{posix:-D_POSIX_SOURCE} -remap" > $(MM_SPECS)
|
@echo "*cpp: %(cpp_cpu) %{posix:-D_POSIX_SOURCE} -remap" > $(MM_SPECS)
|
||||||
sed -e "/^# DO NOT DELETE THIS LINE/,$$d" < Makefile.bak > $(MAKEFILE)
|
sed -e "/^# DO NOT DELETE THIS LINE/,$$d" < Makefile.bak > $(MAKEFILE)
|
||||||
echo "# DO NOT DELETE THIS LINE" >> $(MAKEFILE)
|
echo "# DO NOT DELETE THIS LINE" >> $(MAKEFILE)
|
||||||
$(CC) -MM -specs=$(MM_SPECS) $(CFLAGS) $(SOURCES) | \
|
$(CC) -MM -specs=$(MM_SPECS) $(CFLAGS) $(CSOURCES) | \
|
||||||
sed -e 's/^\([a-zA-Z0-9_-]*\.o:\)/'$(OBJ_DIR)'\/\1/' >> $(MAKEFILE)
|
sed -e 's/^\([a-zA-Z0-9_-]*\.o:\)/$$(OBJ_DIR)\/\1/' >> $(MAKEFILE)
|
||||||
rm -f $(MM_SPECS)
|
rm -f $(MM_SPECS)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user