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

« back to all changes in this revision

Viewing changes to NWGNUmakefile

  • 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
# Declare the sub-directories to be built here
 
3
#
 
4
 
 
5
SUBDIRS = \
 
6
        $(APR_WORK) \
 
7
        build \
 
8
        support \
 
9
        modules \
 
10
        $(EOLIST) 
 
11
 
 
12
#
 
13
# Get the 'head' of the build environment.  This includes default targets and
 
14
# paths to tools
 
15
#
 
16
 
 
17
include $(AP_WORK)\build\NWGNUhead.inc
 
18
 
 
19
#
 
20
# build this level's files
 
21
 
 
22
#
 
23
# Make sure all needed macro's are defined
 
24
#
 
25
 
 
26
#
 
27
# These directories will be at the beginning of the include list, followed by
 
28
# INCDIRS
 
29
#
 
30
XINCDIRS        += \
 
31
                        $(APR)/include \
 
32
                        $(APRUTIL)/include \
 
33
                        $(AP_WORK)/include \
 
34
                        $(AP_WORK)/modules/filters/ \
 
35
                        $(AP_WORK)/modules/generators/ \
 
36
                        $(AP_WORK)/modules/http/ \
 
37
                        $(AP_WORK)/modules/loggers/ \
 
38
                        $(AP_WORK)/modules/mappers/ \
 
39
                        $(AP_WORK)/modules/proxy/ \
 
40
                        $(AP_WORK)/os/NetWare \
 
41
                        $(AP_WORK)/server/mpm/NetWare \
 
42
                        $(AP_WORK)/srclib/pcre \
 
43
                        $(NWOS) \
 
44
                        $(AP_WORK)/modules/ssl \
 
45
                        $(EOLIST)
 
46
 
 
47
#
 
48
# These flags will come after CFLAGS
 
49
#
 
50
XCFLAGS         += \
 
51
                        $(EOLIST)
 
52
 
 
53
#
 
54
# These defines will come after DEFINES
 
55
#
 
56
XDEFINES        += \
 
57
                        $(EOLIST)
 
58
 
 
59
#
 
60
# These flags will be added to the link.opt file
 
61
#
 
62
XLFLAGS         += \
 
63
                        $(EOLIST)
 
64
 
 
65
#
 
66
# These values will be appended to the correct variables based on the value of
 
67
# RELEASE
 
68
#
 
69
ifeq "$(RELEASE)" "debug"
 
70
XINCDIRS        += \
 
71
                        $(EOLIST)
 
72
 
 
73
XCFLAGS         += \
 
74
                        $(EOLIST)
 
75
 
 
76
XDEFINES        += \
 
77
                        $(EOLIST)
 
78
 
 
79
XLFLAGS         += \
 
80
                        $(EOLIST)
 
81
endif
 
82
 
 
83
ifeq "$(RELEASE)" "noopt"
 
84
XINCDIRS        += \
 
85
                        $(EOLIST)
 
86
 
 
87
XCFLAGS         += \
 
88
                        $(EOLIST)
 
89
 
 
90
XDEFINES        += \
 
91
                        $(EOLIST)
 
92
 
 
93
XLFLAGS         += \
 
94
                        $(EOLIST)
 
95
endif
 
96
 
 
97
ifeq "$(RELEASE)" "release"
 
98
XINCDIRS        += \
 
99
                        $(EOLIST)
 
100
 
 
101
XCFLAGS         += \
 
102
                        $(EOLIST)
 
103
 
 
104
XDEFINES        += \
 
105
                        $(EOLIST)
 
106
 
 
107
XLFLAGS         += \
 
108
                        $(EOLIST)
 
109
endif
 
110
 
 
111
#
 
112
# These are used by the link target if an NLM is being generated
 
113
# This is used by the link 'name' directive to name the nlm.  If left blank
 
114
# TARGET_nlm (see below) will be used.
 
115
#
 
116
NLM_NAME                = Apache2
 
117
 
 
118
#
 
119
# This is used by the link '-desc ' directive. 
 
120
# If left blank, NLM_NAME will be used.
 
121
#
 
122
ifdef USE_STDSOCKETS
 
123
VERSION_SKT = (BSDSOCK)
 
124
else
 
125
VERSION_SKT = (WINSOCK)
 
126
endif
 
127
NLM_DESCRIPTION = Apache Web Server $(VERSION_STR) $(VERSION_SKT)
 
128
 
 
129
#
 
130
# This is used by the '-threadname' directive.  If left blank,
 
131
# NLM_NAME Thread will be used.
 
132
#
 
133
NLM_THREAD_NAME = Apache
 
134
 
 
135
#
 
