summaryrefslogtreecommitdiff
path: root/packages/DOS/common.dj
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2004-12-17 12:38:06 +0000
committerGisle Vanem <gvanem@broadpark.no>2004-12-17 12:38:06 +0000
commit3590fffeae8bc34afe92be9743331417eb4b8a8a (patch)
tree8ae570b8806581bdd75fb0a4570872f43ed96c27 /packages/DOS/common.dj
parent5e2e87cc8dcdd2e49f34d4cbf464e599d71e36b5 (diff)
downloadgnurl-3590fffeae8bc34afe92be9743331417eb4b8a8a.tar.gz
gnurl-3590fffeae8bc34afe92be9743331417eb4b8a8a.tar.bz2
gnurl-3590fffeae8bc34afe92be9743331417eb4b8a8a.zip
Added option for using C-ares and libidn.
Dependencies generated from $(CSOURCES).
Diffstat (limited to 'packages/DOS/common.dj')
-rw-r--r--packages/DOS/common.dj28
1 files changed, 25 insertions, 3 deletions
diff --git a/packages/DOS/common.dj b/packages/DOS/common.dj
index d294d3039..23f33e524 100644
--- a/packages/DOS/common.dj
+++ b/packages/DOS/common.dj
@@ -24,11 +24,22 @@ USE_SSL = 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_IPV6 = 0
#
+# Use C-Ares resolver library
+# This conflicts with USE_IPV6=1
+#
+USE_ARES = 0
+
+#
# Enable debug code in libcurl/curl
#
USE_DEBUG = 0
@@ -42,11 +53,13 @@ default: all
WATT32_ROOT = $(subst \,/,$(WATT_ROOT))
OPENSSL_ROOT = /net/openssl.098
ZLIB_ROOT = /djgpp/contrib/zlib
+LIBIDN_ROOT = ../../IDN/libidn
+ARES_ROOT = ../ares
CC = gcc
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)
CFLAGS += -DUSE_SSLEAY -I$(OPENSSL_ROOT)
@@ -60,6 +73,15 @@ ifeq ($(USE_IPV6),1)
CFLAGS += -DENABLE_IPV6
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)
CFLAGS += -DDEBUG=1 -DCURLDEBUG #-DMALLOCDEBUG=1 -DDPRINTF_DEBUG2=1
endif
@@ -86,7 +108,7 @@ depend: $(DEPEND_PREREQ)
@echo "*cpp: %(cpp_cpu) %{posix:-D_POSIX_SOURCE} -remap" > $(MM_SPECS)
sed -e "/^# DO NOT DELETE THIS LINE/,$$d" < Makefile.bak > $(MAKEFILE)
echo "# DO NOT DELETE THIS LINE" >> $(MAKEFILE)
- $(CC) -MM -specs=$(MM_SPECS) $(CFLAGS) $(SOURCES) | \
- sed -e 's/^\([a-zA-Z0-9_-]*\.o:\)/'$(OBJ_DIR)'\/\1/' >> $(MAKEFILE)
+ $(CC) -MM -specs=$(MM_SPECS) $(CFLAGS) $(CSOURCES) | \
+ sed -e 's/^\([a-zA-Z0-9_-]*\.o:\)/$$(OBJ_DIR)\/\1/' >> $(MAKEFILE)
rm -f $(MM_SPECS)