~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to build/NWGNUenvironment.inc

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Setup needed Tools and Libraries
 
3
#
 
4
 
 
5
ifeq "$(wildcard $(AP_WORK)\NWGNUcustom.ini)" "$(AP_WORK)\NWGNUcustom.ini"
 
6
include $(AP_WORK)\NWGNUcustom.ini
 
7
CUSTOM_INI = $(AP_WORK)\NWGNUcustom.ini
 
8
endif
 
9
 
 
10
ifndef VERBOSE
 
11
.SILENT:
 
12
endif
 
13
 
 
14
#
 
15
# Treat like an include
 
16
#
 
17
ifndef EnvironmentDefined
 
18
 
 
19
#
 
20
# simple macros for parsing makefiles
 
21
#
 
22
EOLIST:=
 
23
EMPTY :=
 
24
COMMA := ,
 
25
SPACE := $(EMPTY) $(EMPTY)
 
26
 
 
27
#
 
28
# Base environment
 
29
#
 
30
 
 
31
# Try and handle case issues
 
32
ifndef NOVELLLIBC
 
33
ifdef NovellLibC
 
34
NOVELLLIBC = $(NovellLibC)
 
35
endif
 
36
endif
 
37
 
 
38
ifndef NOVELLLIBC
 
39
NOVELLLIBC = C:/novell/ndk/libc
 
40
endif
 
41
 
 
42
# This is a placeholder
 
43
# ifndef LDAPSDK
 
44
# LDAPSDK = C:/novell/ndk/cldapsdk
 
45
# endif
 
46
 
 
47
# This is a placeholder
 
48
# ifndef ZLIBSDK
 
49
# ZLIBSDK = C:/novell/ndk/zlibsdk
 
50
# endif
 
51
 
 
52
ifndef METROWERKS
 
53
METROWERKS = C:\Program Files\Metrowerks\CodeWarrior
 
54
endif
 
55
 
 
56
# If LM_LICENSE_FILE isn't defined, define a variable that can be used to
 
57
# restart make with it defined
 
58
ifndef LM_LICENSE_FILE
 
59
NO_LICENSE_FILE = NO_LICENSE_FILE
 
60
endif
 
61
 
 
62
#
 
63
# Set the Release type that you want to build, possible values are:
 
64
#
 
65
#  debug                - full debug switches are set
 
66
#  noopt                - normal switches are set (default)
 
67
#  optimized    - optimization switches are set
 
68
 
 
69
ifdef reltype
 
70
RELEASE=$(reltype)
 
71
endif
 
72
 
 
73
ifdef RELTYPE
 
74
RELEASE=$(RELTYPE)
 
75
endif
 
76
 
 
77
ifdef debug
 
78
RELEASE=debug
 
79
endif
 
80
 
 
81
ifdef DEBUG
 
82
RELEASE=debug
 
83
endif
 
84
 
 
85
ifdef optimized
 
86
RELEASE=optimized
 
87
endif
 
88
 
 
89
ifdef OPTIMIZED
 
90
RELEASE=optimized
 
91
endif
 
92
 
 
93
ifndef RELEASE
 
94
RELEASE = optimized
 
95
endif
 
96
 
 
97
ifeq "$(RELEASE)" "debug"
 
98
OBJDIR = Debug.o
 
99
endif
 
100
 
 
101
ifeq "$(RELEASE)" "noopt"
 
102
OBJDIR = Noopt
 
103
endif
 
104
 
 
105
ifeq "$(RELEASE)" "optimized"
 
106
OBJDIR = Release.o
 
107
endif
 
108
 
 
109
#
 
110
# Setup compiler information
 
111
#
 
112
 
 
113
# MetroWerks NLM tools
 
114
CC              = mwccnlm
 
115
CPP             = mwccnlm
 
116
LINK    = mwldnlm
 
117
LIB             = mwldnlm -type library -w nocmdline
 
118
 
 
119
ifdef IPV6
 
120
ifndef USE_STDSOCKETS
 
121
USE_STDSOCKETS=1
 
122
endif
 
123
endif
 
124
 
 
125
NOVI    = $(NOVELLLIBC)\imports
 
