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

« back to all changes in this revision

Viewing changes to srclib/apr/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
                build \
 
7
                $(APU_WORK) \
 
8
                $(EOLIST) 
 
9
 
 
10
#
 
11
# Get the 'head' of the build environment.  This includes default targets and
 
12
# paths to tools
 
13
#
 
14
 
 
15
include $(APR_WORK)\build\NWGNUhead.inc
 
16
 
 
17
#
 
18
# build this level's files
 
19
 
 
20
#
 
21
# Make sure all needed macro's are defined
 
22
#
 
23
 
 
24
#
 
25
# These directories will be at the beginning of the include list, followed by
 
26
# INCDIRS
 
27
#
 
28
XINCDIRS        += \
 
29
                        $(APR)/include \
 
30
                        $(APR)/include/arch/NetWare \
 
31
                        $(APR)/include/arch/unix \
 
32
                        $(APR)/memory/unix \
 
33
                        $(APR)/random/unix \
 
34
                        $(APRUTIL)/xml \
 
35
                        $(EOLIST)
 
36
 
 
37
#
 
38
# These flags will come after CFLAGS
 
39
#
 
40
XCFLAGS         += \
 
41
                        $(EOLIST)
 
42
 
 
43
#
 
44
# These defines will come after DEFINES
 
45
#
 
46
XDEFINES        += \
 
47
                        $(EOLIST)
 
48
 
 
49
#
 
50
# These flags will be added to the link.opt file
 
51
#
 
52
XLFLAGS         += \
 
53
                        $(EOLIST)
 
54
 
 
55
#
 
56
# These values will be appended to the correct variables based on the value of
 
57
# RELEASE
 
58
#
 
59
ifeq "$(RELEASE)" "debug"
 
60
XINCDIRS        += \
 
61
                        $(EOLIST)
 
62
 
 
63
XCFLAGS         += \
 
64
                        $(EOLIST)
 
65
 
 
66
XDEFINES        += \
 
67
                        $(EOLIST)
 
68
 
 
69
XLFLAGS         += \
 
70
                        $(EOLIST)
 
71
endif
 
72
 
 
73
ifeq "$(RELEASE)" "noopt"
 
74
XINCDIRS        += \
 
75
                        $(EOLIST)
 
76
 
 
77
XCFLAGS         += \
 
78
                        $(EOLIST)
 
79
 
 
80
XDEFINES        += \
 
81
                        $(EOLIST)
 
82
 
 
83
XLFLAGS         += \
 
84
                        $(EOLIST)
 
85
endif
 
86
 
 
87
ifeq "$(RELEASE)" "release"
 
88
XINCDIRS        += \
 
89
                        $(EOLIST)
 
90
 
 
91
XCFLAGS         += \
 
92
                        $(EOLIST)
 
93
 
 
94
XDEFINES        += \
 
95
                        $(EOLIST)
 
96
 
 
97
XLFLAGS         += \
 
98
                        $(EOLIST)
 
99
endif
 
100
 
 
101
#
 
102
# These are used by the link target if an NLM is being generated
 
103
# This is used by the link 'name' directive to name the nlm.  If left blank
 
104
# TARGET_nlm (see below) will be used.
 
105
#
 
106
NLM_NAME                = aprlib
 
107
 
 
108
#
 
109
# This is used by the link '-desc ' directive. 
 
110
# If left blank, NLM_NAME will be used.
 
111
#
 
112
NLM_DESCRIPTION = Apache Portability Runtime Library $(VERSION_STR)
 
113
 
 
114
#
 
115
# This is used by the '-threadname' directive.  If left blank,
 
116
# NLM_NAME Thread will be used.
 
117
#
 
118
NLM_THREAD_NAME = 
 
119
#
 
120
# If this is specified, it will override VERSION value in 
 
121
# $(APR_WORK)\build\NWGNUenvironment.inc
 
122
#
 
123
NLM_VERSION             =
 
124
 
 
125
#
 
126
# If this is specified, it will override the default of 64K
 
127
#
 
128
NLM_STACK_SIZE  = 
 
129
 
 
130
#
 
