~ubuntu-branches/ubuntu/warty/curl/warty

« back to all changes in this revision

Viewing changes to packages/DOS/common.dj

  • Committer: Bazaar Package Importer
  • Author(s): Domenico Andreoli
  • Date: 2004-06-04 19:09:25 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040604190925-wy048bp31320r2z6
Tags: 7.12.0.is.7.11.2-1
* Reverted to version 7.11.2 (closes: #252348).
* Disabled support for libidn (closes: #252367). This is to leave
  curl in unstable as much similar as possible to the one in testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 = 0
 
29
 
 
30
#
 
31
# Enable debug code in libcurl/curl
 
32
#
 
33
USE_DEBUG = 0
 
34
 
 
35
default: all
 
36
 
 
37
#
 
38
# Root directory for Waterloo tcp/ip etc. Change to suite.
 
39
# WATT_ROOT should be set during Watt-32 install.
 
40
#
 
41
WATT32_ROOT  = $(subst \,/,$(WATT_ROOT))
 
42
OPENSSL_ROOT = /net/openssl.098
 
43
ZLIB_ROOT    = /djgpp/contrib/zlib
 
44
 
 
45
CC   = gcc
 
46
YACC = bison -y
 
47
 
 
48
CFLAGS = -g -O2 -I. -I../include -I../lib -Wall -DHAVE_CONFIG_H
 
49
 
 
50
ifeq ($(USE_SSL),1)
 
51
  CFLAGS += -DUSE_SSLEAY
 
52
endif
 
53
 
 
54
ifeq ($(USE_ZLIB),1)
 
55
  CFLAGS += -DUSE_ZLIB -I$(ZLIB_ROOT)
 
56
endif
 
57
 
 
58
ifeq ($(USE_IPV6),1)
 
59
  CFLAGS += -DENABLE_IPV6
 
60
endif
 
61
 
 
62
ifeq ($(USE_DEBUG),1)
 
63
  CFLAGS += -DDEBUG=1 -DCURLDEBUG #-DMALLOCDEBUG=1 -DDPRINTF_DEBUG2=1
 
64
endif
 
65
 
 
66
#
 
67
# Generated dependencies; Due to some hacks in gcc 2.95+ and djgpp 2.03
 
68
# we must prevent "$(DJDIR)/bin/../include/sys/version.h" from beeing
 
69
# included in dependency output (or else this makefile cannot be used on
 
70
# another machine). We therefore use a special 'specs' file during
 
71
# pre-processing.
 
72
#
 
73
MM_SPECS = ./specs.dj
 
74
 
 
75
depend: $(DEPEND_PREREQ)
 
76
        @echo Generating dependencies..
 
77
        @copy $(MAKEFILE) Makefile.bak
 
78
        @echo "*cpp: %(cpp_cpu) %{posix:-D_POSIX_SOURCE} -remap" > $(MM_SPECS)
 
79
        sed -e "/^# DO NOT DELETE THIS LINE/,$$d" < Makefile.bak > $(MAKEFILE)
 
80
        echo "# DO NOT DELETE THIS LINE"                        >> $(MAKEFILE)
 
81
        $(CC) -MM -specs=$(MM_SPECS) $(CFLAGS) $(SOURCES)       >> $(MAKEFILE)
 
82
        rm -f $(MM_SPECS)
 
83