NWGNUlogdebug revision 44f575c8cb19a7a5cd61664a7848be6bc197df02
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# Declare the sub-directories to be built here
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# Get the 'head' of the build environment. This includes default targets and
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# paths to tools
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankginclude $(AP_WORK)/build/NWGNUhead.inc
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# build this level's files
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# Make sure all needed macro's are defined
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# These directories will be at the beginning of the include list, followed by
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgXINCDIRS += \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg $(APR)/include \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg $(APRUTIL)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(SRC)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(STDMOD)/http \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# These flags will come after CFLAGS
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgXCFLAGS += \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# These defines will come after DEFINES
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgXDEFINES += \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# These flags will be added to the link.opt file
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgXLFLAGS += \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# These values will be appended to the correct variables based on the value of
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgifeq "$(RELEASE)" "debug"
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgXINCDIRS += \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgXCFLAGS += \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgXDEFINES += \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgXLFLAGS += \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgifeq "$(RELEASE)" "noopt"
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgXINCDIRS += \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgXCFLAGS += \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgXDEFINES += \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgXLFLAGS += \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgifeq "$(RELEASE)" "release"
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgXINCDIRS += \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgXCFLAGS += \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgXDEFINES += \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgXLFLAGS += \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# These are used by the link target if an NLM is being generated
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# This is used by the link 'name' directive to name the nlm. If left blank
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# TARGET_nlm (see below) will be used.
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgNLM_NAME = logdebug
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# This is used by the link '-desc ' directive.
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# If left blank, NLM_NAME will be used.
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgNLM_DESCRIPTION = Apache $(VERSION_STR) Debug Logging Module
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# This is used by the '-threadname' directive. If left blank,
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# NLM_NAME Thread will be used.
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgNLM_THREAD_NAME = Logdbg Module
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# If this is specified, it will override VERSION value in
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgNLM_VERSION =
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# If this is specified, it will override the default of 64K
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgNLM_STACK_SIZE = 8192
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# If this is specified it will be used by the link '-entry' directive
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgNLM_ENTRY_SYM =
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# If this is specified it will be used by the link '-exit' directive
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgNLM_EXIT_SYM =
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# If this is specified it will be used by the link '-check' directive
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgNLM_CHECK_SYM =
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# If these are specified it will be used by the link '-flags' directive
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# If this is specified it will be linked in with the XDCData option in the def
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# by setting APACHE_UNIPROC in the environment
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# If there is an NLM target, put it here
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgTARGET_nlm = \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg $(OBJDIR)/$(NLM_NAME).nlm \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# If there is an LIB target, put it here
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgTARGET_lib = \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# These are the OBJ files needed to create the NLM target above.
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# Paths must all use the '/' character
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgFILES_nlm_objs = \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# These are the LIB files needed to create the NLM target above.
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# These will be added as a library command in the link.opt file.
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgFILES_nlm_libs = \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg $(PRELUDE) \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# These are the modules that the above NLM target depends on to load.
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# These will be added as a module command in the link.opt file.
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgFILES_nlm_modules = \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# If the nlm has a msg file, put it's path here
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgFILE_nlm_msg =
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# If the nlm has a hlp file put it's path here
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgFILE_nlm_hlp =
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# If this is specified, it will override $(NWOS)\copyright.txt.
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgFILE_nlm_copyright =
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# Any additional imports go here
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgFILES_nlm_Ximports = \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# Any symbols exported to here
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgFILES_nlm_exports = \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg log_debug_module \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# These are the OBJ files needed to create the LIB target above.
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# Paths must all use the '/' character
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgFILES_lib_objs = \
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# implement targets and dependancies (leave this section alone)
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankglibs :: $(OBJDIR) $(TARGET_lib)
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankgnlms :: libs $(TARGET_nlm)
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# Updated this target to create necessary directories and copy files to the
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankginstall :: nlms FORCE
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg $(call COPY,$(OBJDIR)/*.nlm, $(INSTALLBASE)/modules/)
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# Any specialized rules here
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# Include the 'tail' makefile that has targets that depend on variables defined
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankg# in this makefile
1850c8c89f2d775a2e905832b77b9bcc3bd46db4fuankginclude $(APBUILD)/NWGNUtail.inc