~ubuntu-branches/ubuntu/lucid/apache2/lucid-201005171706

« back to all changes in this revision

Viewing changes to srclib/apr-util/dbm/NWGNUdbmdb

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2009-08-04 20:04:24 UTC
  • mfrom: (14.3.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090804200424-8t635jc8zq5kjq06
Tags: 2.2.12-1ubuntu1
* Merge from debian unstable, remaining changes:
  - debian/{control,rules}: enable PIE hardening.
  - debian/{control, rules, apache2.2-common.ufw.profile}: add ufw profiles.
  - Dropped debian/patches/203_fix-ssl-timeftm-ignored.dpatch.

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
        $(EOLIST)
 
7
 
 
8
#
 
9
# Get the 'head' of the build environment.  This includes default targets and
 
10
# paths to tools
 
11
#
 
12
 
 
13
ifndef EnvironmentDefined
 
14
include $(APR_WORK)\build\NWGNUhead.inc
 
15
endif
 
16
 
 
17
#include $(APR)\build\NWGNUcustom.inc
 
18
 
 
19
#
 
20
# build this level's files
 
21
 
 
22
#
 
23
# Make sure all needed macro's are defined
 
24
#
 
25
 
 
26
# LINK_STATIC = 1
 
27
 
 
28
# for now defined here - should finally go into build/NWGNUenvironment.inc
 
29
DB_INC = $(DBSDK)/inc
 
30
DB_IMP = $(DBSDK)/imp/libdb47.imp
 
31
DB_LIB = $(DBSDK)/lib/libdb47.lib
 
32
DB_NLM = libdb47
 
33
 
 
34
#
 
35
# These directories will be at the beginning of the include list, followed by
 
36
# INCDIRS
 
37
#
 
38
XINCDIRS        += \
 
39
                        $(APR)/include/arch/netware \
 
40
                        $(APR)/include \
 
41
                        $(APRUTIL)/include \
 
42
                        $(APRUTIL)/include/private \
 
43
                        $(APR) \
 
44
                        $(DB_INC) \
 
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
                        -DAPU_DSO_MODULE_BUILD \
 
58
                        -DAPU_HAVE_DB=1 \
 
59
                        -DAPU_HAVE_DB_VERSION=4 \
 
60
                        $(EOLIST)
 
61
 
 
62
#
 
63
# These flags will be added to the link.opt file
 
64
#
 
65
XLFLAGS         += \
 
66
                        $(EOLIST)
 
67
 
 
68
ifdef LINK_STATIC
 
69
XLFLAGS         += \
 
70
                        -l $(DBSDK)/lib \
 
71
                        $(EOLIST)
 
72
endif
 
73
 
 
74
#
 
75
# These values will be appended to the correct variables based on the value of
 
76
# RELEASE
 
77
#
 
78
ifeq "$(RELEASE)" "debug"
 
79
XINCDIRS        += \
 
80
                        $(EOLIST)
 
81
 
 
82
XCFLAGS         += \
 
83
                        $(EOLIST)
 
84
 
 
85
XDEFINES        += \
 
86
                        $(EOLIST)
 
87
 
 
88
XLFLAGS         += \
 
89
                        $(EOLIST)
 
90
endif
 
91
 
 
92
ifeq "$(RELEASE)" "noopt"
 
93
XINCDIRS        += \
 
94
                        $(EOLIST)
 
95
 
 
96
XCFLAGS         += \
 
97
                        $(EOLIST)
 
98
 
 
99
XDEFINES        += \
 
100
                        $(EOLIST)
 
101
 
 
102
XLFLAGS         += \
 
103
                        $(EOLIST)
 
104
endif
 
105
 
 
106
ifeq "$(RELEASE)" "release"
 
107
XINCDIRS        += \
 
108
                        $(EOLIST)
 
109
 
 
110
XCFLAGS         += \
 
111
                        $(EOLIST)
 
112
 
 
113
XDEFINES        += \
 
114
                        $(EOLIST)
 
115
 
 
116
XLFLAGS         += \
 
117
                        $(EOLIST)
 
118
endif
 
119
 
 
120
#
 
121
# These are used by the link target if an NLM is being generated
 
122
# This is used by the link 'name' directive to name the nlm.  If left blank
 
123
# TARGET_nlm (see below) will be used.
 
124
#
 
125
NLM_NAME        = dbmdb
 
126
 
 
127
#
 
128
# This is used by the link '-desc ' directive.
 
129
# If left blank, NLM_NAME will be used.
 
130
#
 
131
NLM_DESCRIPTION = Apache Portability Runtime Library $(VERSION_STR) DBM Berkeley DB Driver Module
 
132
 
 
133
#
 
134
# This is used by the '-threadname' directive.  If left blank,
 
135
# NLM_NAME Thread will be used.
 
136
#
 
137
NLM_THREAD_NAME = dbmdb
 
138
 
 
139
#
 
140
# If this is specified, it will override VERSION value in
 
141
# $(AP_WORK)\build\NWGNUenvironment.inc
 
142
#
 
143
NLM_VERSION     =
 
144
 
 
145
#
 
146
# If this is specified, it will override the default of 64K
 
147
#
 
148
NLM_STACK_SIZE  = 8192
 
149
 
 
150
 
 
151
#
 
152
# If this is specified it will be used by the link '-entry' directive
 
153
#
 
154
NLM_ENTRY_SYM   = _LibCPrelude
 
155
 
 
156
#
 
157
# If this is specified it will be used by the link '-exit' directive
 
158
#
 
159
NLM_EXIT_SYM    = _LibCPostlude
 
160
 
 
161
#
 
162
# If this is specified it will be used by the link '-check' directive
 
163
#
 
164
NLM_CHECK_SYM   =
 
165
 
 
166
#
 
167
# If these are specified it will be used by the link '-flags' directive
 
168
#
 
169
NLM_FLAGS       = AUTOUNLOAD, PSEUDOPREEMPTION
 
170
 
 
171
#
 
172
# If this is specified it will be linked in with the XDCData option in the def
 
173
# file instead of the default of $(NWOS)/apache.xdc.  XDCData can be disabled
 
174
# by setting APACHE_UNIPROC in the environment
 
175
#
 
176
XDCDATA         =
 
177
 
 
178
#
 
179
# If there is an NLM target, put it here
 
180
#
 
181
TARGET_nlm = \
 
182
        $(OBJDIR)\$(NLM_NAME).nlm \
 
183
        $(EOLIST)
 
184
 
 
185
#
 
186
# If there is an LIB target, put it here
 
187
#
 
188
TARGET_lib = \
 
189
        $(EOLIST)
 
190
 
 
191
#
 
192
# These are the OBJ files needed to create the NLM target above.
 
193
# Paths must all use the '/' character
 
194
#
 
195
FILES_nlm_objs = \
 
196
        $(OBJDIR)/apr_dbm_berkeleydb.o \
 
197
        $(EOLIST)
 
198
 
 
199
#
 
200
# These are the LIB files needed to create the NLM target above.
 
201
# These will be added as a library command in the link.opt file.
 
202
#
 
203
FILES_nlm_libs = \
 
204
        libcpre.o \
 
205
        $(EOLIST)
 
206
 
 
207
ifeq ($(LINK_STATIC),1)
 
208
FILES_nlm_libs += \
 
209
        $(DB_LIB) \
 
210
        $(EOLIST)
 
211
endif
 
212
 
 
213
#
 
214
# These are the modules that the above NLM target depends on to load.
 
215
# These will be added as a module command in the link.opt file.
 
216
#
 
217
FILES_nlm_modules = \
 
218
        aprlib \
 
219
        libc \
 
220
        $(EOLIST)
 
221
 
 
222
ifneq ($(LINK_STATIC),1)
 
223
FILES_nlm_modules += \
 
224
        $(DB_NLM) \
 
225
        $(EOLIST)
 
226
endif
 
227
 
 
228
#
 
229
# If the nlm has a msg file, put it's path here
 
230
#
 
231
FILE_nlm_msg =
 
232
 
 
233
#
 
234
# If the nlm has a hlp file put it's path here
 
235
#
 
236
FILE_nlm_hlp =
 
237
 
 
238
#
 
239
# If this is specified, it will override $(NWOS)\copyright.txt.
 
240
#
 
241
FILE_nlm_copyright =
 
242
 
 
243
#
 
244
# Any additional imports go here
 
245
#
 
246
FILES_nlm_Ximports = \
 
247
        @$(APR)/aprlib.imp \
 
248
        @libc.imp \
 
249
        $(EOLIST)
 
250
 
 
251
ifneq ($(LINK_STATIC),1)
 
252
FILES_nlm_Ximports += \
 
253
        @$(DB_IMP) \
 
254
        $(EOLIST)
 
255
endif
 
256
 
 
257
#
 
258
# Any symbols exported to here
 
259
#
 
260
FILES_nlm_exports = \
 
261
        apr_dbm_type_db \
 
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
        $(EOLIST)
 
270
 
 
271
#
 
272
# implement targets and dependancies (leave this section alone)
 
273
#
 
274
 
 
275
libs :: $(OBJDIR) $(TARGET_lib)
 
276
 
 
277
nlms :: libs $(TARGET_nlm)
 
278
 
 
279
#
 
280
# Updated this target to create necessary directories and copy files to the
 
281
# correct place.  (See $(AP_WORK)\build\NWGNUhead.inc for examples)
 
282
#
 
283
install :: nlms FORCE
 
284
 
 
285
#
 
286
# Any specialized rules here
 
287
#
 
288
 
 
289
#
 
290
# Include the 'tail' makefile that has targets that depend on variables defined
 
291
# in this makefile
 
292
#
 
293
 
 
294
include $(APR_WORK)\build\NWGNUtail.inc
 
295
 
 
296
 
 
297