136
# This is used by the '-screenname' directive.  If left blank,
 
137
# 'Apache for NetWare' Thread will be used.
 
138
#
 
139
NLM_SCREEN_NAME = Apache $(VERSION_STR) for NetWare
 
140
 
 
141
 
 
142
#
 
143
# If this is specified, it will override VERSION value in 
 
144
# $(AP_WORK)\build\NWGNUenvironment.inc
 
145
#
 
146
NLM_VERSION             =
 
147
 
 
148
#
 
149
# If this is specified, it will override the default of 64K
 
150
#
 
151
NLM_STACK_SIZE  = 65536
 
152
 
 
153
 
 
154
#
 
155
# If this is specified it will be used by the link '-entry' directive
 
156
#
 
157
NLM_ENTRY_SYM   = _LibCPrelude
 
158
 
 
159
#
 
160
# If this is specified it will be used by the link '-exit' directive
 
161
#
 
162
NLM_EXIT_SYM    = _LibCPostlude
 
163
 
 
164
#
 
165
# If this is specified it will be used by the link '-check' directive
 
166
#
 
167
NLM_CHECK_SYM   = _LibCCheckUnload
 
168
 
 
169
#
 
170
# If these are specified it will be used by the link '-flags' directive
 
171
#
 
172
NLM_FLAGS               =  PSEUDOPREEMPTION
 
173
 
 
174
#
 
175
# If this is specified it will be linked in with the XDCData option in the def 
 
176
# file instead of the default of $(NWOS)/apache.xdc.  XDCData can be disabled
 
177
# by setting APACHE_UNIPROC in the environment
 
178
#
 
179
XDCDATA         = 
 
180
 
 
181
#
 
182
# If there is an NLM target, put it here
 
183
#
 
184
TARGET_nlm = \
 
185
        $(OBJDIR)/Apache2.nlm \
 
186
        $(EOLIST)
 
187
 
 
188
#
 
189
# If there is an LIB target, put it here
 
190
#
 
191
TARGET_lib = \
 
192
        $(EOLIST)
 
193
 
 
194
#
 
195
# These are the OBJ files needed to create the NLM target above.
 
196
# Paths must all use the '/' character
 
197
#
 
198
FILES_nlm_objs = \
 
199
        $(OBJDIR)/buildmark.o \
 
200
        $(OBJDIR)/config.o \
 
201
        $(OBJDIR)/connection.o \
 
202
        $(OBJDIR)/core.o \
 
203
        $(OBJDIR)/core_filters.o \
 
204
        $(OBJDIR)/eoc_bucket.o \
 
205
        $(OBJDIR)/error_bucket.o \
 
206
        $(OBJDIR)/http_core.o \
 
207
        $(OBJDIR)/http_protocol.o \
 
208
        $(OBJDIR)/http_request.o \
 
209
        $(OBJDIR)/byterange_filter.o \
 
210
        $(OBJDIR)/chunk_filter.o \
 
211
        $(OBJDIR)/http_etag.o \
 
212
        $(OBJDIR)/http_filters.o \
 
213
        $(OBJDIR)/listen.o \
 
214
        $(OBJDIR)/log.o \
 
215
        $(OBJDIR)/main.o \
 
216
        $(OBJDIR)/mod_authz_host.o \
 
217
        $(OBJDIR)/mod_alias.o \
 
218
        $(OBJDIR)/mod_dir.o \
 
219
        $(OBJDIR)/mod_env.o \
 
220
        $(OBJDIR)/mod_include.o \
 
221
        $(OBJDIR)/mod_log_config.o \
 
222
        $(OBJDIR)/mod_mime.o \
 
223
        $(OBJDIR)/mod_negotiation.o \
 
224
        $(OBJDIR)/mod_netware.o \
 
225
        $(OBJDIR)/mod_setenvif.o \
 
226
        $(OBJDIR)/mod_so.o \
 
227
        $(OBJDIR)/modules.o \
 
228
        $(OBJDIR)/mpm_common.o \
 
229
        $(OBJDIR)/mpm_netware.o \
 
230
        $(OBJDIR)/pcre.o \
 
231
        $(OBJDIR)/protocol.o \
 
232
        $(OBJDIR)/provider.o \
 
233
        $(OBJDIR)/request.o \
 
234
        $(OBJDIR)/scoreboard.o \
 
235
        $(OBJDIR)/util.o \
 
236
        $(OBJDIR)/util_cfgtree.o \
 
237
        $(OBJDIR)/util_charset.o \
 
238
        $(OBJDIR)/util_debug.o \
 
239
        $(OBJDIR)/util_filter.o \
 
240
        $(OBJDIR)/util_md5.o \
 
