NWGNUaccesscompat revision bf40639e42957133fef54f2f0a322061ac37fe90
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# Make sure all needed macro's are defined
ece0a20249ce26208db3415ba2e79423678856f8Timo Sirainen# Get the 'head' of the build environment if necessary. This includes default
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# targets and paths to tools
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainenifndef EnvironmentDefined
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Siraineninclude $(AP_WORK)\build\NWGNUhead.inc
300e4e43ed1ca46d0614459161ca2fb460ef661aTimo Sirainen# These directories will be at the beginning of the include list, followed by
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen $(AP_WORK)/include \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen $(APR)/include \
ae46f6ba5bb9eee8900254d3042e89d490023be0Timo Sirainen $(APRUTIL)/include \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# These flags will come after CFLAGS
6468191d64827a2d1481c091ec499874583c834eTimo Sirainen# These defines will come after DEFINES
6468191d64827a2d1481c091ec499874583c834eTimo Sirainen# These flags will be added to the link.opt file
b44033e45e9f48f8a6e1ac5905234fec5de6d6ccAki Tuomi# These values will be appended to the correct variables based on the value of
b44033e45e9f48f8a6e1ac5905234fec5de6d6ccAki Tuomiifeq "$(RELEASE)" "debug"
b44033e45e9f48f8a6e1ac5905234fec5de6d6ccAki TuomiXINCDIRS += \
47a5a7e8296f3b8f2fac9a0659d4de3f2723ba4aMartti Rannanjärviifeq "$(RELEASE)" "noopt"
6468191d64827a2d1481c091ec499874583c834eTimo Sirainenifeq "$(RELEASE)" "release"
6468191d64827a2d1481c091ec499874583c834eTimo Sirainen# These are used by the link target if an NLM is being generated
6468191d64827a2d1481c091ec499874583c834eTimo Sirainen# This is used by the link 'name' directive to name the nlm. If left blank
6468191d64827a2d1481c091ec499874583c834eTimo Sirainen# TARGET_nlm (see below) will be used.
db3b95d5a33ddce552d41136ae68d7331f8bf5feTimo SirainenNLM_NAME = accesscompat
6468191d64827a2d1481c091ec499874583c834eTimo Sirainen# This is used by the link '-desc ' directive.
6468191d64827a2d1481c091ec499874583c834eTimo Sirainen# If left blank, NLM_NAME will be used.
6468191d64827a2d1481c091ec499874583c834eTimo SirainenNLM_DESCRIPTION = Apache $(VERSION_STR) host access control compatibility Module
6468191d64827a2d1481c091ec499874583c834eTimo Sirainen# This is used by the '-threadname' directive. If left blank,
6468191d64827a2d1481c091ec499874583c834eTimo Sirainen# NLM_NAME Thread will be used.
5545acdd3aa90a6e0cca2b665f909ec4c2fb2513BaofengNLM_THREAD_NAME = AccessCompModule
6468191d64827a2d1481c091ec499874583c834eTimo Sirainen# If this is specified, it will override VERSION value in
973c8fc1d7e9f982f7caf6385adb78dfacd9fb80Timo Sirainen# $(AP_WORK)\build\NWGNUenvironment.inc
6468191d64827a2d1481c091ec499874583c834eTimo Sirainen# If this is specified, it will override the default of 64K
6468191d64827a2d1481c091ec499874583c834eTimo SirainenNLM_STACK_SIZE = 8192
6468191d64827a2d1481c091ec499874583c834eTimo Sirainen# If this is specified it will be used by the link '-entry' directive
6468191d64827a2d1481c091ec499874583c834eTimo SirainenNLM_ENTRY_SYM = _LibCPrelude
6468191d64827a2d1481c091ec499874583c834eTimo Sirainen# If this is specified it will be used by the link '-exit' directive
6468191d64827a2d1481c091ec499874583c834eTimo SirainenNLM_EXIT_SYM = _LibCPostlude
6468191d64827a2d1481c091ec499874583c834eTimo Sirainen# If this is specified it will be used by the link '-check' directive
6468191d64827a2d1481c091ec499874583c834eTimo SirainenNLM_CHECK_SYM =
6468191d64827a2d1481c091ec499874583c834eTimo Sirainen# If these are specified it will be used by the link '-flags' directive
5545acdd3aa90a6e0cca2b665f909ec4c2fb2513BaofengNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
6468191d64827a2d1481c091ec499874583c834eTimo Sirainen# If this is specified it will be linked in with the XDCData option in the def
6468191d64827a2d1481c091ec499874583c834eTimo Sirainen# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
6468191d64827a2d1481c091ec499874583c834eTimo Sirainen# by setting APACHE_UNIPROC in the environment
6468191d64827a2d1481c091ec499874583c834eTimo Sirainen# If there is an NLM target, put it here
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenTARGET_nlm = \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# If there is an LIB target, put it here
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenTARGET_lib = \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# These are the OBJ files needed to create the NLM target above.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# Paths must all use the '/' character
db693bf6fcae96d834567f1782257517b7207655Timo SirainenFILES_nlm_objs = \
b4ddb5b3c3722620a8fef387dd8c47bb411a5643Timo Sirainen# These are the LIB files needed to create the NLM target above.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# These will be added as a library command in the link.opt file.
300e4e43ed1ca46d0614459161ca2fb460ef661aTimo SirainenFILES_nlm_libs = \
300e4e43ed1ca46d0614459161ca2fb460ef661aTimo Sirainen# These are the modules that the above NLM target depends on to load.
300e4e43ed1ca46d0614459161ca2fb460ef661aTimo Sirainen# These will be added as a module command in the link.opt file.
300e4e43ed1ca46d0614459161ca2fb460ef661aTimo SirainenFILES_nlm_modules = \
6468191d64827a2d1481c091ec499874583c834eTimo Sirainen# If the nlm has a msg file, put it's path here
6468191d64827a2d1481c091ec499874583c834eTimo SirainenFILE_nlm_msg =
6468191d64827a2d1481c091ec499874583c834eTimo Sirainen# If the nlm has a hlp file put it's path here
6468191d64827a2d1481c091ec499874583c834eTimo SirainenFILE_nlm_hlp =
6468191d64827a2d1481c091ec499874583c834eTimo Sirainen# If this is specified, it will override $(NWOS)\copyright.txt.
861f53be0cc2fa5665f3c107a7576e2a53bb2eb0Timo SirainenFILE_nlm_copyright =
db3b95d5a33ddce552d41136ae68d7331f8bf5feTimo Sirainen# Any additional imports go here
db3b95d5a33ddce552d41136ae68d7331f8bf5feTimo SirainenFILES_nlm_Ximports = \
6468191d64827a2d1481c091ec499874583c834eTimo Sirainen# Any symbols exported to here
6468191d64827a2d1481c091ec499874583c834eTimo SirainenFILES_nlm_exports = \
6468191d64827a2d1481c091ec499874583c834eTimo Sirainen access_compat_module \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# These are the OBJ files needed to create the LIB target above.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# Paths must all use the '/' character
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenFILES_lib_objs = \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# implement targets and dependancies (leave this section alone)
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainenlibs :: $(OBJDIR) $(TARGET_lib)
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainennlms :: libs $(TARGET_nlm)
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# Updated this target to create necessary directories and copy files to the
2efe19d9045768d985a3bd549cff12f65ba40cc8Timo Sirainen# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
b6b9c99fefbbc662bd9a0006566133c4480bf0e8Timo Siraineninstall :: nlms FORCE
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# Any specialized rules here
5b4d189a01d248458496068f838128f1bafdcf2eTimo Sirainen# Include the 'tail' makefile that has targets that depend on variables defined
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# in this makefile
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Siraineninclude $(AP_WORK)\build\NWGNUtail.inc