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

« back to all changes in this revision

Viewing changes to modules/proxy/NWGNUproxy

  • 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
# Make sure all needed macro's are defined
 
3
#
 
4
 
 
5
#
 
6
# Get the 'head' of the build environment if necessary.  This includes default
 
7
# targets and paths to tools
 
8
#
 
9
 
 
10
ifndef EnvironmentDefined
 
11
include $(AP_WORK)\build\NWGNUhead.inc
 
12
endif
 
13
 
 
14
#
 
15
# These directories will be at the beginning of the include list, followed by
 
16
# INCDIRS
 
17
#
 
18
XINCDIRS        += \
 
19
                        $(AP_WORK)/include \
 
20
                        $(NWOS) \
 
21
                        $(AP_WORK)/modules/http \
 
22
                        $(AP_WORK)/modules/arch/netware \
 
23
                        $(AP_WORK)/modules/ssl \
 
24
                        $(AP_WORK)/modules/generators \
 
25
                        $(APR)/include \
 
26
                        $(APRUTIL)/include \
 
27
                        $(APR) \
 
28
                        $(EOLIST)
 
29
 
 
30
#
 
31
# These flags will come after CFLAGS
 
32
#
 
33
XCFLAGS         += \
 
34
                        -prefix pre_nw.h \
 
35
                        $(EOLIST)
 
36
 
 
37
#
 
38
# These defines will come after DEFINES
 
39
#
 
40
XDEFINES        += \
 
41
                        $(EOLIST)
 
42
 
 
43
#
 
44
# These flags will be added to the link.opt file
 
45
#
 
46
XLFLAGS         += \
 
47
                        $(EOLIST)
 
48
 
 
49
#
 
50
# These values will be appended to the correct variables based on the value of
 
51
# RELEASE
 
52
#
 
53
ifeq "$(RELEASE)" "debug"
 
54
XINCDIRS        += \
 
55
                        $(EOLIST)
 
56
 
 
57
XCFLAGS         += \
 
58
                        $(EOLIST)
 
59
 
 
60
XDEFINES        += \
 
61
                        $(EOLIST)
 
62
 
 
63
XLFLAGS         += \
 
64
                        $(EOLIST)
 
65
endif
 
66
 
 
67
ifeq "$(RELEASE)" "noopt"
 
68
XINCDIRS        += \
 
69
                        $(EOLIST)
 
70
 
 
71
XCFLAGS         += \
 
72
                        $(EOLIST)
 
73
 
 
74
XDEFINES        += \
 
75
                        $(EOLIST)
 
76
 
 
77
XLFLAGS         += \
 
78
                        $(EOLIST)
 
79
endif
 
80
 
 
81
ifeq "$(RELEASE)" "release"
 
82
XINCDIRS        += \
 
83
                        $(EOLIST)
 
84
 
 
85
XCFLAGS         += \
 
86
                        $(EOLIST)
 
87
 
 
88
XDEFINES        += \
 
89
                        $(EOLIST)
 
90
 
 
91
XLFLAGS         += \
 
92
                        $(EOLIST)
 
93
endif
 
94
 
 
95
#
 
96
# These are used by the link target if an NLM is being generated
 
97
# This is used by the link 'name' directive to name the nlm.  If left blank
 
98
# TARGET_nlm (see below) will be used.
 
99
#
 
100
NLM_NAME                = proxy
 
101
 
 
102
#
 
103
# This is used by the link '-desc ' directive. 
 
104
# If left blank, NLM_NAME will be used.
 
105
#
 
106
NLM_DESCRIPTION = Apache $(VERSION_STR) Proxy Module
 
107
 
 
108
#
 
109
# This is used by the '-threadname' directive.  If left blank,
 
110
# NLM_NAME Thread will be used.
 
111
#
 
112
NLM_THREAD_NAME = Proxy Module
 
113
 
 
114
#
 
115
# If this is specified, it will override VERSION value in 
 
116
# $(AP_WORK)\build\NWGNUenvironment.inc
 
117
#
 
118
NLM_VERSION             =
 
119
 
 
120
#
 
121
# If this is specified, it will override the default of 64K
 
122
#
 
123
NLM_STACK_SIZE  = 8192
 
124
 
 
125
 
 
126
#
 
127
# If this is specified it will be used by the link '-entry' directive
 
128
#
 
129
NLM_ENTRY_SYM   = _LibCPrelude
 
130
 
 
131
#
 
132
# If this is specified it will be used by the link '-exit' directive
 
133
#
 
134
NLM_EXIT_SYM    = _LibCPostlude
 
135
 
 
136
#
 
137
# If this is specified it will be used by the link '-check' directive
 
