eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# Declare the sub-directories to be built here
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# Get the 'head' of the build environment. This includes default targets and
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# paths to tools
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankginclude $(AP_WORK)/build/NWGNUhead.inc
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# build this level's files
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# Make sure all needed macro's are defined
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# These directories will be at the beginning of the include list, followed by
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgXINCDIRS += \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg $(APR)/include \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg $(APRUTIL)/include \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg $(SRC)/include \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# These flags will come after CFLAGS
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgXCFLAGS += \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# These defines will come after DEFINES
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgXDEFINES += \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# These flags will be added to the link.opt file
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgXLFLAGS += \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# These values will be appended to the correct variables based on the value of
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgifeq "$(RELEASE)" "debug"
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgXINCDIRS += \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgXCFLAGS += \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgXDEFINES += \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgXLFLAGS += \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgifeq "$(RELEASE)" "noopt"
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgXINCDIRS += \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgXCFLAGS += \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgXDEFINES += \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgXLFLAGS += \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgifeq "$(RELEASE)" "release"
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgXINCDIRS += \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgXCFLAGS += \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgXDEFINES += \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgXLFLAGS += \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# These are used by the link target if an NLM is being generated
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# This is used by the link 'name' directive to name the nlm. If left blank
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# TARGET_nlm (see below) will be used.
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgNLM_NAME = policy
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# This is used by the link '-desc ' directive.
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# If left blank, NLM_NAME will be used.
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgNLM_DESCRIPTION = Apache $(VERSION_STR) Policy Module
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# This is used by the '-threadname' directive. If left blank,
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# NLM_NAME Thread will be used.
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgNLM_THREAD_NAME = $(NLM_NAME) Module
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# If this is specified, it will override VERSION value in
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgNLM_VERSION =
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# If this is specified, it will override the default of 64K
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgNLM_STACK_SIZE = 8192
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# If this is specified it will be used by the link '-entry' directive
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgNLM_ENTRY_SYM =
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# If this is specified it will be used by the link '-exit' directive
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgNLM_EXIT_SYM =
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# If this is specified it will be used by the link '-check' directive
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgNLM_CHECK_SYM =
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# If these are specified it will be used by the link '-flags' directive
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# If this is specified it will be linked in with the XDCData option in the def
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# by setting APACHE_UNIPROC in the environment
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# If there is an NLM target, put it here
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgTARGET_nlm = \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg $(OBJDIR)/$(NLM_NAME).nlm \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# If there is an LIB target, put it here
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgTARGET_lib = \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# These are the OBJ files needed to create the NLM target above.
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# Paths must all use the '/' character
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgFILES_nlm_objs = \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# These are the LIB files needed to create the NLM target above.
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# These will be added as a library command in the link.opt file.
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgFILES_nlm_libs = \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg $(PRELUDE) \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# These are the modules that the above NLM target depends on to load.
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# These will be added as a module command in the link.opt file.
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgFILES_nlm_modules = \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# If the nlm has a msg file, put it's path here
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgFILE_nlm_msg =
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# If the nlm has a hlp file put it's path here
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgFILE_nlm_hlp =
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# If this is specified, it will override $(NWOS)\copyright.txt.
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgFILE_nlm_copyright =
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# Any additional imports go here
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgFILES_nlm_Ximports = \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# Any symbols exported to here
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgFILES_nlm_exports = \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg policy_module \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# These are the OBJ files needed to create the LIB target above.
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# Paths must all use the '/' character
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgFILES_lib_objs = \
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# implement targets and dependancies (leave this section alone)
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankglibs :: $(OBJDIR) $(TARGET_lib)
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankgnlms :: libs $(TARGET_nlm)
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# Updated this target to create necessary directories and copy files to the
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankginstall :: nlms FORCE
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# Any specialized rules here
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# Include the 'tail' makefile that has targets that depend on variables defined
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankg# in this makefile
eff68915baacc246f5ec7256f498b3d1dbbcf683fuankginclude $(APBUILD)/NWGNUtail.inc