131
# If this is specified it will be used by the link '-entry' directive
 
132
#
 
133
NLM_ENTRY_SYM   = _LibCPrelude
 
134
 
 
135
#
 
136
# If this is specified it will be used by the link '-exit' directive
 
137
#
 
138
NLM_EXIT_SYM    = _LibCPostlude
 
139
 
 
140
#
 
141
# If this is specified it will be used by the link '-check' directive
 
142
#
 
143
NLM_CHECK_SYM   =
 
144
 
 
145
#
 
146
# If this is specified it will be used by the link '-flags' directive
 
147
#
 
148
NLM_FLAGS               = AUTOUNLOAD, PSEUDOPREEMPTION
 
149
 
 
150
#
 
151
# If this is specified it will be linked in with the XDCData option in the def 
 
152
# file instead of the default of $(APR)/misc/netware/apache.xdc.  XDCData can 
 
153
# be disabled by setting APACHE_UNIPROC in the environment
 
154
#
 
155
XDCDATA         = 
 
156
 
 
157
#
 
158
# Declare all target files (you must add your files here)
 
159
#
 
160
 
 
161
#
 
162
# If there is an NLM target, put it here
 
163
#
 
164
TARGET_nlm = \
 
165
        $(OBJDIR)/aprlib.nlm \
 
166
        $(EOLIST)
 
167
 
 
168
#
 
169
# If there is an LIB target, put it here
 
170
#
 
171
TARGET_lib = \
 
172
        $(OBJDIR)/aprlib.lib \
 
173
        $(EOLIST)
 
174
 
 
175
#
 
176
# These are the OBJ files needed to create the NLM target above.
 
177
# Paths must all use the '/' character
 
178
#
 
179
FILES_nlm_objs = \
 
180
        $(OBJDIR)/libprews.o \
 
181
        $(EOLIST)
 
182
 
 
183
#
 
184
# These are the LIB files needed to create the NLM target above.
 
185
# These will be added as a library command in the link.opt file.
 
186
#
 
187
FILES_nlm_libs = \
 
188
        libcpre.o \
 
189
        $(APRLIB) \
 
190
        $(APRUTLIB) \
 
191
        $(APULDAPLIB) \
 
192
        $(XMLLIB) \
 
193
        $(EOLIST)
 
194
 
 
195
#
 
196
# These are the modules that the above NLM target depends on to load.
 
197
# These will be added as a module command in the link.opt file.
 
198
#
 
199
FILES_nlm_modules = \
 
200
        Libc \
 
201
        $(EOLIST)
 
202
 
 
203
# Include the Winsock libraries if Winsock is being used
 
204
ifndef USE_STDSOCKETS
 
205
FILES_nlm_modules += ws2_32 \
 
206
               $(EOLIST)
 
207
endif
 
208
 
 
209
#If the LDAP support is defined then add the auto-load modules
 
210
ifneq "$(LDAPSDK)" ""
 
211
FILES_nlm_modules += \
 
212
        lldapsdk \
 
213
        lldapssl \
 
214
        $(EOLIST)
 
215
endif
 
216
 
 
217
#
 
218
# If the nlm has a msg file, put it's path here
 
219
#
 
220
FILE_nlm_msg =
 
221
 
 
222
#
 
223
# If the nlm has a hlp file put it's path here
 
224
#
 
225
FILE_nlm_hlp =
 
226
 
 
227
#
 
228
# If this is specified, it will override $(NWOS)\copyright.txt.
 
229
#
 
230
FILE_nlm_copyright =
 
231
 
 
232
#
 
233
# Any additional imports go here
 
234
#
 
235
FILES_nlm_Ximports = \
 
236
        @libc.imp \
 
237
        @netware.imp \
 
238
        $(EOLIST)
 
239
        
 
240
# Include the Winsock imports if Winsock is being used
 
241
ifndef USE_STDSOCKETS
 
242
FILES_nlm_Ximports +=  \
 
243
        @ws2nlm.imp \
 
244
        WSAStartupRTags \
 
245
        WSACleanupRTag \
 
246
        $(EOLIST)
 
