NWGNUvhost revision 70953fb44a7140fe206c3a5f011e24209c8c5c6a
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox User# Make sure all needed macro's are defined
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Get the 'head' of the build environment if necessary. This includes default
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# targets and paths to tools
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinifndef EnvironmentDefined
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininclude $(AP_WORK)\build\NWGNUhead.inc
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These directories will be at the beginning of the include list, followed by
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinXINCDIRS += \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(AP_WORK)/include \
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews $(APR)/include \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(APRUTIL)/include \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These flags will come after CFLAGS
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These defines will come after DEFINES
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinXDEFINES += \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These flags will be added to the link.opt file
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These values will be appended to the correct variables based on the value of
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinifeq "$(RELEASE)" "debug"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinXINCDIRS += \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinXDEFINES += \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinifeq "$(RELEASE)" "noopt"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinifeq "$(RELEASE)" "release"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinXINCDIRS += \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These are used by the link target if an NLM is being generated
a1e81a1c5b029e4a44546de128f173524e8947a8Tinderbox User# This is used by the link 'name' directive to name the nlm. If left blank
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# TARGET_nlm (see below) will be used.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNLM_NAME = vhost
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# This is used by the link '-desc ' directive.
a1e81a1c5b029e4a44546de128f173524e8947a8Tinderbox User# If left blank, NLM_NAME will be used.
a1e81a1c5b029e4a44546de128f173524e8947a8Tinderbox UserNLM_DESCRIPTION = Apache $(VERSION_STR) Vhost Alias Module
507151045be68c671ffd4e2f37e17cdfa0376fc4Automatic Updater# This is used by the '-threadname' directive. If left blank,
507151045be68c671ffd4e2f37e17cdfa0376fc4Automatic Updater# NLM_NAME Thread will be used.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNLM_THREAD_NAME = Vhost Alias Module
71c66a876ecca77923638d3f94cc0783152b2f03Mark Andrews# If this is specified, it will override VERSION value in
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# $(AP_WORK)\build\NWGNUenvironment.inc
71c66a876ecca77923638d3f94cc0783152b2f03Mark AndrewsNLM_VERSION =
71c66a876ecca77923638d3f94cc0783152b2f03Mark Andrews# If this is specified, it will override the default of 64K
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNLM_STACK_SIZE = 8192
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If this is specified it will be used by the link '-entry' directive
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNLM_ENTRY_SYM = _LibCPrelude
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If this is specified it will be used by the link '-exit' directive
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNLM_EXIT_SYM = _LibCPostlude
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If this is specified it will be used by the link '-check' directive
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNLM_CHECK_SYM =
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If these are specified it will be used by the link '-flags' directive
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If this is specified it will be linked in with the XDCData option in the def
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# by setting APACHE_UNIPROC in the environment
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If there is an NLM target, put it here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinTARGET_nlm = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If there is an LIB target, put it here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinTARGET_lib = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These are the OBJ files needed to create the NLM target above.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Paths must all use the '/' character
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILES_nlm_objs = \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# These are the LIB files needed to create the NLM target above.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# These will be added as a library command in the link.opt file.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsFILES_nlm_libs = \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# These are the modules that the above NLM target depends on to load.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# These will be added as a module command in the link.opt file.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsFILES_nlm_modules = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If the nlm has a msg file, put it's path here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILE_nlm_msg =
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If the nlm has a hlp file put it's path here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILE_nlm_hlp =
afb33f777af856f8c3382604a7a8ffdfe2b512c5Automatic Updater# If this is specified, it will override $(NWOS)\copyright.txt.
afb33f777af856f8c3382604a7a8ffdfe2b512c5Automatic UpdaterFILE_nlm_copyright =
afb33f777af856f8c3382604a7a8ffdfe2b512c5Automatic Updater# Any additional imports go here
afb33f777af856f8c3382604a7a8ffdfe2b512c5Automatic UpdaterFILES_nlm_Ximports = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Any symbols exported to here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILES_nlm_exports = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein vhost_alias_module \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These are the OBJ files needed to create the LIB target above.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Paths must all use the '/' character
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILES_lib_objs = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# implement targets and dependancies (leave this section alone)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinlibs :: $(OBJDIR) $(TARGET_lib)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinnlms :: libs $(TARGET_nlm)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Updated this target to create necessary directories and copy files to the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininstall :: nlms FORCE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Any specialized rules here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Include the 'tail' makefile that has targets that depend on variables defined
ceeb18e6907a10547859faa340ecad83bedae90cMark Andrews# in this makefile
ceeb18e6907a10547859faa340ecad83bedae90cMark Andrewsinclude $(AP_WORK)\build\NWGNUtail.inc