NWGNUmakefile revision ac7985784d08a3655291f24f711812b4d8b1cbcf
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# Declare the sub-directories to be built here
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndSUBDIRS = \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# Get the 'head' of the build environment. This includes default targets and
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# paths to tools
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndinclude $(AP_WORK)\build\NWGNUhead.inc
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# build this level's files
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# Make sure all needed macro's are defined
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# These directories will be at the beginning of the include list, followed by
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndXINCDIRS += \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd $(AP_WORK)/include \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd $(APR)/include \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd $(APRUTIL)/include \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# These flags will come after CFLAGS
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndXCFLAGS += \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# These defines will come after DEFINES
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndXDEFINES += \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# These flags will be added to the link.opt file
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndXLFLAGS += \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# These values will be appended to the correct variables based on the value of
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndifeq "$(RELEASE)" "debug"
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndXINCDIRS += \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndXCFLAGS += \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndXDEFINES += \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndXLFLAGS += \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndifeq "$(RELEASE)" "noopt"
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndXINCDIRS += \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndXCFLAGS += \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndXDEFINES += \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndXLFLAGS += \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndifeq "$(RELEASE)" "release"
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndXINCDIRS += \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndXCFLAGS += \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndXDEFINES += \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndXLFLAGS += \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# These are used by the link target if an NLM is being generated
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# This is used by the link 'name' directive to name the nlm. If left blank
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# TARGET_nlm (see below) will be used.
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_NAME = moddbd
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# This is used by the link '-desc ' directive.
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# If left blank, NLM_NAME will be used.
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndNLM_DESCRIPTION = Apache $(VERSION_STR) DBD Module
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# This is used by the '-threadname' directive. If left blank,
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# NLM_NAME Thread will be used.
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndNLM_THREAD_NAME = DBD Module
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# If this is specified, it will override VERSION value in
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# $(AP_WORK)\build\NWGNUenvironment.inc
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_VERSION =
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# If this is specified, it will override the default of 64K
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndNLM_STACK_SIZE = 8192
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# If this is specified it will be used by the link '-entry' directive
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndNLM_ENTRY_SYM = _LibCPrelude
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# If this is specified it will be used by the link '-exit' directive
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndNLM_EXIT_SYM = _LibCPostlude
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# If this is specified it will be used by the link '-check' directive
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndNLM_CHECK_SYM =
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# If these are specified it will be used by the link '-flags' directive
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# If this is specified it will be linked in with the XDCData option in the def
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# by setting APACHE_UNIPROC in the environment
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# If there is an NLM target, put it here
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndTARGET_nlm = \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd $(OBJDIR)/moddbd.nlm \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# If there is an LIB target, put it here
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndTARGET_lib = \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# These are the OBJ files needed to create the NLM target above.
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# Paths must all use the '/' character
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndFILES_nlm_objs = \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd $(OBJDIR)/mod_dbd.o \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# These are the LIB files needed to create the NLM target above.
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# These will be added as a library command in the link.opt file.
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndFILES_nlm_libs = \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# These are the modules that the above NLM target depends on to load.
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# These will be added as a module command in the link.opt file.
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndFILES_nlm_modules = \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# If the nlm has a msg file, put it's path here
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndFILE_nlm_msg =
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# If the nlm has a hlp file put it's path here
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndFILE_nlm_hlp =
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# If this is specified, it will override $(NWOS)\copyright.txt.
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndFILE_nlm_copyright =
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# Any additional imports go here
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndFILES_nlm_Ximports = \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# Any symbols exported to here
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndFILES_nlm_exports = \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd dbd_module \
7c999ffca3d732637f046c84f82175a91abfb02dbnicholes ap_dbd_open \
7c999ffca3d732637f046c84f82175a91abfb02dbnicholes ap_dbd_close \
7c999ffca3d732637f046c84f82175a91abfb02dbnicholes ap_dbd_acquire \
7c999ffca3d732637f046c84f82175a91abfb02dbnicholes ap_dbd_cacquire \
7c999ffca3d732637f046c84f82175a91abfb02dbnicholes ap_dbd_prepare \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# These are the OBJ files needed to create the LIB target above.
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# Paths must all use the '/' character
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndFILES_lib_objs = \
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# implement targets and dependancies (leave this section alone)
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndlibs :: $(OBJDIR) $(TARGET_lib)
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndnlms :: libs $(TARGET_nlm)
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# Updated this target to create necessary directories and copy files to the
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndinstall :: nlms FORCE
f2f3f241c00a7a4bd597e57a19023940e072918abnicholes copy $(OBJDIR)\*.nlm $(INSTALL)\$(BASEDIR)\modules\*.*
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# Any specialized rules here
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# Include the 'tail' makefile that has targets that depend on variables defined
8a449c6f0d15aeb07df69b8a680960ad7f9a345cnd# in this makefile
8a449c6f0d15aeb07df69b8a680960ad7f9a345cndinclude $(AP_WORK)\build\NWGNUtail.inc