NWGNUauthndbm revision ac7985784d08a3655291f24f711812b4d8b1cbcf
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Make sure all needed macro's are defined
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Get the 'head' of the build environment if necessary. This includes default
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# targets and paths to tools
463e82bdf0e990f4f2252d2b53ea23a5abe5883cTimo Sirainenifndef EnvironmentDefined
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Siraineninclude $(AP_WORK)\build\NWGNUhead.inc
d41573018e85896ec836d897fd554e87126147f5Timo Sirainen# These directories will be at the beginning of the include list, followed by
945631faab2bf1aed8d95a1fd0c317a9ce153725Timo Sirainen $(AP_WORK)/include \
945631faab2bf1aed8d95a1fd0c317a9ce153725Timo Sirainen $(APR)/include \
945631faab2bf1aed8d95a1fd0c317a9ce153725Timo Sirainen $(APRUTIL)/include \
f81a4d2002da0db33d11ca694d3a91b3ee2a0fdbTimo Sirainen# These flags will come after CFLAGS
f81a4d2002da0db33d11ca694d3a91b3ee2a0fdbTimo Sirainen# These defines will come after DEFINES
f81a4d2002da0db33d11ca694d3a91b3ee2a0fdbTimo Sirainen# These flags will be added to the link.opt file
2c677e9d339bc91d5b54376ba2986f71476c06abTimo Sirainen# These values will be appended to the correct variables based on the value of
945631faab2bf1aed8d95a1fd0c317a9ce153725Timo Sirainenifeq "$(RELEASE)" "debug"
2a6af811ea3de3cf9e2f15e446674dd21b0705f3Timo Sirainenifeq "$(RELEASE)" "noopt"
bf91bed88d4e294b4577ba2a3b14d87cf35ae135Timo Sirainenifeq "$(RELEASE)" "release"
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo Sirainen# These are used by the link target if an NLM is being generated
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo Sirainen# This is used by the link 'name' directive to name the nlm. If left blank
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo Sirainen# TARGET_nlm (see below) will be used.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenNLM_NAME = authndbm
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo Sirainen# This is used by the link '-desc ' directive.
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo Sirainen# If left blank, NLM_NAME will be used.
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo SirainenNLM_DESCRIPTION = Apache $(VERSION_STR) Database Authentication Module
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo Sirainen# This is used by the '-threadname' directive. If left blank,
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo Sirainen# NLM_NAME Thread will be used.
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo SirainenNLM_THREAD_NAME = AuthnDBM Module
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo Sirainen# If this is specified, it will override VERSION value in
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo Sirainen# $(AP_WORK)\build\NWGNUenvironment.inc
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo Sirainen# If this is specified, it will override the default of 64K
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo SirainenNLM_STACK_SIZE = 8192
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo Sirainen# If this is specified it will be used by the link '-entry' directive
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo SirainenNLM_ENTRY_SYM = _LibCPrelude
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo Sirainen# If this is specified it will be used by the link '-exit' directive
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo SirainenNLM_EXIT_SYM = _LibCPostlude
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# If this is specified it will be used by the link '-check' directive
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenNLM_CHECK_SYM =
3697080532ccd9f51fac108be6079b616c7a2ddfTimo Sirainen# If these are specified it will be used by the link '-flags' directive
3697080532ccd9f51fac108be6079b616c7a2ddfTimo SirainenNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
3697080532ccd9f51fac108be6079b616c7a2ddfTimo Sirainen# If this is specified it will be linked in with the XDCData option in the def
3697080532ccd9f51fac108be6079b616c7a2ddfTimo Sirainen# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
3697080532ccd9f51fac108be6079b616c7a2ddfTimo Sirainen# by setting APACHE_UNIPROC in the environment
a28a6267f48971117dec958b160deefd14ebb7a6Timo Sirainen# If there is an NLM target, put it here
3697080532ccd9f51fac108be6079b616c7a2ddfTimo SirainenTARGET_nlm = \
3697080532ccd9f51fac108be6079b616c7a2ddfTimo Sirainen# If there is an LIB target, put it here
2a6af811ea3de3cf9e2f15e446674dd21b0705f3Timo SirainenTARGET_lib = \
2a6af811ea3de3cf9e2f15e446674dd21b0705f3Timo Sirainen# These are the OBJ files needed to create the NLM target above.
2a6af811ea3de3cf9e2f15e446674dd21b0705f3Timo Sirainen# Paths must all use the '/' character
a28a6267f48971117dec958b160deefd14ebb7a6Timo SirainenFILES_nlm_objs = \
3697080532ccd9f51fac108be6079b616c7a2ddfTimo Sirainen# These are the LIB files needed to create the NLM target above.
3697080532ccd9f51fac108be6079b616c7a2ddfTimo Sirainen# These will be added as a library command in the link.opt file.
3697080532ccd9f51fac108be6079b616c7a2ddfTimo SirainenFILES_nlm_libs = \
3342badd8c69adff34db589fb0a221ace5996212Timo Sirainen# These are the modules that the above NLM target depends on to load.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# These will be added as a module command in the link.opt file.
3697080532ccd9f51fac108be6079b616c7a2ddfTimo SirainenFILES_nlm_modules = \
3342badd8c69adff34db589fb0a221ace5996212Timo Sirainen# If the nlm has a msg file, put it's path here
3342badd8c69adff34db589fb0a221ace5996212Timo SirainenFILE_nlm_msg =
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# If the nlm has a hlp file put it's path here
31050c3df6cbe403e8ced8ef11b5c4e12124d354Timo SirainenFILE_nlm_hlp =
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# If this is specified, it will override $(NWOS)\copyright.txt.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenFILE_nlm_copyright =
9315dd69233d554452df0c12bc57002d2042a8f4Timo Sirainen# Any additional imports go here
31050c3df6cbe403e8ced8ef11b5c4e12124d354Timo SirainenFILES_nlm_Ximports = \
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen# Any symbols exported to here
2a6af811ea3de3cf9e2f15e446674dd21b0705f3Timo SirainenFILES_nlm_exports = \
2a6af811ea3de3cf9e2f15e446674dd21b0705f3Timo Sirainen authn_dbm_module \
31050c3df6cbe403e8ced8ef11b5c4e12124d354Timo Sirainen# These are the OBJ files needed to create the LIB target above.
31050c3df6cbe403e8ced8ef11b5c4e12124d354Timo Sirainen# Paths must all use the '/' character
31050c3df6cbe403e8ced8ef11b5c4e12124d354Timo SirainenFILES_lib_objs = \
2a6af811ea3de3cf9e2f15e446674dd21b0705f3Timo Sirainen# implement targets and dependancies (leave this section alone)
2a6af811ea3de3cf9e2f15e446674dd21b0705f3Timo Sirainenlibs :: $(OBJDIR) $(TARGET_lib)
2a6af811ea3de3cf9e2f15e446674dd21b0705f3Timo Sirainennlms :: libs $(TARGET_nlm)
2a6af811ea3de3cf9e2f15e446674dd21b0705f3Timo Sirainen# Updated this target to create necessary directories and copy files to the
2a6af811ea3de3cf9e2f15e446674dd21b0705f3Timo Sirainen# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
2a6af811ea3de3cf9e2f15e446674dd21b0705f3Timo Siraineninstall :: nlms FORCE
2a6af811ea3de3cf9e2f15e446674dd21b0705f3Timo Sirainen# Any specialized rules here
31050c3df6cbe403e8ced8ef11b5c4e12124d354Timo Sirainen# Include the 'tail' makefile that has targets that depend on variables defined
31050c3df6cbe403e8ced8ef11b5c4e12124d354Timo Sirainen# in this makefile
9bc6e10d9c6d6ffb4a2ed49a3b3d2a180f2a87a3Timo Siraineninclude $(AP_WORK)\build\NWGNUtail.inc