NWGNUauthzusr revision ac7985784d08a3655291f24f711812b4d8b1cbcf
010a51c427bfb6ab658fc0056955a1a5b69810beTinderbox User# Make sure all needed macro's are defined
3eb9ec750c9088869170dda63e8899b2ba462823Mark Andrews# Get the 'head' of the build environment if necessary. This includes default
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# targets and paths to tools
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinifndef EnvironmentDefined
3eb9ec750c9088869170dda63e8899b2ba462823Mark Andrewsinclude $(AP_WORK)\build\NWGNUhead.inc
3eb9ec750c9088869170dda63e8899b2ba462823Mark Andrews# These directories will be at the beginning of the include list, followed by
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinXINCDIRS += \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(AP_WORK)/include \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User $(APR)/include \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User $(APRUTIL)/include \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# These flags will come after CFLAGS
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# These defines will come after DEFINES
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinXDEFINES += \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These flags will be added to the link.opt file
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# These values will be appended to the correct variables based on the value of
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox Userifeq "$(RELEASE)" "debug"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinifeq "$(RELEASE)" "noopt"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinXINCDIRS += \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinifeq "$(RELEASE)" "release"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These are used by the link target if an NLM is being generated
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# This is used by the link 'name' directive to name the nlm. If left blank
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# TARGET_nlm (see below) will be used.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserNLM_NAME = authzusr
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# This is used by the link '-desc ' directive.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# If left blank, NLM_NAME will be used.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserNLM_DESCRIPTION = Apache $(VERSION_STR) User Authorization Module
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# This is used by the '-threadname' directive. If left blank,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# NLM_NAME Thread will be used.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNLM_THREAD_NAME = AuthzUser Module
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If this is specified, it will override VERSION value in
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# $(AP_WORK)\build\NWGNUenvironment.inc
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If this is specified, it will override the default of 64K
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNLM_STACK_SIZE = 8192
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If this is specified it will be used by the link '-entry' directive
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNLM_ENTRY_SYM = _LibCPrelude
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# If this is specified it will be used by the link '-exit' directive
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserNLM_EXIT_SYM = _LibCPostlude
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If this is specified it will be used by the link '-check' directive
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNLM_CHECK_SYM =
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# If these are specified it will be used by the link '-flags' directive
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If this is specified it will be linked in with the XDCData option in the def
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# by setting APACHE_UNIPROC in the environment
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# If there is an NLM target, put it here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinTARGET_nlm = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If there is an LIB target, put it here
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserTARGET_lib = \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# These are the OBJ files needed to create the NLM target above.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Paths must all use the '/' character
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILES_nlm_objs = \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# These are the LIB files needed to create the NLM target above.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These will be added as a library command in the link.opt file.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILES_nlm_libs = \
4f6469885c3d66367e3f8fb94e1f3c66115990b0Mark Andrews# These are the modules that the above NLM target depends on to load.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These will be added as a module command in the link.opt file.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILES_nlm_modules = \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# If the nlm has a msg file, put it's path here
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark AndrewsFILE_nlm_msg =
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If the nlm has a hlp file put it's path here
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserFILE_nlm_hlp =
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If this is specified, it will override $(NWOS)\copyright.txt.
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark AndrewsFILE_nlm_copyright =
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Any additional imports go here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILES_nlm_Ximports = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Any symbols exported to here
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserFILES_nlm_exports = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein authz_user_module \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These are the OBJ files needed to create the LIB target above.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Paths must all use the '/' character
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILES_lib_objs = \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# implement targets and dependancies (leave this section alone)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userlibs :: $(OBJDIR) $(TARGET_lib)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinnlms :: libs $(TARGET_nlm)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Updated this target to create necessary directories and copy files to the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userinstall :: nlms FORCE
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Any specialized rules here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Include the 'tail' makefile that has targets that depend on variables defined
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# in this makefile
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininclude $(AP_WORK)\build\NWGNUtail.inc