NWGNUauthnano revision 0662ed52e814f8f08ef0e09956413a792584eddf
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Make sure all needed macro's are defined
e015e2f7e7f48874495f9df8b0dd192b7ffcb5ccTimo Sirainen# Get the 'head' of the build environment if necessary. This includes default
58be9d6bcc3800f5b3d76a064ee767fbe31a5a8aTimo Sirainen# targets and paths to tools
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenifndef EnvironmentDefined
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# These directories will be at the beginning of the include list, followed by
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen $(APR)/include \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen $(APRUTIL)/include \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen $(AP_WORK)/include \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# These flags will come after CFLAGS
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# These defines will come after DEFINES
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# These flags will be added to the link.opt file
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# These values will be appended to the correct variables based on the value of
8aacc9e7c84f8376822823ec98c2f551d4919b2eTimo Sirainenifeq "$(RELEASE)" "debug"
6e235046e1d8e9d89fc948f5c623676c20421a28Timo Sirainenifeq "$(RELEASE)" "noopt"
abe7afb8f1766fbcef1b9df513109e43d7d16e49Timo Sirainenifeq "$(RELEASE)" "release"
abe7afb8f1766fbcef1b9df513109e43d7d16e49Timo Sirainen# These are used by the link target if an NLM is being generated
abe7afb8f1766fbcef1b9df513109e43d7d16e49Timo Sirainen# This is used by the link 'name' directive to name the nlm. If left blank
abe7afb8f1766fbcef1b9df513109e43d7d16e49Timo Sirainen# TARGET_nlm (see below) will be used.
abe7afb8f1766fbcef1b9df513109e43d7d16e49Timo SirainenNLM_NAME = authnano
69e03a846f6980144aa75bff0590c04852bffbbcTimo Sirainen# This is used by the link '-desc ' directive.
69e03a846f6980144aa75bff0590c04852bffbbcTimo Sirainen# If left blank, NLM_NAME will be used.
69e03a846f6980144aa75bff0590c04852bffbbcTimo SirainenNLM_DESCRIPTION = Apache $(VERSION_STR) Anonymous Authentication Module
69e03a846f6980144aa75bff0590c04852bffbbcTimo Sirainen# This is used by the '-threadname' directive. If left blank,
69e03a846f6980144aa75bff0590c04852bffbbcTimo Sirainen# NLM_NAME Thread will be used.
69e03a846f6980144aa75bff0590c04852bffbbcTimo SirainenNLM_THREAD_NAME = AuthAnon Module
69e03a846f6980144aa75bff0590c04852bffbbcTimo Sirainen# If this is specified, it will override VERSION value in
69e03a846f6980144aa75bff0590c04852bffbbcTimo Sirainen# If this is specified, it will override the default of 64K
69e03a846f6980144aa75bff0590c04852bffbbcTimo SirainenNLM_STACK_SIZE = 8192
69e03a846f6980144aa75bff0590c04852bffbbcTimo Sirainen# If this is specified it will be used by the link '-entry' directive
69e03a846f6980144aa75bff0590c04852bffbbcTimo SirainenNLM_ENTRY_SYM =
fd2f5fbc1f07aa93e2214a28cdf02437fb7d06c8Timo Sirainen# If this is specified it will be used by the link '-exit' directive
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo SirainenNLM_EXIT_SYM =
d9fdacd5fb3e07997e5c389739d2054f0c8441d8Timo Sirainen# If this is specified it will be used by the link '-check' directive
69e03a846f6980144aa75bff0590c04852bffbbcTimo SirainenNLM_CHECK_SYM =
fd2f5fbc1f07aa93e2214a28cdf02437fb7d06c8Timo Sirainen# If these are specified it will be used by the link '-flags' directive
c53e8ee216904ffe6de4f6518d9f9f5107b7610eTimo Sirainen# If this is specified it will be linked in with the XDCData option in the def
fd2f5fbc1f07aa93e2214a28cdf02437fb7d06c8Timo Sirainen# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
fd2f5fbc1f07aa93e2214a28cdf02437fb7d06c8Timo Sirainen# by setting APACHE_UNIPROC in the environment
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# If there is an NLM target, put it here
abe7afb8f1766fbcef1b9df513109e43d7d16e49Timo SirainenTARGET_nlm = \
e015e2f7e7f48874495f9df8b0dd192b7ffcb5ccTimo Sirainen# If there is an LIB target, put it here
e015e2f7e7f48874495f9df8b0dd192b7ffcb5ccTimo SirainenTARGET_lib = \
fd2f5fbc1f07aa93e2214a28cdf02437fb7d06c8Timo Sirainen# These are the OBJ files needed to create the NLM target above.
fd2f5fbc1f07aa93e2214a28cdf02437fb7d06c8Timo Sirainen# Paths must all use the '/' character
fd2f5fbc1f07aa93e2214a28cdf02437fb7d06c8Timo SirainenFILES_nlm_objs = \
fd2f5fbc1f07aa93e2214a28cdf02437fb7d06c8Timo Sirainen# These are the LIB files needed to create the NLM target above.
d5cebe7f98e63d4e2822863ef2faa4971e8b3a5dTimo Sirainen# These will be added as a library command in the link.opt file.
fd2f5fbc1f07aa93e2214a28cdf02437fb7d06c8Timo SirainenFILES_nlm_libs = \
1098fc409a45e7603701dc94635927a673bee0c1Timo Sirainen# These are the modules that the above NLM target depends on to load.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# These will be added as a module command in the link.opt file.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenFILES_nlm_modules = \
a40d26f83af808a0ea1e212c001d682a96d870b0Timo Sirainen# If the nlm has a msg file, put it's path here
a40d26f83af808a0ea1e212c001d682a96d870b0Timo SirainenFILE_nlm_msg =
e192a3b1ca8ae857e7d87298ea507d32977ba570Timo Sirainen# If the nlm has a hlp file put it's path here
a40d26f83af808a0ea1e212c001d682a96d870b0Timo SirainenFILE_nlm_hlp =
fd2f5fbc1f07aa93e2214a28cdf02437fb7d06c8Timo Sirainen# If this is specified, it will override $(NWOS)\copyright.txt.
f501ad38c51cf1d8f4f84313922c785e6ae6e81fTimo SirainenFILE_nlm_copyright =
8b9342aa96b2f297e23afb261f9f7dd859800952Timo Sirainen# Any additional imports go here
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenFILES_nlm_Ximports = \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Any symbols exported to here
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenFILES_nlm_exports = \
fd2f5fbc1f07aa93e2214a28cdf02437fb7d06c8Timo Sirainen authn_anon_module \
1098fc409a45e7603701dc94635927a673bee0c1Timo Sirainen# These are the OBJ files needed to create the LIB target above.
56f45b3f3ae20e5c933701f4657dda5ef1916855Timo Sirainen# Paths must all use the '/' character
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenFILES_lib_objs = \
fd2f5fbc1f07aa93e2214a28cdf02437fb7d06c8Timo Sirainen# implement targets and dependancies (leave this section alone)
1098fc409a45e7603701dc94635927a673bee0c1Timo Sirainenlibs :: $(OBJDIR) $(TARGET_lib)
6b85bc4b03e552cfaeeae872d63c2d8ac5fcb7c4Timo Sirainennlms :: libs $(TARGET_nlm)
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Updated this target to create necessary directories and copy files to the
1098fc409a45e7603701dc94635927a673bee0c1Timo Sirainen# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
1098fc409a45e7603701dc94635927a673bee0c1Timo Siraineninstall :: nlms FORCE
1098fc409a45e7603701dc94635927a673bee0c1Timo Sirainen# Any specialized rules here
1e47cfede3a0b62654105daab00e97b5d660bc6bTimo Sirainen# Include the 'tail' makefile that has targets that depend on variables defined
1e47cfede3a0b62654105daab00e97b5d660bc6bTimo Sirainen# in this makefile
1e47cfede3a0b62654105daab00e97b5d660bc6bTimo Siraineninclude $(APBUILD)/NWGNUtail.inc