NWGNUauthzdbm revision 0a39e7683f6611d66c55712f50bb240428d832a1
6c2a76b3e2ccd32c35814b6e0f54da00190749d7Evan Hunt# Make sure all needed macro's are defined
ba9e87b35e561bc7354ce3f4b9685b747b7be507Tinderbox User# Get the 'head' of the build environment if necessary. This includes default
1f9754245cbd5eec2d2a667bb292f62f72386d4bMark Andrews# targets and paths to tools
1f9754245cbd5eec2d2a667bb292f62f72386d4bMark Andrewsifndef EnvironmentDefined
59663800d2ec04777dae2791dd92aa563faf94c8Evan Huntinclude $(AP_WORK)\build\NWGNUhead.inc
a2c370ca12bb0360ff7e969474ead3f788c65fffTinderbox User# These directories will be at the beginning of the include list, followed by
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsXINCDIRS += \
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User $(AP_WORK)/include \
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# These flags will come after CFLAGS
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User# These defines will come after DEFINES
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsXDEFINES += \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# These flags will be added to the link.opt file
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# These values will be appended to the correct variables based on the value of
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Huntifeq "$(RELEASE)" "debug"
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsXINCDIRS += \
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntXDEFINES += \
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrewsifeq "$(RELEASE)" "noopt"
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsXINCDIRS += \
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrewsifeq "$(RELEASE)" "release"
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsXINCDIRS += \
fec6e13f2d1e69fe1c2b8fac36f732f124cf5398Mark AndrewsXDEFINES += \
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User# These are used by the link target if an NLM is being generated
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt# This is used by the link 'name' directive to name the nlm. If left blank
7cc0a5d21ef046bfd630c4769943d896a7d7472cTinderbox User# TARGET_nlm (see below) will be used.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsNLM_NAME = authzdbm
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# This is used by the link '-desc ' directive.
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User# If left blank, NLM_NAME will be used.
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserNLM_DESCRIPTION = Apache $(VERSION_STR) Database Authorization Module
51aeb0ae19596e99b029cfa933e73b76ebec480aTinderbox User# This is used by the '-threadname' directive. If left blank,
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# NLM_NAME Thread will be used.
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserNLM_THREAD_NAME = AuthzDBM Module
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# If this is specified, it will override VERSION value in
415d630b6309922caee8469384a6fab75cf05032Mark Andrews# $(AP_WORK)\build\NWGNUenvironment.inc
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# If this is specified, it will override the default of 64K
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserNLM_STACK_SIZE = 8192
415d630b6309922caee8469384a6fab75cf05032Mark Andrews# If this is specified it will be used by the link '-entry' directive
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserNLM_ENTRY_SYM = _LibCPrelude
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# If this is specified it will be used by the link '-exit' directive
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsNLM_EXIT_SYM = _LibCPostlude
28a5dd720187fddb16055a0f64b63a7b66f29f64Mark Andrews# If this is specified it will be used by the link '-check' directive
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark AndrewsNLM_CHECK_SYM =
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews# If these are specified it will be used by the link '-flags' directive
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# If this is specified it will be linked in with the XDCData option in the def
51aeb0ae19596e99b029cfa933e73b76ebec480aTinderbox User# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
baeaed18341c015e9ad54ffa21973184c1bc432bMark Andrews# by setting APACHE_UNIPROC in the environment
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# If there is an NLM target, put it here
33b0d10552ea5f7716385b2cedff64daa1486c50Tinderbox UserTARGET_nlm = \
b378314925e78f21853a98cec924788ce1822c6cTinderbox User# If there is an LIB target, put it here
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsTARGET_lib = \
fec6e13f2d1e69fe1c2b8fac36f732f124cf5398Mark Andrews# These are the OBJ files needed to create the NLM target above.
b625bdae12277225b076a002dd4af80902529181Tinderbox User# Paths must all use the '/' character
01a5c5503482fb3ba52088bf0178a7213273bf96Mark AndrewsFILES_nlm_objs = \
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews# These are the LIB files needed to create the NLM target above.
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User# These will be added as a library command in the link.opt file.
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsFILES_nlm_libs = \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# These are the modules that the above NLM target depends on to load.
415d630b6309922caee8469384a6fab75cf05032Mark Andrews# These will be added as a module command in the link.opt file.
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsFILES_nlm_modules = \
415d630b6309922caee8469384a6fab75cf05032Mark Andrews# If the nlm has a msg file, put it's path here
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserFILE_nlm_msg =
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# If the nlm has a hlp file put it's path here
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsFILE_nlm_hlp =
415d630b6309922caee8469384a6fab75cf05032Mark Andrews# If this is specified, it will override $(NWOS)\copyright.txt.
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsFILE_nlm_copyright =
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Any additional imports go here
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic UpdaterFILES_nlm_Ximports = \
415d630b6309922caee8469384a6fab75cf05032Mark Andrews# Any symbols exported to here
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserFILES_nlm_exports = \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews authz_dbm_module \
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews# These are the OBJ files needed to create the LIB target above.
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User# Paths must all use the '/' character
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox UserFILES_lib_objs = \
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# implement targets and dependancies (leave this section alone)
1fce11b1d3f2d461d261156b8cdc64ab864f06a9Tinderbox Userlibs :: $(OBJDIR) $(TARGET_lib)
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrewsnlms :: libs $(TARGET_nlm)
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox User# Updated this target to create necessary directories and copy files to the
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
98240f34c38524fd6d0db5a42b9d47cd95ec0fa1Tinderbox Userinstall :: nlms FORCE
361967ea970ea8f0ef8875e769505ecdac74bfb0Tinderbox User# Any specialized rules here
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Include the 'tail' makefile that has targets that depend on variables defined
98240f34c38524fd6d0db5a42b9d47cd95ec0fa1Tinderbox User# in this makefile
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrewsinclude $(AP_WORK)\build\NWGNUtail.inc