247
endif
 
248
 
 
249
#If the LDAP support is defined then add the imports
 
250
ifneq "$(LDAPSDK)" ""
 
251
FILES_nlm_Ximports += \
 
252
        @$(LDAPSDK)/imports/lldapsdk.imp \
 
253
        @$(LDAPSDK)/imports/lldapssl.imp \
 
254
        $(EOLIST)
 
255
endif
 
256
 
 
257
#   
 
258
# Any symbols exported to here
 
259
#
 
260
FILES_nlm_exports = \
 
261
        @aprlib.imp     \
 
262
        $(EOLIST)
 
263
        
 
264
#   
 
265
# These are the OBJ files needed to create the LIB target above.
 
266
# Paths must all use the '/' character
 
267
#
 
268
FILES_lib_objs = \
 
269
        $(OBJDIR)/apr_atomic.o \
 
270
        $(OBJDIR)/apr_cpystrn.o \
 
271
        $(OBJDIR)/apr_fnmatch.o \
 
272
        $(OBJDIR)/apr_getpass.o \
 
273
        $(OBJDIR)/apr_hash.o \
 
274
        $(OBJDIR)/apr_pools.o \
 
275
        $(OBJDIR)/apr_random.o \
 
276
        $(OBJDIR)/apr_snprintf.o \
 
277
        $(OBJDIR)/apr_strings.o \
 
278
        $(OBJDIR)/apr_strnatcmp.o \
 
279
        $(OBJDIR)/apr_strtok.o \
 
280
        $(OBJDIR)/apr_tables.o \
 
281
        $(OBJDIR)/charset.o \
 
282
        $(OBJDIR)/copy.o \
 
283
        $(OBJDIR)/common.o \
 
284
        $(OBJDIR)/dir.o \
 
285
        $(OBJDIR)/dso.o \
 
286
        $(OBJDIR)/errorcodes.o \
 
287
        $(OBJDIR)/env.o \
 
288
        $(OBJDIR)/fileacc.o \
 
289
        $(OBJDIR)/filedup.o \
 
290
        $(OBJDIR)/filepath.o \
 
291
        $(OBJDIR)/filepath_util.o \
 
292
        $(OBJDIR)/filestat.o \
 
293
        $(OBJDIR)/filesys.o \
 
294
        $(OBJDIR)/flock.o \
 
295
        $(OBJDIR)/fullrw.o \
 
296
        $(OBJDIR)/getopt.o \
 
297
        $(OBJDIR)/groupinfo.o \
 
298
        $(OBJDIR)/inet_pton.o \
 
299
        $(OBJDIR)/inet_ntop.o \
 
300
        $(OBJDIR)/libprews.o \
 
301
        $(OBJDIR)/mktemp.o \
 
302
        $(OBJDIR)/mmap.o \
 
303
        $(OBJDIR)/multicast.o \
 
304
        $(OBJDIR)/open.o \
 
305
        $(OBJDIR)/pipe.o \
 
306
        $(OBJDIR)/otherchild.o \
 
307
        $(OBJDIR)/proc.o \
 
308
        $(OBJDIR)/procsup.o \
 
309
        $(OBJDIR)/proc_mutex.o \
 
310
        $(OBJDIR)/rand.o \
 
311
        $(OBJDIR)/readwrite.o \
 
312
        $(OBJDIR)/seek.o \
 
313
        $(OBJDIR)/select.o \
 
314
        $(OBJDIR)/sendrecv.o \
 
315
        $(OBJDIR)/sha2.o \
 
316
        $(OBJDIR)/sha2_glue.o \
 
317
        $(OBJDIR)/shm.o \
 
318
        $(OBJDIR)/signals.o \
 
319
        $(OBJDIR)/sockaddr.o \
 
320
        $(OBJDIR)/sockets.o \
 
321
        $(OBJDIR)/sockopt.o \
 
322
        $(OBJDIR)/start.o \
 
323
        $(OBJDIR)/tempdir.o \
 
324
        $(OBJDIR)/thread.o \
 
325
        $(OBJDIR)/thread_cond.o \
 
