2 # Common defines for curl (djgpp/Watt-32)
4 # Assumes you've unpacked cURL with short-file names
5 # I.e use "set LFN=n" before untaring on Win9x/XP.
6 # Requires sed, yacc, rm and the usual stuff.
11 MAKEFILE = Makefile.dj
14 # OpenSSL is available from www.openssl.org and builds okay
15 # with djgpp/Watt-32. Set to 0 if you don't need https URLs
16 # (reduces curl.exe with approx 700 kB)
21 # Use zlib for contents encoding
26 # Use Watt-32 IPv6 stack (only IPv6 name resolution working at the moment)
33 # Root directory for Waterloo tcp/ip etc. Change to suite.
34 # WATT_ROOT should be set during Watt-32 install.
36 WATT32_ROOT = $(subst \,/,$(WATT_ROOT))
37 OPENSSL_ROOT = /net/openssl.098
38 ZLIB_ROOT = /djgpp/contrib/zlib.121
43 CFLAGS = -g -O2 -I. -I../include -Wall -DHAVE_CONFIG_H -DHAVE_SPNEGO
46 CFLAGS += -DUSE_SSLEAY
50 CFLAGS += -DUSE_ZLIB -I$(ZLIB_ROOT)
54 CFLAGS += -DENABLE_IPV6
58 # Generated dependencies; Due to some hacks in gcc 2.95+ and djgpp 2.03
59 # we must prevent "$(DJDIR)/bin/../include/sys/version.h" from beeing
60 # included in dependency output (or else this makefile cannot be used on
61 # another machine). We therefore use a special 'specs' file during
66 depend: $(DEPEND_PREREQ)
67 @echo Generating dependencies..
68 @copy $(MAKEFILE) Makefile.bak
69 @echo "*cpp: %(cpp_cpu) %{posix:-D_POSIX_SOURCE} -remap" > $(MM_SPECS)
70 sed -e "/^# DO NOT DELETE THIS LINE/,$$d" < Makefile.bak > $(MAKEFILE)
71 echo "# DO NOT DELETE THIS LINE" >> $(MAKEFILE)
72 $(CC) -MM -specs=$(MM_SPECS) $(CFLAGS) $(SOURCES) >> $(MAKEFILE)