]> icculus.org git repositories - icculus/iodoom3.git/blob - neo/curl/packages/DOS/common.dj
hello world
[icculus/iodoom3.git] / neo / curl / packages / DOS / common.dj
1 #
2 # Common defines for curl (djgpp/Watt-32)
3 #
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.
7 #
8
9 .SUFFIXES: .exe .y
10
11 MAKEFILE = Makefile.dj
12
13 #
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)
17 #
18 USE_SSL = 0
19
20 #
21 # Use zlib for contents encoding
22 #
23 USE_ZLIB = 0
24
25 #
26 # Use Watt-32 IPv6 stack (only IPv6 name resolution working at the moment)
27 #
28 USE_IPV6 = 1
29
30 default: all
31
32 #
33 # Root directory for Waterloo tcp/ip etc. Change to suite.
34 # WATT_ROOT should be set during Watt-32 install.
35 #
36 WATT32_ROOT  = $(subst \,/,$(WATT_ROOT))
37 OPENSSL_ROOT = /net/openssl.098
38 ZLIB_ROOT    = /djgpp/contrib/zlib.121
39
40 CC   = gcc
41 YACC = bison -y
42
43 CFLAGS = -g -O2 -I. -I../include -Wall -DHAVE_CONFIG_H -DHAVE_SPNEGO
44
45 ifeq ($(USE_SSL),1)
46   CFLAGS += -DUSE_SSLEAY
47 endif
48
49 ifeq ($(USE_ZLIB),1)
50   CFLAGS += -DUSE_ZLIB -I$(ZLIB_ROOT)
51 endif
52
53 ifeq ($(USE_IPV6),1)
54   CFLAGS += -DENABLE_IPV6
55 endif
56
57 #
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
62 # pre-processing.
63 #
64 MM_SPECS = ./specs.dj
65
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)
73         rm -f $(MM_SPECS)
74