241
        $(OBJDIR)/util_nw.o \
 
242
        $(OBJDIR)/util_pcre.o \
 
243
        $(OBJDIR)/util_script.o \
 
244
        $(OBJDIR)/util_time.o \
 
245
        $(OBJDIR)/util_xml.o \
 
246
        $(OBJDIR)/vhost.o \
 
247
        $(EOLIST)
 
248
 
 
249
# Build in mod_nw_ssl if Winsock is being used
 
250
ifndef USE_STDSOCKETS
 
251
FILES_nlm_objs += $(OBJDIR)/mod_nw_ssl.o \
 
252
               $(EOLIST)
 
253
endif
 
254
 
 
255
#
 
256
# These are the LIB files needed to create the NLM target above.
 
257
# These will be added as a library command in the link.opt file.
 
258
#
 
259
FILES_nlm_libs = \
 
260
        libcpre.o \
 
261
        $(EOLIST)
 
262
 
 
263
#
 
264
# These are the modules that the above NLM target depends on to load.
 
265
# These will be added as a module command in the link.opt file.
 
266
#
 
267
FILES_nlm_modules = \
 
268
        aprlib \
 
269
        Libc \
 
270
        $(EOLIST)
 
271
 
 
272
#
 
273
# If the nlm has a msg file, put it's path here
 
274
#
 
275
FILE_nlm_msg =
 
276
 
 
277
#
 
278
# If the nlm has a hlp file put it's path here
 
279
#
 
280
FILE_nlm_hlp =
 
281
 
 
282
#
 
283
# If this is specified, it will override $(NWOS)\copyright.txt.
 
284
#
 
285
FILE_nlm_copyright =
 
286
 
 
287
#
 
288
# Any additional imports go here
 
289
#
 
290
FILES_nlm_Ximports = \
 
291
        @netware.imp \
 
292
        @$(APR)/aprlib.imp \
 
293
        @libc.imp \
 
294
        GetCurrentAddressSpace \
 
295
        $(EOLIST)
 
296
 
 
297
# Don't link with Winsock if standard sockets are being used
 
298
ifndef USE_STDSOCKETS
 
299
FILES_nlm_Ximports += @ws2nlm.imp \
 
300
               $(EOLIST)
 
301
endif
 
302
 
 
303
#   
 
304
# Any symbols exported to here
 
305
#
 
306
FILES_nlm_exports = \
 
307
        @$(NWOS)/httpd.imp \
 
308
        $(EOLIST)
 
309
        
 
310
#   
 
311
# These are the OBJ files needed to create the LIB target above.
 
312
# Paths must all use the '/' character
 
313
#
 
314
FILES_lib_objs = \
 
315
                $(EOLIST)
 
316
 
 
317
#
 
318
# implement targets and dependancies (leave this section alone)
 
319
#
 
320
 
 
321
libs :: $(OBJDIR) $(TARGET_lib)
 
322
 
 
323
nlms :: libs $(TARGET_nlm)
 
324
 
 
325
#
 
326
# Updated this target to create necessary directories and copy files to the 
 
327
# correct place.  (See $(AP_WORK)\build\NWGNUhead.inc for examples)
 
328
#
 
329
install :: nlms FORCE
 
330
        -copy $(OBJDIR)\Apache2.nlm     $(INSTALL)\Apache2\*.*
 
331
        -copy ABOUT_APACHE              $(INSTALL)\Apache2\*.*
 
332
        -copy README                    $(INSTALL)\Apache2\*.*
 
333
        -copy STATUS                    $(INSTALL)\Apache2\*.*
 
334
        -copy LICENSE                   $(INSTALL)\Apache2\*.*
 
335
        -copy CHANGES                   $(INSTALL)\Apache2\*.*
 
336
        -copy support\dbmmanage.in      $(INSTALL)\Apache2\bin\dbmmanage.pl
 
337
        -copy support\logresolve.pl.in  $(INSTALL)\Apache2\bin\logresolve.pl
 
338
ifdef USE_STDSOCKETS    
 
339
        -awk  -f build\mkconfnw.awk docs\conf\httpd.conf.in >$(INSTALL)\Apache2\conf\httpd.conf
 
340
else
 
341
        -awk  -v SSL=1 -f build\mkconfnw.awk docs\conf\httpd.conf.in >$(INSTALL)\Apache2\conf\httpd.conf
 
342
endif   
 
343
        $(CHKNOT) $(INSTALL)\Apache2\conf\extra\nul mkdir $(INSTALL)\Apache2\conf\extra
 
344
        -awk  -f build\mkconfnw.awk docs\conf\extra\httpd-autoindex.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-autoindex.conf
 