138
#
 
139
NLM_CHECK_SYM   =
 
140
 
 
141
#
 
142
# If these are specified it will be used by the link '-flags' directive
 
143
#
 
144
NLM_FLAGS               =  AUTOUNLOAD, PSEUDOPREEMPTION
 
145
 
 
146
#
 
147
# If this is specified it will be linked in with the XDCData option in the def 
 
148
# file instead of the default of $(NWOS)/apache.xdc.  XDCData can be disabled
 
149
# by setting APACHE_UNIPROC in the environment
 
150
#
 
151
XDCDATA         = 
 
152
 
 
153
#
 
154
# If there is an NLM target, put it here
 
155
#
 
156
TARGET_nlm = \
 
157
        $(OBJDIR)/proxy.nlm \
 
158
        $(EOLIST)
 
159
 
 
160
#
 
161
# If there is an LIB target, put it here
 
162
#
 
163
TARGET_lib = \
 
164
        $(EOLIST)
 
165
 
 
166
#
 
167
# These are the OBJ files needed to create the NLM target above.
 
168
# Paths must all use the '/' character
 
169
#
 
170
FILES_nlm_objs = \
 
171
        $(OBJDIR)/mod_proxy.o \
 
172
        $(OBJDIR)/proxy_util.o \
 
173
        $(OBJDIR)/libprews.o \
 
174
        $(EOLIST)
 
175
 
 
176
#
 
177
# These are the LIB files needed to create the NLM target above.
 
178
# These will be added as a library command in the link.opt file.
 
179
#
 
180
FILES_nlm_libs = \
 
181
        libcpre.o \
 
182
        $(EOLIST)
 
183
 
 
184
#
 
185
# These are the modules that the above NLM target depends on to load.
 
186
# These will be added as a module command in the link.opt file.
 
187
#
 
188
FILES_nlm_modules = \
 
189
        aprlib \
 
190
        libc \
 
191
        $(EOLIST)
 
192
 
 
193
#
 
194
# If the nlm has a msg file, put it's path here
 
195
#
 
196
FILE_nlm_msg =
 
197
 
 
198
#
 
199
# If the nlm has a hlp file put it's path here
 
200
#
 
201
FILE_nlm_hlp =
 
202
 
 
203
#
 
204
# If this is specified, it will override $(NWOS)\copyright.txt.
 
205
#
 
206
FILE_nlm_copyright =
 
207
 
 
208
#
 
209
# Any additional imports go here
 
210
#
 
211
FILES_nlm_Ximports = \
 
212
        @$(APR)/aprlib.imp \
 
213
        @$(NWOS)/httpd.imp \
 
214
        @libc.imp \
 
215
        $(EOLIST)
 
216
 
 
217
# Don't link with Winsock if standard sockets are being used
 
218
ifndef USE_STDSOCKETS
 
219
FILES_nlm_Ximports += @ws2nlm.imp \
 
220
               $(EOLIST)
 
221
endif
 
222
 
 
223
#   
 
224
# Any symbols exported to here
 
225
#
 
226
FILES_nlm_exports = \
 
227
        proxy_module \
 
228
        proxy_hook_scheme_handler \
 
229
        proxy_hook_canon_handler \
 
230
        proxy_hook_pre_request \
 
231
        proxy_hook_post_request \
 
232
        ap_proxy_ssl_enable \
 
233
        ap_proxy_ssl_disable \
 
234
        ap_proxy_conn_is_https \
 
235
        ap_proxy_ssl_val \
 
236
        proxy_run_fixups \
 
237
        $(EOLIST)
 
238
        
 
239
#   
 
240
# These are the OBJ files needed to create the LIB target above.
 
241
# Paths must all use the '/' character
 
242
#
 
243
FILES_lib_objs = \
 
244
                $(EOLIST)
 
245
 
 
246
#
 
247
# implement targets and dependancies (leave this section alone)
 
248
#
 
249
 
 
250
libs :: $(OBJDIR) $(TARGET_lib)
 
251
 
 
252
nlms :: libs $(TARGET_nlm)
 
253
 
 
254
#
 
255
# Updated this target to create necessary directories and copy files to the 
 
256
# correct place.  (See $(AP_WORK)\build\NWGNUhead.inc for examples)
 
257
#
 
258
install :: nlms FORCE
 
259
 
 
260
#
 
261
# Any specialized rules here
 
262
#
 
263
 
 
264
vpath %.c ../arch/netware
 
265
 
 
266
#
 
267
# Include the 'tail' makefile that has targets that depend on variables defined
 
268
# in this makefile
 
269
#
 
270
 
 
271
include $(AP_WORK)\build\NWGNUtail.inc
 
272