NWGNUvhost revision 44f575c8cb19a7a5cd61664a7848be6bc197df02
5cd4555ad444fd391002ae32450572054369fd42Rob Austein# Make sure all needed macro's are defined
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Get the 'head' of the build environment if necessary. This includes default
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# targets and paths to tools
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellingtonifndef EnvironmentDefined
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# These directories will be at the beginning of the include list, followed by
dafcb997e390efa4423883dafd100c975c4095d6Mark AndrewsXINCDIRS += \
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington $(APR)/include \
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews $(APRUTIL)/include \
d60212e03fbef1d3dd7f7eb05c0545cc373cb9fcAutomatic Updater $(SRC)/include \
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews $(STDMOD)/http \
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# These flags will come after CFLAGS
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# These defines will come after DEFINES
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinXDEFINES += \
d60212e03fbef1d3dd7f7eb05c0545cc373cb9fcAutomatic Updater# These flags will be added to the link.opt file
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# These values will be appended to the correct variables based on the value of
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinifeq "$(RELEASE)" "debug"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinXINCDIRS += \
c40265eba0c99708887d68e67901924065ba2514Brian Wellingtonifeq "$(RELEASE)" "noopt"
c5223c9cb7c22620d5ee6611228673e95b48a270Mark AndrewsXDEFINES += \
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrewsifeq "$(RELEASE)" "release"
a903095bf4512dae561c7f6fc7854a51bebf334aMark AndrewsXINCDIRS += \
a903095bf4512dae561c7f6fc7854a51bebf334aMark AndrewsXDEFINES += \
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews# These are used by the link target if an NLM is being generated
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews# This is used by the link 'name' directive to name the nlm. If left blank
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews# TARGET_nlm (see below) will be used.
a903095bf4512dae561c7f6fc7854a51bebf334aMark AndrewsNLM_NAME = vhost
43efd9fa56b03e3e285fb58859efc9348c7f4a9fMark Andrews# This is used by the link '-desc ' directive.
43efd9fa56b03e3e285fb58859efc9348c7f4a9fMark Andrews# If left blank, NLM_NAME will be used.
508f61f8d699c46f962b682f388e54b446a7194dMark AndrewsNLM_DESCRIPTION = Apache $(VERSION_STR) Vhost Alias Module
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# This is used by the '-threadname' directive. If left blank,
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# NLM_NAME Thread will be used.
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonNLM_THREAD_NAME = Vhost Alias Module
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If this is specified, it will override VERSION value in
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinNLM_VERSION =
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews# If this is specified, it will override the default of 64K
a903095bf4512dae561c7f6fc7854a51bebf334aMark AndrewsNLM_STACK_SIZE = 8192
8b9fc7617b8f54641708c985697848e6cc10a5bbMark Andrews# If this is specified it will be used by the link '-entry' directive
a903095bf4512dae561c7f6fc7854a51bebf334aMark AndrewsNLM_ENTRY_SYM =
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# If this is specified it will be used by the link '-exit' directive
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonNLM_EXIT_SYM =
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# If this is specified it will be used by the link '-check' directive
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinNLM_CHECK_SYM =
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If these are specified it will be used by the link '-flags' directive
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews# If this is specified it will be linked in with the XDCData option in the def
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews# by setting APACHE_UNIPROC in the environment
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews# If there is an NLM target, put it here
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonTARGET_nlm = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If there is an LIB target, put it here
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonTARGET_lib = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# These are the OBJ files needed to create the NLM target above.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Paths must all use the '/' character
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFILES_nlm_objs = \
e9359db5e958bf05f9b9c5fe3c27d533f0f05550Mark Andrews# These are the LIB files needed to create the NLM target above.
7791dd06ea69d0fb2494788ad4c24d568f40bcdfMark Andrews# These will be added as a library command in the link.opt file.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFILES_nlm_libs = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(PRELUDE) \
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# These are the modules that the above NLM target depends on to load.
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# These will be added as a module command in the link.opt file.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFILES_nlm_modules = \
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews# If the nlm has a msg file, put it's path here
c5223c9cb7c22620d5ee6611228673e95b48a270Mark AndrewsFILE_nlm_msg =
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews# If the nlm has a hlp file put it's path here
2c15fcdeac4c2402258867fbac24d7475ef98259Mark AndrewsFILE_nlm_hlp =
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews# If this is specified, it will override $(NWOS)\copyright.txt.
c5223c9cb7c22620d5ee6611228673e95b48a270Mark AndrewsFILE_nlm_copyright =
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews# Any additional imports go here
c5223c9cb7c22620d5ee6611228673e95b48a270Mark AndrewsFILES_nlm_Ximports = \
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews# Any symbols exported to here
561a29af8c54a216e7d30b5b4f6e0d21661654ecMark AndrewsFILES_nlm_exports = \
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews vhost_alias_module \
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews# These are the OBJ files needed to create the LIB target above.
2c15fcdeac4c2402258867fbac24d7475ef98259Mark Andrews# Paths must all use the '/' character
2c15fcdeac4c2402258867fbac24d7475ef98259Mark AndrewsFILES_lib_objs = \
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews# implement targets and dependancies (leave this section alone)
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrewslibs :: $(OBJDIR) $(TARGET_lib)
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrewsnlms :: libs $(TARGET_nlm)
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews# Updated this target to create necessary directories and copy files to the
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrewsinstall :: nlms FORCE
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews# Any specialized rules here
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews# Include the 'tail' makefile that has targets that depend on variables defined
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews# in this makefile
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrewsinclude $(APBUILD)/NWGNUtail.inc