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

« back to all changes in this revision

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