NWGNUmem_cach revision 70953fb44a7140fe206c3a5f011e24209c8c5c6a
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# Declare the sub-directories to be built here
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# Get the 'head' of the build environment. This includes default targets and
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# paths to tools
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Siraineninclude $(AP_WORK)\build\NWGNUhead.inc
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# build this level's files
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# Make sure all needed macro's are defined
4462bd7b4c7ef3de006f060e155a90e5de7cae21Timo Sirainen# These directories will be at the beginning of the include list, followed by
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen $(APR)/include \
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen $(APRUTIL)/include \
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen $(AP_WORK)/include \
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# These flags will come after CFLAGS
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# These defines will come after DEFINES
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# These flags will be added to the link.opt file
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# These values will be appended to the correct variables based on the value of
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainenifeq "$(RELEASE)" "debug"
2f779122ee7263be9c8fc7ffd6fa7405e888d755Timo Sirainenifeq "$(RELEASE)" "noopt"
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainenifeq "$(RELEASE)" "release"
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# These are used by the link target if an NLM is being generated
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# This is used by the link 'name' directive to name the nlm. If left blank
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# TARGET_nlm (see below) will be used.
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo SirainenNLM_NAME = mem_cach
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# This is used by the link '-desc ' directive.
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# If left blank, NLM_NAME will be used.
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo SirainenNLM_DESCRIPTION = Apache $(VERSION_STR) Memory Cache Sub-Module
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# This is used by the '-threadname' directive. If left blank,
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# NLM_NAME Thread will be used.
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo SirainenNLM_THREAD_NAME = mem_cach
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# If this is specified, it will override VERSION value in
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# $(AP_WORK)\build\NWGNUenvironment.inc
2f779122ee7263be9c8fc7ffd6fa7405e888d755Timo Sirainen# If this is specified, it will override the default of 64K
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo SirainenNLM_STACK_SIZE = 65536
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# If this is specified it will be used by the link '-entry' directive
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo SirainenNLM_ENTRY_SYM = _LibCPrelude
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# If this is specified it will be used by the link '-exit' directive
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo SirainenNLM_EXIT_SYM = _LibCPostlude
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# If this is specified it will be used by the link '-check' directive
2f779122ee7263be9c8fc7ffd6fa7405e888d755Timo SirainenNLM_CHECK_SYM =
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# If this is specified it will be used by the link '-flags' directive
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo SirainenNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
132bfe8fcb7a1be790dc8b5bf9d155c9f060808dTimo Sirainen# If this is specified it will be linked in with the XDCData option in the def
132bfe8fcb7a1be790dc8b5bf9d155c9f060808dTimo Sirainen# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
132bfe8fcb7a1be790dc8b5bf9d155c9f060808dTimo Sirainen# by setting APACHE_UNIPROC in the environment
132bfe8fcb7a1be790dc8b5bf9d155c9f060808dTimo Sirainen# Declare all target files (you must add your files here)
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# If there is an NLM target, put it here
2f779122ee7263be9c8fc7ffd6fa7405e888d755Timo SirainenTARGET_nlm = \
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# If there is an LIB target, put it here
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo SirainenTARGET_lib = \
2f779122ee7263be9c8fc7ffd6fa7405e888d755Timo Sirainen# These are the OBJ files needed to create the NLM target above.
2f779122ee7263be9c8fc7ffd6fa7405e888d755Timo Sirainen# Paths must all use the '/' character
2f779122ee7263be9c8fc7ffd6fa7405e888d755Timo SirainenFILES_nlm_objs = \
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# These are the LIB files needed to create the NLM target above.
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# These will be added as a library command in the link.opt file.
2f779122ee7263be9c8fc7ffd6fa7405e888d755Timo SirainenFILES_nlm_libs = \
206ac4273fa102500fa017f0c21a4fd72e94665aTimo Sirainen# These are the modules that the above NLM target depends on to load.
206ac4273fa102500fa017f0c21a4fd72e94665aTimo Sirainen# These will be added as a module command in the link.opt file.
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo SirainenFILES_nlm_modules = \
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# If the nlm has a msg file, put it's path here
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo SirainenFILE_nlm_msg =
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# If the nlm has a hlp file put it's path here
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo SirainenFILE_nlm_hlp =
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# If this is specified, it will override $(NWOS)\copyright.txt.
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo SirainenFILE_nlm_copyright =
2f779122ee7263be9c8fc7ffd6fa7405e888d755Timo Sirainen# Any additional imports go here
2f779122ee7263be9c8fc7ffd6fa7405e888d755Timo SirainenFILES_nlm_Ximports = \
5666a3d6a7ea89362b8d9e8b39b15424cd9d6388Timo Sirainen# Any symbols exported to here
5666a3d6a7ea89362b8d9e8b39b15424cd9d6388Timo SirainenFILES_nlm_exports = \
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen mem_cache_module \
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen# These are the OBJ files needed to create the LIB target above.
# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
include $(AP_WORK)\build\NWGNUtail.inc