345
        -awk  -f build\mkconfnw.awk docs\conf\extra\httpd-dav.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-dav.conf
 
346
        -awk  -f build\mkconfnw.awk docs\conf\extra\httpd-default.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-default.conf
 
347
        -awk  -f build\mkconfnw.awk docs\conf\extra\httpd-info.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-info.conf
 
348
        -awk  -f build\mkconfnw.awk docs\conf\extra\httpd-languages.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-languages.conf
 
349
        -awk  -f build\mkconfnw.awk docs\conf\extra\httpd-manual.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-manual.conf
 
350
        -awk  -f build\mkconfnw.awk docs\conf\extra\httpd-mpm.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-mpm.conf
 
351
        -awk  -f build\mkconfnw.awk docs\conf\extra\httpd-multilang-errordoc.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-multilang-errordoc.conf
 
352
        -awk  -f build\mkconfnw.awk docs\conf\extra\httpd-ssl.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-ssl.conf
 
353
        -awk  -f build\mkconfnw.awk docs\conf\extra\httpd-userdir.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-userdir.conf
 
354
        -awk  -f build\mkconfnw.awk docs\conf\extra\httpd-vhosts.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-vhosts.conf
 
355
        -copy docs\conf\magic           $(INSTALL)\Apache2\conf\magic
 
356
        -copy docs\conf\mime.types      $(INSTALL)\Apache2\conf\mime.types
 
357
        -copy docs\conf\charset.conv    $(INSTALL)\Apache2\conf\charset.conv
 
358
        -copy docs\cgi-examples\printenv $(INSTALL)\Apache2\cgi-bin\printenv.pl
 
359
        @echo rem copying the docs directories > xc.bat
 
360
        @echo xcopy docs\error $(INSTALL)\Apache2\error $(XCOPYSW) >> xc.bat
 
361
        @echo xcopy docs\docroot $(INSTALL)\Apache2\htdocs $(XCOPYSW) >> xc.bat
 
362
        @echo xcopy docs\icons $(INSTALL)\Apache2\icons $(XCOPYSW) >> xc.bat
 
363
        @echo xcopy docs\man $(INSTALL)\Apache2\man $(XCOPYSW) >> xc.bat
 
364
        @echo xcopy docs\manual $(INSTALL)\Apache2\manual $(XCOPYSW) >> xc.bat
 
365
        $(CMD) xc.bat
 
366
        $(DEL) xc.bat
 
367
 
 
368
 
 
369
    
 
370
installdev :: FORCE
 
371
        -copy $(subst /,\,$(AP_WORK))\include\*.h           $(INSTALL)\Apache2\include\*.*
 
372
        -copy $(subst /,\,$(AP_WORK))\os\netware\*.h        $(INSTALL)\Apache2\include\*.*
 
373
        -copy $(subst /,\,$(NWOS))\*.imp                    $(INSTALL)\Apache2\lib\*.*
 
374
        -copy $(subst /,\,$(APR))\include\*.h               $(INSTALL)\Apache2\include\*.*
 
375
        -copy $(subst /,\,$(APRUTIL))\include\*.h           $(INSTALL)\Apache2\include\*.*
 
376
        -copy $(subst /,\,$(APR))\*.imp                     $(INSTALL)\Apache2\lib\*.*
 
377
        -copy $(subst /,\,$(NWOS))\*.xdc                    $(INSTALL)\Apache2\lib\*.*
 
378
    
 
379
prebuild :: FORCE
 
380
        $(MAKE) -C server -f NWGNUMakefile
 
381
        $(MAKE) -C srclib/pcre -f NWGNUMakefile
 
382
        $(CHKNOT) $(PREBUILD_INST)\nul          mkdir $(PREBUILD_INST)
 
383
        -copy $(AP_WORK)\server\$(OBJDIR)\*.nlm $(PREBUILD_INST)\*.*
 
384
        -copy $(AP_WORK)\srclib\pcre\$(basename $(OBJDIR))\*.nlm $(PREBUILD_INST)\*.*
 
385
 
 
386
 
 
387
#
 
388
# Any specialized rules here
 
389
#
 
390
 
 
391
vpath %.c server:modules/arch/netware:modules/http:modules/aaa:modules/mappers
 
392
vpath %.c modules/generators:modules/metadata:modules/filters:modules/loggers
 
393
vpath %.c os/netware:server/mpm/netware:srclib/pcre
 
394
 
 
395
#
 
396
# Include the 'tail' makefile that has targets that depend on variables defined
 
397
# in this makefile
 
398
#
 
399
 
 
400
include $(AP_WORK)\build\NWGNUtail.inc
 
401