NWGNUauthzdbm revision 3c937b528ca923d5b51e63def9f888af4a77bb40
5cd4555ad444fd391002ae32450572054369fd42Rob Austein# Make sure all needed macro's are defined
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Get the 'head' of the build environment if necessary. This includes default
9c49c394b4218cc9c743a372a8fcfb787f5ea8caAndreas Gustafsson# targets and paths to tools
9c49c394b4218cc9c743a372a8fcfb787f5ea8caAndreas Gustafssonifndef EnvironmentDefined
9c49c394b4218cc9c743a372a8fcfb787f5ea8caAndreas Gustafssoninclude $(AP_WORK)\build\NWGNUhead.inc
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# These directories will be at the beginning of the include list, followed by
dafcb997e390efa4423883dafd100c975c4095d6Mark AndrewsXINCDIRS += \
9c49c394b4218cc9c743a372a8fcfb787f5ea8caAndreas Gustafsson $(AP_WORK)/include \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# These flags will come after CFLAGS
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# These defines will come after DEFINES
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinXDEFINES += \
030aac3dbc57f99bad1d251b0783890ff0369952Automatic Updater# These flags will be added to the link.opt file
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# These values will be appended to the correct variables based on the value of
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinifeq "$(RELEASE)" "debug"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinXINCDIRS += \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinXDEFINES += \
b98225ff8a5721a998ccb440df4d261488fef163Mark Andrewsifeq "$(RELEASE)" "noopt"
de10c46b2a714b0fb74837da7867f55cccc6d261Jeremy ReedXINCDIRS += \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinXDEFINES += \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinifeq "$(RELEASE)" "release"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinXINCDIRS += \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinXDEFINES += \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# These are used by the link target if an NLM is being generated
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# This is used by the link 'name' directive to name the nlm. If left blank
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# TARGET_nlm (see below) will be used.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinNLM_NAME = authzdbm
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# This is used by the link '-desc ' directive.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If left blank, NLM_NAME will be used.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinNLM_DESCRIPTION = Database Authorization Module
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# This is used by the '-threadname' directive. If left blank,
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# NLM_NAME Thread will be used.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinNLM_THREAD_NAME = AuthzDBM Module
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If this is specified, it will override VERSION value in
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# $(AP_WORK)\build\NWGNUenvironment.inc
6098d364b690cb9dabf96e9664c4689c8559bd2eMark AndrewsNLM_VERSION =
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# If this is specified, it will override the default of 64K
351b62535d4c4f89883bfdba025999dd32490266Evan HuntNLM_STACK_SIZE = 8192
b98225ff8a5721a998ccb440df4d261488fef163Mark Andrews# If this is specified it will be used by the link '-entry' directive
8f7de3db7ec299ddeded142905f5eb1f22076353Evan HuntNLM_ENTRY_SYM = _LibCPrelude
b98225ff8a5721a998ccb440df4d261488fef163Mark Andrews# If this is specified it will be used by the link '-exit' directive
b98225ff8a5721a998ccb440df4d261488fef163Mark AndrewsNLM_EXIT_SYM = _LibCPostlude
b98225ff8a5721a998ccb440df4d261488fef163Mark Andrews# If this is specified it will be used by the link '-check' directive
b98225ff8a5721a998ccb440df4d261488fef163Mark AndrewsNLM_CHECK_SYM =
b98225ff8a5721a998ccb440df4d261488fef163Mark Andrews# If these are specified it will be used by the link '-flags' directive
b98225ff8a5721a998ccb440df4d261488fef163Mark AndrewsNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
8f7de3db7ec299ddeded142905f5eb1f22076353Evan Hunt# If this is specified it will be linked in with the XDCData option in the def
8f7de3db7ec299ddeded142905f5eb1f22076353Evan Hunt# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
8f7de3db7ec299ddeded142905f5eb1f22076353Evan Hunt# by setting APACHE_UNIPROC in the environment
c6d4f781529d2f28693546b25b2967d44ec89e60Mark Andrews# If there is an NLM target, put it here
c6d4f781529d2f28693546b25b2967d44ec89e60Mark AndrewsTARGET_nlm = \
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# If there is an LIB target, put it here
c6d4f781529d2f28693546b25b2967d44ec89e60Mark AndrewsTARGET_lib = \
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# These are the OBJ files needed to create the NLM target above.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Paths must all use the '/' character
351b62535d4c4f89883bfdba025999dd32490266Evan HuntFILES_nlm_objs = \
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# These are the LIB files needed to create the NLM target above.
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# These will be added as a library command in the link.opt file.
351b62535d4c4f89883bfdba025999dd32490266Evan HuntFILES_nlm_libs = \
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# These are the modules that the above NLM target depends on to load.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# These will be added as a module command in the link.opt file.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFILES_nlm_modules = \
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# If the nlm has a msg file, put it's path here
351b62535d4c4f89883bfdba025999dd32490266Evan HuntFILE_nlm_msg =
08f860f800d32007a0c9bf456f6c35fbb2ecbc81Evan Hunt# If the nlm has a hlp file put it's path here
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFILE_nlm_hlp =
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If this is specified, it will override $(NWOS)\copyright.txt.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFILE_nlm_copyright =
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Any additional imports go here
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFILES_nlm_Ximports = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Any symbols exported to here
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFILES_nlm_exports = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein authz_dbm_module \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# These are the OBJ files needed to create the LIB target above.
561a29af8c54a216e7d30b5b4f6e0d21661654ecMark Andrews# Paths must all use the '/' character
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFILES_lib_objs = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# implement targets and dependancies (leave this section alone)
9a41f786b167a2a6df498d5e9c699f9835e1e9dcMark Andrewslibs :: $(OBJDIR) $(TARGET_lib)
9a41f786b167a2a6df498d5e9c699f9835e1e9dcMark Andrewsnlms :: libs $(TARGET_nlm)
9a41f786b167a2a6df498d5e9c699f9835e1e9dcMark Andrews# Updated this target to create necessary directories and copy files to the
9a41f786b167a2a6df498d5e9c699f9835e1e9dcMark Andrews# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
9a41f786b167a2a6df498d5e9c699f9835e1e9dcMark Andrewsinstall :: nlms FORCE
9a41f786b167a2a6df498d5e9c699f9835e1e9dcMark Andrews# Any specialized rules here
f5b7359c5730d39ff6eff24ae87c9c74a04c2e5cMark Andrews# Include the 'tail' makefile that has targets that depend on variables defined
f5b7359c5730d39ff6eff24ae87c9c74a04c2e5cMark Andrews# in this makefile
2dc2a6b6e92427de63ce687b17f20aeeafd41113Evan Huntinclude $(AP_WORK)\build\NWGNUtail.inc