NWGNUmodversion revision 70953fb44a7140fe206c3a5f011e24209c8c5c6a
36983956d7c3d9e294903eeda29548f67ac17daeBob Halley# Make sure all needed macro's are defined
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafsson# Get the 'head' of the build environment if necessary. This includes default
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafsson# targets and paths to tools
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafssonifndef EnvironmentDefined
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafssoninclude $(AP_WORK)\build\NWGNUhead.inc
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafsson# These directories will be at the beginning of the include list, followed by
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafsson $(AP_WORK)/include \
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafsson $(APR)/include \
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafsson $(APRUTIL)/include \
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafsson# These flags will come after CFLAGS
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafsson# These defines will come after DEFINES
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafsson# These flags will be added to the link.opt file
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafsson# These values will be appended to the correct variables based on the value of
4d5f44e7933f4cb691e8f4cf3b4b5f61c27e2b1cAndreas Gustafssonifeq "$(RELEASE)" "debug"
4d5f44e7933f4cb691e8f4cf3b4b5f61c27e2b1cAndreas Gustafssonifeq "$(RELEASE)" "noopt"
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas Gustafssonifeq "$(RELEASE)" "release"
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas Gustafsson# These are used by the link target if an NLM is being generated
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas Gustafsson# This is used by the link 'name' directive to name the nlm. If left blank
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas Gustafsson# TARGET_nlm (see below) will be used.
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas GustafssonNLM_NAME = modversion
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas Gustafsson# This is used by the link '-desc ' directive.
8cc03bfc0c9eaee8c186843fef75c58093616d04Mark Andrews# If left blank, NLM_NAME will be used.
8cc03bfc0c9eaee8c186843fef75c58093616d04Mark AndrewsNLM_DESCRIPTION = Apache $(VERSION_STR) Version Module
7c956aeeeb8da3fd3912b1fb8024ff274e3b07ebAndreas Gustafsson# This is used by the '-threadname' directive. If left blank,
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas Gustafsson# NLM_NAME Thread will be used.
e5256e34b4a26a26088b2dc5ca621b42c0750256Andreas GustafssonNLM_THREAD_NAME = Version Module
40d01ce8f3a1889f5799d9b22b26d5398fa75a1bBob Halley# If this is specified, it will override VERSION value in
40d01ce8f3a1889f5799d9b22b26d5398fa75a1bBob Halley# $(AP_WORK)\build\NWGNUenvironment.inc
8db66dc4eb654a2e295eaeab3aaf96e24c9ae7b7Bob HalleyNLM_VERSION =
501da430e2f16f496f8e8d1b57ab77f78428c682David Lawrence# If this is specified, it will override the default of 64K
36983956d7c3d9e294903eeda29548f67ac17daeBob HalleyNLM_STACK_SIZE = 8192
36983956d7c3d9e294903eeda29548f67ac17daeBob Halley# If this is specified it will be used by the link '-entry' directive
d80ccd47ad4b526f82590b6c182b4dd80006712eAndreas GustafssonNLM_ENTRY_SYM = _LibCPrelude
d80ccd47ad4b526f82590b6c182b4dd80006712eAndreas Gustafsson# If this is specified it will be used by the link '-exit' directive
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas GustafssonNLM_EXIT_SYM = _LibCPostlude
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas Gustafsson# If this is specified it will be used by the link '-check' directive
e544b507b8019a62c5d2716281f6832519a8791dDavid LawrenceNLM_CHECK_SYM =
36983956d7c3d9e294903eeda29548f67ac17daeBob Halley# If these are specified it will be used by the link '-flags' directive
36983956d7c3d9e294903eeda29548f67ac17daeBob HalleyNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas Gustafsson# If this is specified it will be linked in with the XDCData option in the def
b70fc17acec2c036bb35a937ba00fbcf10848859David Lawrence# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas Gustafsson# by setting APACHE_UNIPROC in the environment
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas Gustafsson# If there is an NLM target, put it here
b70fc17acec2c036bb35a937ba00fbcf10848859David LawrenceTARGET_nlm = \
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas Gustafsson $(OBJDIR)/$(NLM_NAME).nlm \
b70fc17acec2c036bb35a937ba00fbcf10848859David Lawrence# If there is an LIB target, put it here
69930116e30137705d3b87d05cbfbc5712386fdeAndreas Gustafsson# These are the OBJ files needed to create the NLM target above.
69930116e30137705d3b87d05cbfbc5712386fdeAndreas Gustafsson# Paths must all use the '/' character
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas GustafssonFILES_nlm_objs = \
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# These are the LIB files needed to create the NLM target above.
3b8932de20e12b07f9d874d5538d30e1fac9a9f4Andreas Gustafsson# These will be added as a library command in the link.opt file.
36983956d7c3d9e294903eeda29548f67ac17daeBob HalleyFILES_nlm_libs = \
5f5bb44065a3e7f506e4afd4d81c89da2931bf1bBob Halley# These are the modules that the above NLM target depends on to load.
5f5bb44065a3e7f506e4afd4d81c89da2931bf1bBob Halley# These will be added as a module command in the link.opt file.
36983956d7c3d9e294903eeda29548f67ac17daeBob HalleyFILES_nlm_modules = \
4efe2e812cf8462ed781bfd79b644eaf17d6d2b7Andreas Gustafsson# If the nlm has a msg file, put it's path here
3637ad3b4e59fc92d3c68b5eabc479bb0ebd570eAndreas Gustafsson# If the nlm has a hlp file put it's path here
4efe2e812cf8462ed781bfd79b644eaf17d6d2b7Andreas Gustafsson# If this is specified, it will override $(NWOS)\copyright.txt.
413d5565ba2af24f12dc54d6e6807af7f1a39867Andreas GustafssonFILE_nlm_copyright =
413d5565ba2af24f12dc54d6e6807af7f1a39867Andreas Gustafsson# Any additional imports go here
413d5565ba2af24f12dc54d6e6807af7f1a39867Andreas GustafssonFILES_nlm_Ximports = \
413d5565ba2af24f12dc54d6e6807af7f1a39867Andreas Gustafsson# Any symbols exported to here
36983956d7c3d9e294903eeda29548f67ac17daeBob HalleyFILES_nlm_exports = \
36983956d7c3d9e294903eeda29548f67ac17daeBob Halley version_module \
36983956d7c3d9e294903eeda29548f67ac17daeBob Halley# These are the OBJ files needed to create the LIB target above.
36983956d7c3d9e294903eeda29548f67ac17daeBob Halley# Paths must all use the '/' character
36983956d7c3d9e294903eeda29548f67ac17daeBob HalleyFILES_lib_objs = \
36983956d7c3d9e294903eeda29548f67ac17daeBob Halley# implement targets and dependancies (leave this section alone)
# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
include $(AP_WORK)\build\NWGNUtail.inc