NWGNUvhost revision 0662ed52e814f8f08ef0e09956413a792584eddf
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# Make sure all needed macro's are defined
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# Get the 'head' of the build environment if necessary. This includes default
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# targets and paths to tools
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozekifndef EnvironmentDefined
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozekinclude $(AP_WORK)/build/NWGNUhead.inc
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# These directories will be at the beginning of the include list, followed by
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub HrozekXINCDIRS += \
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek $(APR)/include \
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek $(APRUTIL)/include \
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek $(AP_WORK)/include \
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# These flags will come after CFLAGS
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# These defines will come after DEFINES
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub HrozekXDEFINES += \
1f8bfb6975becda07ff29f557f82b6ac1eaa0be9Jakub Hrozek# These flags will be added to the link.opt file
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# These values will be appended to the correct variables based on the value of
0d6d493f68bb83a046d351cb3035b08ef5456b50Justin Stephensonifeq "$(RELEASE)" "debug"
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub HrozekXINCDIRS += \
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub HrozekXDEFINES += \
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozekifeq "$(RELEASE)" "noopt"
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub HrozekXDEFINES += \
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozekifeq "$(RELEASE)" "release"
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub HrozekXINCDIRS += \
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub HrozekXDEFINES += \
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# These are used by the link target if an NLM is being generated
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# This is used by the link 'name' directive to name the nlm. If left blank
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# TARGET_nlm (see below) will be used.
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub HrozekNLM_NAME = vhost
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# This is used by the link '-desc ' directive.
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# If left blank, NLM_NAME will be used.
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub HrozekNLM_DESCRIPTION = Apache $(VERSION_STR) Vhost Alias Module
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# This is used by the '-threadname' directive. If left blank,
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# NLM_NAME Thread will be used.
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub HrozekNLM_THREAD_NAME = Vhost Alias Module
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# If this is specified, it will override VERSION value in
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub HrozekNLM_VERSION =
fc91d72f32660712f7c9e872e00deb91f188fea3Jakub Hrozek# If this is specified, it will override the default of 64K
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub HrozekNLM_STACK_SIZE = 8192
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# If this is specified it will be used by the link '-entry' directive
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub HrozekNLM_ENTRY_SYM =
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# If this is specified it will be used by the link '-exit' directive
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub HrozekNLM_EXIT_SYM =
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# If this is specified it will be used by the link '-check' directive
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub HrozekNLM_CHECK_SYM =
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# If these are specified it will be used by the link '-flags' directive
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# If this is specified it will be linked in with the XDCData option in the def
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# by setting APACHE_UNIPROC in the environment
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# If there is an NLM target, put it here
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub HrozekTARGET_nlm = \
0d6d493f68bb83a046d351cb3035b08ef5456b50Justin Stephenson# If there is an LIB target, put it here
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub HrozekTARGET_lib = \
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# These are the OBJ files needed to create the NLM target above.
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# Paths must all use the '/' character
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub HrozekFILES_nlm_objs = \
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# These are the LIB files needed to create the NLM target above.
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# These will be added as a library command in the link.opt file.
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub HrozekFILES_nlm_libs = \
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# These are the modules that the above NLM target depends on to load.
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# These will be added as a module command in the link.opt file.
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub HrozekFILES_nlm_modules = \
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# If the nlm has a msg file, put it's path here
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub HrozekFILE_nlm_msg =
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# If the nlm has a hlp file put it's path here
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub HrozekFILE_nlm_hlp =
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# If this is specified, it will override $(NWOS)\copyright.txt.
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub HrozekFILE_nlm_copyright =
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# Any additional imports go here
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub HrozekFILES_nlm_Ximports = \
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# Any symbols exported to here
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub HrozekFILES_nlm_exports = \
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek vhost_alias_module \
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# These are the OBJ files needed to create the LIB target above.
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# Paths must all use the '/' character
fc91d72f32660712f7c9e872e00deb91f188fea3Jakub HrozekFILES_lib_objs = \
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# implement targets and dependancies (leave this section alone)
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozeklibs :: $(OBJDIR) $(TARGET_lib)
fc91d72f32660712f7c9e872e00deb91f188fea3Jakub Hrozeknlms :: libs $(TARGET_nlm)
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# Updated this target to create necessary directories and copy files to the
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozekinstall :: nlms FORCE
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# Any specialized rules here
0d6d493f68bb83a046d351cb3035b08ef5456b50Justin Stephenson# Include the 'tail' makefile that has targets that depend on variables defined
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozek# in this makefile
c71e0a6710418991d759a329b8dcb77c7ad3e16eJakub Hrozekinclude $(APBUILD)/NWGNUtail.inc