126
 
 
127
INCDIRS         = $(NOVELLLIBC)\include;$(NOVELLLIBC)\include\nks;$(NOVELLLIBC)\include\winsock;
 
128
ifneq "$(LDAPSDK)" ""
 
129
INCDIRS := $(INCDIRS);$(LDAPSDK)/inc
 
130
endif
 
131
ifneq "$(ZLIBSDK)" ""
 
132
INCDIRS := $(INCDIRS);$(ZLIBSDK)
 
133
endif
 
134
 
 
135
DEFINES         = -DNETWARE 
 
136
ifndef USE_STDSOCKETS
 
137
DEFINES += -DUSE_WINSOCK
 
138
endif
 
139
ifndef DEBUG
 
140
DEFINES += -DNDEBUG
 
141
endif
 
142
 
 
143
#
 
144
# MetroWerks static Libraries
 
145
 
 
146
CLIB3S  = $(METROWERKS)\Novell Support\Metrowerks Support\Libraries\Runtime\mwcrtl.lib
 
147
MATH3S  =
 
148
PLIB3S  = $(METROWERKS)\Novell Support\Metrowerks Support\Libraries\MSL C++\MWCPP.lib
 
149
 
 
150
# Base compile flags
 
151
# and prefix or precompiled header added here.
 
152
 
 
153
# The default flags are as follows:
 
154
#
 
155
# -c                    compile only, no link
 
156
# -nosyspath            treat #include <...> like #include "..."
 
157
# -Cpp_exceptions off   disable C++ exceptions
 
158
# -RTTI off             disable C++ run-time typing information
 
159
# -align 4              align on 4 byte bounderies
 
160
# -w nocmdline          disable command-line driver/parser warnings
 
161
# -proc PII             generate code base on Pentium II instruction set
 
162
# -inst mmx             use MMX extensions (Not used)
 
163
 
 
164
CFLAGS = -c -nosyspath -Cpp_exceptions off -RTTI off -align 4 -w nocmdline -proc PII 
 
165
 
 
166
# -g                    generate debugging information
 
167
# -O0                   level 0 optimizations
 
168
 
 
169
ifeq "$(RELEASE)" "debug"
 
170
CFLAGS += -g -O0
 
171
endif
 
172
 
 
173
# -O4,p                 level 4 optimizations, optimize for speed
 
174
ifeq "$(RELEASE)" "optimized"
 
175
CFLAGS += -O4,p
 
176
endif
 
177
 
 
178
# -prefix pre_nw.h      #include pre_nw.h for all files
 
179
 
 
180
CFLAGS += -prefix pre_nw.h
 
181
 
 
182
 
 
183
PATH:=$(PATH);$(METROWERKS)\bin;$(METROWERKS)\Other Metrowerks Tools\Command Line Tools
 
184
 
 
185
#
 
186
# Declare major project deliverables output directories here
 
187
#
 
188
 
 
189
ifdef DEST
 
190
INSTALL = $(DEST)
 
191
ifeq (\, $(findstring \,$(INSTALL)))
 
192
INSTDIRS = $(DEST)
 
193
endif
 
194
endif
 
195
 
 
196
ifdef dest
 
197
INSTALL = $(dest)
 
198
ifeq (\, $(findstring \,$(INSTALL)))
 
199
INSTDIRS = $(dest)
 
200
endif
 
201
endif
 
202
 
 
203
ifndef INSTALL
 
204
INSTALL = $(AP_WORK)\Dist
 
205
INSTDIRS = $(AP_WORK)\Dist
 
206
endif
 
207
 
 
208
# Add support for building IPV6 alongside
 
209
ifneq "$(IPV6)" ""
 
210
DEFINES += -DNW_BUILD_IPV6
 
211
INCDIRS := $(NOVELLLIBC)\include\winsock\IPV6;$(INCDIRS)
 
212
 
 
213
ifneq "$(findstring IPV6,$(OBJDIR))" "IPV6"
 
214
OBJDIR := $(OBJDIR)_IPV6
 
215
endif
 
216
        
 
217
ifneq "$(findstring IPV6,$(INSTALL))" "IPV6"
 
218
INSTALL := $(INSTALL)_IPV6
 
219
endif        
 
220
 
 
221
ifneq "$(findstring IPV6,$(INSTDIRS))" "IPV6"
 