326
        $(OBJDIR)/thread_mutex.o \
 
327
        $(OBJDIR)/thread_rwlock.o \
 
328
        $(OBJDIR)/threadpriv.o \
 
329
        $(OBJDIR)/time.o \
 
330
        $(OBJDIR)/timestr.o \
 
331
        $(OBJDIR)/userinfo.o \
 
332
        $(OBJDIR)/version.o \
 
333
        $(OBJDIR)/waitio.o \
 
334
        $(EOLIST)
 
335
 
 
336
 
 
337
#
 
338
# implement targets and dependancies (leave this section alone)
 
339
#
 
340
 
 
341
libs :: $(OBJDIR) $(TARGET_lib)
 
342
 
 
343
nlms :: libs $(TARGET_nlm)
 
344
 
 
345
#
 
346
# Updated this target to create necessary directories and copy files to the 
 
347
# correct place.  (See $(APR_WORK)\build\NWGNUhead.inc for examples)
 
348
#
 
349
install :: nlms $(INSTDIRS) FORCE
 
350
        copy $(OBJDIR)\aprlib.nlm                          $(INSTALLBASE)\*.*
 
351
ifndef DEST
 
352
        -copy $(subst /,\,$(APR))\STATUS                   $(INSTALLBASE)\*.apr
 
353
        -copy $(subst /,\,$(APR))\LICENSE                  $(INSTALLBASE)\*
 
354
        -copy $(subst /,\,$(APR))\CHANGES                  $(INSTALLBASE)\*.apr
 
355
        -copy $(subst /,\,$(APRUTIL))\STATUS               $(INSTALLBASE)\*.apu
 
356
        -copy $(subst /,\,$(APRUTIL))\CHANGES              $(INSTALLBASE)\*.apu
 
357
        @echo rem copying the docs directories > xc.bat
 
358
        @echo xcopy docs $(INSTALLBASE)\docs\*.* $(XCOPYSW) >> xc.bat
 
359
        $(CMD) xc.bat
 
360
        $(DEL) xc.bat
 
361
endif   
 
362
        
 
363
$(INSTDIRS) ::
 
364
        $(CHKNOT) $@\NUL mkdir $@
 
365
 
 
366
ifndef DEST
 
367
installdev :: $(INSTDEVDIRS) FORCE
 
368
        -copy $(subst /,\,$(APR))\include\*.h               $(INSTALLBASE)\include\*.*
 
369
        -copy $(subst /,\,$(APRUTIL))\include\*.h           $(INSTALLBASE)\include\*.*
 
370
        -copy $(subst /,\,$(APR))\*.imp                     $(INSTALLBASE)\lib\*.*
 
371
        -copy $(subst /,\,$(APR))\misc\netware\*.xdc        $(INSTALLBASE)\lib\*.*
 
372
        
 
373
$(INSTDEVDIRS) ::
 
374
        $(CHKNOT) $@\NUL mkdir $@
 
375
endif   
 
376
 
 
377
#
 
378
# Any specialized rules here
 
379
#
 
380
 
 
381
vpath %.c atomic/netware:strings:tables:passwd:lib:time/unix
 
382
vpath %.c file_io/unix:locks/netware:misc/netware:misc/unix:threadproc/netware
 
383
vpath %.c poll/unix:shmem\unix:support/unix:random/unix
 
384
vpath %.c dso/netware:memory/unix:mmap/unix:user/netware
 
385
 
 
386
# Use the win32 network_io if Winsock is being used
 
387
ifdef USE_STDSOCKETS
 
388
vpath %.c network_io/unix
 
389
else
 
390
vpath %.c network_io/win32:network_io/unix
 
391
endif
 
392
 
 
393
$(OBJDIR)/%.o: file_io/netware/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
 
394
        @echo Compiling $<
 
395
        $(CC) file_io\netware\$(<F) -cwd source -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
 
396
 
 
397
#
 
398
# Include the 'tail' makefile that has targets that depend on variables defined
 
399
# in this makefile
 
400
#
 
401
 
 
402
include $(APR_WORK)\build\NWGNUtail.inc
 
403
 
 
404