NWGNUmodversion revision ac7985784d08a3655291f24f711812b4d8b1cbcf
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# Make sure all needed macro's are defined
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# Get the 'head' of the build environment if necessary. This includes default
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# targets and paths to tools
068a66979695c77359e7a9181bb3f831c965b21cMark Andrewsifndef EnvironmentDefined
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtoninclude $(AP_WORK)\build\NWGNUhead.inc
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# These directories will be at the beginning of the include list, followed by
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsXINCDIRS += \
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews $(AP_WORK)/include \
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews $(APR)/include \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(APRUTIL)/include \
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# These flags will come after CFLAGS
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# These defines will come after DEFINES
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsXDEFINES += \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# These flags will be added to the link.opt file
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# These values will be appended to the correct variables based on the value of
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonifeq "$(RELEASE)" "debug"
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsXINCDIRS += \
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsXDEFINES += \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrewsifeq "$(RELEASE)" "noopt"
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsXINCDIRS += \
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsXDEFINES += \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonifeq "$(RELEASE)" "release"
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# These are used by the link target if an NLM is being generated
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# This is used by the link 'name' directive to name the nlm. If left blank
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# TARGET_nlm (see below) will be used.
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsNLM_NAME = modversion
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# This is used by the link '-desc ' directive.
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# If left blank, NLM_NAME will be used.
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsNLM_DESCRIPTION = Apache $(VERSION_STR) Version Module
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# This is used by the '-threadname' directive. If left blank,
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# NLM_NAME Thread will be used.
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsNLM_THREAD_NAME = Version Module
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# If this is specified, it will override VERSION value in
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# $(AP_WORK)\build\NWGNUenvironment.inc
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsNLM_VERSION =
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# If this is specified, it will override the default of 64K
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsNLM_STACK_SIZE = 8192
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# If this is specified it will be used by the link '-entry' directive
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsNLM_ENTRY_SYM = _LibCPrelude
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# If this is specified it will be used by the link '-exit' directive
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsNLM_EXIT_SYM = _LibCPostlude
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# If this is specified it will be used by the link '-check' directive
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsNLM_CHECK_SYM =
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# If these are specified it will be used by the link '-flags' directive
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# If this is specified it will be linked in with the XDCData option in the def
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# by setting APACHE_UNIPROC in the environment
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# If there is an NLM target, put it here
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews $(OBJDIR)/$(NLM_NAME).nlm \
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# If there is an LIB target, put it here
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsTARGET_lib = \
09344332cf7840e7e219215128fd52ea4c3d6942Mark Andrews# These are the OBJ files needed to create the NLM target above.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Paths must all use the '/' character
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsFILES_nlm_objs = \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# These are the LIB files needed to create the NLM target above.
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# These will be added as a library command in the link.opt file.
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsFILES_nlm_libs = \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# These are the modules that the above NLM target depends on to load.
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# These will be added as a module command in the link.opt file.
e076d0c88be69de7c190ab924d095e69d2e11f7aAndreas GustafssonFILES_nlm_modules = \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# If the nlm has a msg file, put it's path here
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsFILE_nlm_msg =
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# If the nlm has a hlp file put it's path here
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonFILE_nlm_hlp =
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# If this is specified, it will override $(NWOS)\copyright.txt.
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsFILE_nlm_copyright =
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# Any additional imports go here
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonFILES_nlm_Ximports = \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Any symbols exported to here
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonFILES_nlm_exports = \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington version_module \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# These are the OBJ files needed to create the LIB target above.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Paths must all use the '/' character
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonFILES_lib_objs = \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# implement targets and dependancies (leave this section alone)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonlibs :: $(OBJDIR) $(TARGET_lib)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonnlms :: libs $(TARGET_nlm)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Updated this target to create necessary directories and copy files to the
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtoninstall :: nlms FORCE
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Any specialized rules here
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Include the 'tail' makefile that has targets that depend on variables defined
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# in this makefile
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtoninclude $(AP_WORK)\build\NWGNUtail.inc