ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# Make sure all needed macro's are defined
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# Get the 'head' of the build environment if necessary. This includes default
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# targets and paths to tools
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgifndef EnvironmentDefined
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankginclude $(AP_WORK)/build/NWGNUhead.inc
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgendif
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# These directories will be at the beginning of the include list, followed by
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# INCDIRS
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgXINCDIRS += \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(APR)/include \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(APRUTIL)/include \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(SRC)/include \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(NWOS) \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(EOLIST)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# These flags will come after CFLAGS
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgXCFLAGS += \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(EOLIST)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# These defines will come after DEFINES
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgXDEFINES += \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(EOLIST)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# These flags will be added to the link.opt file
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgXLFLAGS += \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(EOLIST)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# These values will be appended to the correct variables based on the value of
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# RELEASE
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgifeq "$(RELEASE)" "debug"
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgXINCDIRS += \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(EOLIST)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgXCFLAGS += \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(EOLIST)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgXDEFINES += \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(EOLIST)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgXLFLAGS += \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(EOLIST)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgendif
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgifeq "$(RELEASE)" "noopt"
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgXINCDIRS += \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(EOLIST)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgXCFLAGS += \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(EOLIST)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgXDEFINES += \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(EOLIST)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgXLFLAGS += \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(EOLIST)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgendif
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgifeq "$(RELEASE)" "release"
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgXINCDIRS += \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(EOLIST)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgXCFLAGS += \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(EOLIST)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgXDEFINES += \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(EOLIST)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgXLFLAGS += \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(EOLIST)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgendif
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# These are used by the link target if an NLM is being generated
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# This is used by the link 'name' directive to name the nlm. If left blank
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# TARGET_nlm (see below) will be used.
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgNLM_NAME = allowhandlers
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# This is used by the link '-desc ' directive.
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# If left blank, NLM_NAME will be used.
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgNLM_DESCRIPTION = Apache $(VERSION_STR) Handler Restriction Module
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# This is used by the '-threadname' directive. If left blank,
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# NLM_NAME Thread will be used.
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgNLM_THREAD_NAME = Allowhandlers Module
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# If this is specified, it will override VERSION value in
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# $(AP_WORK)/build/NWGNUenvironment.inc
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgNLM_VERSION =
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# If this is specified, it will override the default of 64K
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgNLM_STACK_SIZE = 8192
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# If this is specified it will be used by the link '-entry' directive
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgNLM_ENTRY_SYM =
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# If this is specified it will be used by the link '-exit' directive
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgNLM_EXIT_SYM =
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# If this is specified it will be used by the link '-check' directive
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgNLM_CHECK_SYM =
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# If these are specified it will be used by the link '-flags' directive
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgNLM_FLAGS =
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# If this is specified it will be linked in with the XDCData option in the def
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# by setting APACHE_UNIPROC in the environment
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgXDCDATA =
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# If there is an NLM target, put it here
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgTARGET_nlm = \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(OBJDIR)/allowhandlers.nlm \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(EOLIST)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# If there is an LIB target, put it here
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgTARGET_lib = \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(EOLIST)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# These are the OBJ files needed to create the NLM target above.
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# Paths must all use the '/' character
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgFILES_nlm_objs = \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(OBJDIR)/mod_allowhandlers.o \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(EOLIST)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# These are the LIB files needed to create the NLM target above.
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# These will be added as a library command in the link.opt file.
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgFILES_nlm_libs = \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(PRELUDE) \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(EOLIST)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# These are the modules that the above NLM target depends on to load.
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# These will be added as a module command in the link.opt file.
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgFILES_nlm_modules = \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg aprlib \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg libc \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(EOLIST)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# If the nlm has a msg file, put it's path here
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgFILE_nlm_msg =
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# If the nlm has a hlp file put it's path here
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgFILE_nlm_hlp =
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# If this is specified, it will override $(NWOS)\copyright.txt.
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgFILE_nlm_copyright =
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# Any additional imports go here
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgFILES_nlm_Ximports = \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg @aprlib.imp \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg @httpd.imp \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg @libc.imp \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(EOLIST)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# Any symbols exported to here
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgFILES_nlm_exports = \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg allowhandlers_module \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(EOLIST)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# These are the OBJ files needed to create the LIB target above.
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# Paths must all use the '/' character
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgFILES_lib_objs = \
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg $(EOLIST)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# implement targets and dependancies (leave this section alone)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankglibs :: $(OBJDIR) $(TARGET_lib)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankgnlms :: libs $(TARGET_nlm)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# Updated this target to create necessary directories and copy files to the
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankginstall :: nlms FORCE
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# Any specialized rules here
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# Include the 'tail' makefile that has targets that depend on variables defined
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg# in this makefile
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg#
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankginclude $(APBUILD)/NWGNUtail.inc
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg
ef06a12023b00bdbe0b983192e4afdbdb21139e3fuankg