~ubuntu-branches/ubuntu/lucid/curl/lucid-201010031940

« back to all changes in this revision

Viewing changes to packages/DOS/common.dj

  • Committer: Kees Cook
  • Date: 2009-12-12 04:16:02 UTC
  • mfrom: (3.3.3 squeeze)
  • Revision ID: kees@outflux.net-20091212041602-o707x164tp1f8efj
Merged with Debian testing

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# $Id: common.dj,v 1.11 2009-10-27 16:56:20 yangtse Exp $
1
2
#
2
3
# Common defines for curl (djgpp/Watt-32)
3
4
#
4
 
# Assumes you've unpacked cURL with short-file names
5
 
# I.e use "set LFN=n" before untaring on Win9x/XP.
 
5
# Assumes you've unpacked cURL with long-file names
 
6
# I.e use "set LFN=y" before untaring on Win9x/XP.
6
7
# Requires sed, yacc, rm and the usual stuff.
7
8
#
8
9
# Define TOPDIR before including this file.
13
14
OBJ_DIR = djgpp
14
15
 
15
16
#
 
17
# Find out if using a UNIX-like shell or a DOS command interpreter
 
18
#
 
19
ifneq ($(findstring COMMAND.COM,$(SHELL)),COMMAND.COM)
 
20
  ifneq ($(findstring CMD.EXE,$(SHELL)),CMD.EXE)
 
21
    ifneq ($(findstring 4DOS.COM,$(SHELL)),4DOS.COM)
 
22
      IS_UNIX_SHELL = 1
 
23
    endif
 
24
  endif
 
25
endif
 
26
 
 
27
#
 
28
# Define shell dependent commands and vars
 
29
#
 
30
ifeq ($(IS_UNIX_SHELL),1)
 
31
  COPY   = cp -f
 
32
  DELETE = rm -f
 
33
  MKDIR  = mkdir
 
34
  RMDIR  = rm -f -r
 
35
  DS     = /
 
36
else
 
37
  COPY   = copy
 
38
  DELETE = del
 
39
  MKDIR  = mkdir
 
40
  RMDIR  = rmdir
 
41
  DS     = \$(NOTHING)
 
42
endif
 
43
 
 
44
#
16
45
# OpenSSL is available from www.openssl.org and builds okay
17
46
# with djgpp/Watt-32. Set to 0 if you don't need https URLs
18
47
# (reduces curl.exe with approx 700 kB)
36
65
 
37
66
#
38
67
# Use C-Ares resolver library
39
 
# This conflicts with USE_IPV6=1
40
68
#
41
69
USE_ARES = 0
42
70
 
45
73
#
46
74
USE_DEBUG = 0
47
75
 
 
76
#
 
77
# Enable memory tracking code in libcurl/curl
 
78
#
 
79
USE_CURLDEBUG = 0
 
80
 
48
81
default: all
49
82
 
50
83
#
85
118
endif
86
119
 
87
120
ifeq ($(USE_DEBUG),1)
88
 
  CFLAGS += -DDEBUG=1 -DCURLDEBUG # -DDPRINTF_DEBUG2=1
 
121
  CFLAGS += -DDEBUG=1 -DDEBUGBUILD
 
122
endif
 
123
 
 
124
ifeq ($(USE_CURLDEBUG),1)
 
125
  CFLAGS += -DCURLDEBUG
89
126
endif
90
127
 
91
128
$(OBJ_DIR):
92
 
        mkdir $(OBJ_DIR)
 
129
        $(MKDIR) $(OBJ_DIR)
93
130
 
94
131
$(OBJ_DIR)/%.o: %.c
95
132
        $(CC) $(CFLAGS) -o $@ -c $<