NWGNUmodident revision 8ffac2c334103c0336602aaede650cb578611151
499b34cea04a46823d003d4c0520c8b03e8513cbBrian Wellington# Make sure all needed macro's are defined
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# Get the 'head' of the build environment if necessary. This includes default
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# targets and paths to tools
15a44745412679c30a6d022733925af70a38b715David Lawrenceifndef EnvironmentDefined
15a44745412679c30a6d022733925af70a38b715David Lawrence# These directories will be at the beginning of the include list, followed by
6d6529b5e5ab7223fa2560ebe144bcb82517cef3Mark AndrewsXINCDIRS += \
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence $(APR)/include \
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence $(APRUTIL)/include \
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence $(AP_WORK)/include \
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# These flags will come after CFLAGS
8f66dad9393ae0724f758c4a51e06ff55c2d1219Brian Wellington# These defines will come after DEFINES
f96b41064bcd427d8125a096fd646c1f068d8ed7David Lawrence# These flags will be added to the link.opt file
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# These values will be appended to the correct variables based on the value of
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellingtonifeq "$(RELEASE)" "debug"
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellingtonifeq "$(RELEASE)" "noopt"
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellingtonifeq "$(RELEASE)" "release"
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark AndrewsXINCDIRS += \
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence# These are used by the link target if an NLM is being generated
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# This is used by the link 'name' directive to name the nlm. If left blank
6d6529b5e5ab7223fa2560ebe144bcb82517cef3Mark Andrews# TARGET_nlm (see below) will be used.
94b166ffa58ef0ff263563c0550d0b30eb9f7772David LawrenceNLM_NAME = modident
f7c21e46c4b5fdae516b91374c24a87671f83ea3Andreas Gustafsson# This is used by the link '-desc ' directive.
f7c21e46c4b5fdae516b91374c24a87671f83ea3Andreas Gustafsson# If left blank, NLM_NAME will be used.
f7c21e46c4b5fdae516b91374c24a87671f83ea3Andreas GustafssonNLM_DESCRIPTION = Apache $(VERSION_STR) Remote User Identity Module
5fe21da364d4397c9a413fe689ce82dea36a7b29Mark Andrews# This is used by the '-threadname' directive. If left blank,
8b3fb4bded905d65153678f48a006eed5c13b27eAndreas Gustafsson# NLM_NAME Thread will be used.
f7c21e46c4b5fdae516b91374c24a87671f83ea3Andreas GustafssonNLM_THREAD_NAME = Mod_Ident Module
f7c21e46c4b5fdae516b91374c24a87671f83ea3Andreas Gustafsson# If this is specified, it will override VERSION value in
b7ce2258cab8eadbd834de8ca9d0b6f4c71f8c48Brian Wellington# If this is specified, it will override the default of 64K
94b166ffa58ef0ff263563c0550d0b30eb9f7772David LawrenceNLM_STACK_SIZE = 8192
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence# If this is specified it will be used by the link '-entry' directive
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David LawrenceNLM_ENTRY_SYM =
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# If this is specified it will be used by the link '-exit' directive
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian WellingtonNLM_EXIT_SYM =
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# If this is specified it will be used by the link '-check' directive
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian WellingtonNLM_CHECK_SYM =
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# If these are specified it will be used by the link '-flags' directive
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# If this is specified it will be linked in with the XDCData option in the def
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# by setting APACHE_UNIPROC in the environment
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# If there is an NLM target, put it here
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian WellingtonTARGET_nlm = \
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# If there is an LIB target, put it here
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian WellingtonTARGET_lib = \
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# These are the OBJ files needed to create the NLM target above.
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# Paths must all use the '/' character
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian WellingtonFILES_nlm_objs = \
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# These are the LIB files needed to create the NLM target above.
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# These will be added as a library command in the link.opt file.
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian WellingtonFILES_nlm_libs = \
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# These are the modules that the above NLM target depends on to load.
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# These will be added as a module command in the link.opt file.
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian WellingtonFILES_nlm_modules = \
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# If the nlm has a msg file, put it's path here
71ca6e64b4d208a090d255eb64c24f945e615ea0Brian WellingtonFILE_nlm_msg =
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# If the nlm has a hlp file put it's path here
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian WellingtonFILE_nlm_hlp =
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# If this is specified, it will override $(NWOS)\copyright.txt.
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian WellingtonFILE_nlm_copyright =
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# Any additional imports go here
71ca6e64b4d208a090d255eb64c24f945e615ea0Brian WellingtonFILES_nlm_Ximports = \
0a77211c806fa84fd66638b5cccf550c7cd7760dAndreas Gustafsson# Any symbols exported to here
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian WellingtonFILES_nlm_exports = \
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington ident_module \
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence# These are the OBJ files needed to create the LIB target above.
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# Paths must all use the '/' character
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian WellingtonFILES_lib_objs = \
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# implement targets and dependancies (leave this section alone)
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellingtonlibs :: $(OBJDIR) $(TARGET_lib)
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellingtonnlms :: libs $(TARGET_nlm)
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# Updated this target to create necessary directories and copy files to the
e4cd5a1e5d0358abeee7618b02b4592c055d957fBrian Wellington# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
e4cd5a1e5d0358abeee7618b02b4592c055d957fBrian Wellingtoninstall :: nlms FORCE
e4cd5a1e5d0358abeee7618b02b4592c055d957fBrian Wellington# Any specialized rules here
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# Include the 'tail' makefile that has targets that depend on variables defined
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# in this makefile
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellingtoninclude $(APBUILD)/NWGNUtail.inc