2
# Declare the sub-directories to be built here
9
# Get the 'head' of the build environment. This includes default targets and
13
ifndef EnvironmentDefined
14
include $(APR_WORK)\build\NWGNUhead.inc
17
#include $(APR)\build\NWGNUcustom.inc
20
# build this level's files
23
# Make sure all needed macro's are defined
28
# for now defined here - should finally go into build/NWGNUenvironment.inc
30
DB_IMP = $(DBSDK)/imp/libdb47.imp
31
DB_LIB = $(DBSDK)/lib/libdb47.lib
35
# These directories will be at the beginning of the include list, followed by
39
$(APR)/include/arch/netware \
42
$(APRUTIL)/include/private \
48
# These flags will come after CFLAGS
54
# These defines will come after DEFINES
57
-DAPU_DSO_MODULE_BUILD \
59
-DAPU_HAVE_DB_VERSION=4 \
63
# These flags will be added to the link.opt file
75
# These values will be appended to the correct variables based on the value of
78
ifeq "$(RELEASE)" "debug"
92
ifeq "$(RELEASE)" "noopt"
106
ifeq "$(RELEASE)" "release"
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.
128
# This is used by the link '-desc ' directive.
129
# If left blank, NLM_NAME will be used.
131
NLM_DESCRIPTION = Apache Portability Runtime Library $(VERSION_STR) DBM Berkeley DB Driver Module
134
# This is used by the '-threadname' directive. If left blank,
135
# NLM_NAME Thread will be used.
137
NLM_THREAD_NAME = dbmdb
140
# If this is specified, it will override VERSION value in
141
# $(AP_WORK)\build\NWGNUenvironment.inc
146
# If this is specified, it will override the default of 64K
148
NLM_STACK_SIZE = 8192
152
# If this is specified it will be used by the link '-entry' directive
154
NLM_ENTRY_SYM = _LibCPrelude
157
# If this is specified it will be used by the link '-exit' directive
159
NLM_EXIT_SYM = _LibCPostlude
162
# If this is specified it will be used by the link '-check' directive
167
# If these are specified it will be used by the link '-flags' directive
169
NLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
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
179
# If there is an NLM target, put it here
182
$(OBJDIR)\$(NLM_NAME).nlm \
186
# If there is an LIB target, put it here
192
# These are the OBJ files needed to create the NLM target above.
193
# Paths must all use the '/' character
196
$(OBJDIR)/apr_dbm_berkeleydb.o \
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.
207
ifeq ($(LINK_STATIC),1)
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.
217
FILES_nlm_modules = \
222
ifneq ($(LINK_STATIC),1)
223
FILES_nlm_modules += \
229
# If the nlm has a msg file, put it's path here
234
# If the nlm has a hlp file put it's path here
239
# If this is specified, it will override $(NWOS)\copyright.txt.
244
# Any additional imports go here
246
FILES_nlm_Ximports = \
251
ifneq ($(LINK_STATIC),1)
252
FILES_nlm_Ximports += \
258
# Any symbols exported to here
260
FILES_nlm_exports = \
265
# These are the OBJ files needed to create the LIB target above.
266
# Paths must all use the '/' character
272
# implement targets and dependancies (leave this section alone)
275
libs :: $(OBJDIR) $(TARGET_lib)
277
nlms :: libs $(TARGET_nlm)
280
# Updated this target to create necessary directories and copy files to the
281
# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
283
install :: nlms FORCE
286
# Any specialized rules here
290
# Include the 'tail' makefile that has targets that depend on variables defined
294
include $(APR_WORK)\build\NWGNUtail.inc