222
INSTDIRS := $(INSTDIRS)_IPV6
 
223
endif
 
224
 
 
225
endif
 
226
 
 
227
INSTDEVDIRS := \
 
228
    $(INSTDIRS) \
 
229
        $(INSTALL)\Apache2\include \
 
230
        $(INSTALL)\Apache2\lib \
 
231
 
 
232
INSTDIRS += \
 
233
        $(INSTALL)\Apache2 \
 
234
        $(INSTALL)\Apache2\bin \
 
235
        $(INSTALL)\Apache2\cgi-bin \
 
236
        $(INSTALL)\Apache2\conf \
 
237
        $(INSTALL)\Apache2\error \
 
238
        $(INSTALL)\Apache2\htdocs \
 
239
        $(INSTALL)\Apache2\icons \
 
240
        $(INSTALL)\Apache2\logs \
 
241
        $(INSTALL)\Apache2\man \
 
242
        $(INSTALL)\Apache2\manual \
 
243
        $(INSTALL)\Apache2\modules \
 
244
 
 
245
#
 
246
# Declare Command and tool macros here
 
247
#
 
248
 
 
249
# Os2LibPath is an extra check to see if we are on NT
 
250
ifdef Os2LibPath
 
251
OS = Windows_NT
 
252
endif
 
253
 
 
254
ifeq "$(OS)" "Windows_NT"
 
255
CMD=cmd /C
 
256
CHK=cmd /C if exist
 
257
CHKNOT=cmd /C if not exist
 
258
DEL = del /F
 
259
DELTREE = cmd /C rd /s/q
 
260
WINNT=1
 
261
XCOPYSW = /E
 
262
else
 
263
CMD=command /C
 
264
CHK=command /C if exist
 
265
CHKNOT=command /C if not exist
 
266
DEL = del
 
267
DELTREE = deltree /y
 
268
XCOPYSW = /E /Y
 
269
endif
 
270
 
 
271
 
 
272
#
 
273
# Setup base C compiler flags
 
274
#
 
275
 
 
276
#
 
277
# Common directories
 
278
#
 
279
 
 
280
STDMOD          = $(AP_WORK)/modules
 
281
NWOS            = $(AP_WORK)/os/netware
 
282
SERVER          = $(AP_WORK)/server
 
283
SRC             = $(AP_WORK)
 
284
APR             = $(APR_WORK)
 
285
APRUTIL         = $(APU_WORK)
 
286
APULDAP         = $(APU_WORK)/ldap
 
287
SUPMOD          = $(AP_WORK)/support
 
288
PCRE            = $(AP_WORK)/srclib/pcre
 
289
APRTEST         = $(APR_WORK)/test
 
290
HTTPD           = $(AP_WORK)/modules/http
 
291
XML             = $(APU_WORK)/xml
 
292
PREBUILD_INST   = $(AP_WORK)\nwprebuild
 
293
 
 
294
#
 
295
# Internal Libraries
 
296
#
 
297
 
 
298
APRLIB          = $(APR)/$(OBJDIR)/aprlib.lib
 
299
APRUTLIB        = $(APRUTIL)/$(OBJDIR)/aprutil.lib
 
300
APULDAPLIB      = $(APULDAP)/$(OBJDIR)/apuldap.lib
 
301
STMODLIB        = $(STDMOD)/$(OBJDIR)/stdmod.lib
 
302
PCRELIB         = $(PCRE)/$(OBJDIR)/pcre.lib
 
303
NWOSLIB         = $(NWOS)/$(OBJDIR)/netware.lib
 
304
SERVLIB         = $(SERVER)/$(OBJDIR)/server.lib
 
305
HTTPDLIB        = $(HTTPD)/$(OBJDIR)/httpd.lib
 
306
XMLLIB          = $(XML)/$(OBJDIR)/xmllib.lib
 
307
 
 
308
#
 
309
# Additional general defines
 
310
#
 
311
 
 
312
EnvironmentDefined = 1
 
313
endif # ifndef EnvironmentDefined
 
314
 
 
315
# This is always set so that it will show up in lower directories
 
316
 
 
317
ifdef Path
 
318
Path = $(PATH)
 
319
endif
 
320