2 # Common defines for curl (djgpp/Watt-32)
4 # Assumes you've unpacked cURL with long-file names
5 # I.e use "set LFN=y" before untaring on Win9x/XP.
6 # Requires sed, yacc, rm and the usual stuff.
8 # Define TOPDIR before including this file.
12 MAKEFILE = Makefile.dj
16 # OpenSSL is available from www.openssl.org and builds okay
17 # with djgpp/Watt-32. Set to 0 if you don't need https URLs
18 # (reduces curl.exe with approx 700 kB)
23 # Use zlib for contents encoding
28 # Use libidn for international domain names
33 # Use Watt-32 IPv6 stack (only IPv6 name resolution working at the moment)
38 # Use C-Ares resolver library
43 # Enable debug code in libcurl/curl
50 # Root directory for Waterloo tcp/ip etc. Change to suite.
51 # WATT_ROOT should be set during Watt-32 install.
53 WATT32_ROOT = $(subst \,/,$(WATT_ROOT))
54 OPENSSL_ROOT = e:/net/openssl.099
55 ZLIB_ROOT = $(DJDIR)/contrib/zlib
56 LIBIDN_ROOT = $(TOPDIR)/../IDN/libidn
57 ARES_ROOT = $(TOPDIR)/ares
62 CFLAGS = -g -gcoff -O2 -I. -I$(TOPDIR)/include -I$(TOPDIR)/lib \
63 -I$(WATT32_ROOT)/inc -Wall -DHAVE_CONFIG_H
66 CFLAGS += -DUSE_SSLEAY -DUSE_OPENSSL -I$(OPENSSL_ROOT)
70 CFLAGS += -DUSE_ZLIB -I$(ZLIB_ROOT)
74 CFLAGS += -DENABLE_IPV6
78 CFLAGS += -DUSE_ARES -I$(ARES_ROOT)
82 CFLAGS += -DHAVE_LIBIDN -DHAVE_IDN_FREE_H -DHAVE_IDN_FREE -DHAVE_TLD_H \
83 -DHAVE_TLD_STRERROR -I$(LIBIDN_ROOT)/lib
87 CFLAGS += -DDEBUG=1 -DCURLDEBUG # -DDPRINTF_DEBUG2=1
94 $(CC) $(CFLAGS) -o $@ -c $<
97 depend: $(DEPEND_PREREQ) $(MAKEFILE)
98 $(CC) -MM $(CFLAGS) $(CSOURCES) | \
99 sed -e 's/^\([a-zA-Z0-9_-]*\.o:\)/$$(OBJ_DIR)\/\1/' > depend.dj