NWGNUmodident revision 70953fb44a7140fe206c3a5f011e24209c8c5c6a
5cd4555ad444fd391002ae32450572054369fd42Rob Austein# Make sure all needed macro's are defined
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Get the 'head' of the build environment if necessary. This includes default
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# targets and paths to tools
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellingtonifndef EnvironmentDefined
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellingtoninclude $(AP_WORK)\build\NWGNUhead.inc
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# These directories will be at the beginning of the include list, followed by
dafcb997e390efa4423883dafd100c975c4095d6Mark AndrewsXINCDIRS += \
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington $(AP_WORK)/include \
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews $(APR)/include \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley $(APRUTIL)/include \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# These flags will come after CFLAGS
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# These defines will come after DEFINES
94bd918b63001277f1b28ae4581645f8a835688fBob HalleyXDEFINES += \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# 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 += \
94bd918b63001277f1b28ae4581645f8a835688fBob HalleyXDEFINES += \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinifeq "$(RELEASE)" "noopt"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinXINCDIRS += \
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 = modident
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# This is used by the link '-desc ' directive.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If left blank, NLM_NAME will be used.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinNLM_DESCRIPTION = Apache $(VERSION_STR) Remote User Identity 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 = Mod_Ident Module
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If this is specified, it will override VERSION value in
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# $(AP_WORK)\build\NWGNUenvironment.inc
8b9fc7617b8f54641708c985697848e6cc10a5bbMark AndrewsNLM_VERSION =
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If this is specified, it will override the default of 64K
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinNLM_STACK_SIZE = 8192
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If this is specified it will be used by the link '-entry' directive
4eb998928b9aef0ceda42d7529980d658138698aEvan HuntNLM_ENTRY_SYM = _LibCPrelude
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If this is specified it will be used by the link '-exit' directive
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinNLM_EXIT_SYM = _LibCPostlude
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If this is specified it will be used by the link '-check' directive
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinNLM_CHECK_SYM =
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If these are specified it will be used by the link '-flags' directive
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# If this is specified it will be linked in with the XDCData option in the def
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# by setting APACHE_UNIPROC in the environment
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# If there is an NLM target, put it here
94bd918b63001277f1b28ae4581645f8a835688fBob HalleyTARGET_nlm = \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# If there is an LIB target, put it here
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinTARGET_lib = \
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews# These are the OBJ files needed to create the NLM target above.
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews# Paths must all use the '/' character
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFILES_nlm_objs = \
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews# These are the LIB files needed to create the NLM target above.
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# These will be added as a library command in the link.opt file.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFILES_nlm_libs = \
561a29af8c54a216e7d30b5b4f6e0d21661654ecMark Andrews# These are the modules that the above NLM target depends on to load.
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# These will be added as a module command in the link.opt file.
94bd918b63001277f1b28ae4581645f8a835688fBob HalleyFILES_nlm_modules = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If the nlm has a msg file, put it's path here
4eb998928b9aef0ceda42d7529980d658138698aEvan HuntFILE_nlm_msg =
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews# 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 = \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# Any symbols exported to here
94bd918b63001277f1b28ae4581645f8a835688fBob HalleyFILES_nlm_exports = \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley ident_module \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# These are the OBJ files needed to create the LIB target above.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Paths must all use the '/' character
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFILES_lib_objs = \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# implement targets and dependancies (leave this section alone)
94bd918b63001277f1b28ae4581645f8a835688fBob Halleylibs :: $(OBJDIR) $(TARGET_lib)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinnlms :: libs $(TARGET_nlm)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Updated this target to create necessary directories and copy files to the
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininstall :: nlms FORCE
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# Any specialized rules here
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# Include the 'tail' makefile that has targets that depend on variables defined
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# in this makefile
94bd918b63001277f1b28ae4581645f8a835688fBob Halleyinclude $(AP_WORK)\build\NWGNUtail.inc