33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# Declare the sub-directories to be built here
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgSUBDIRS = \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(EOLIST)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# Get the 'head' of the build environment. This includes default targets and
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# paths to tools
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankginclude $(AP_WORK)/build/NWGNUhead.inc
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# build this level's files
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# Make sure all needed macro's are defined
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# These directories will be at the beginning of the include list, followed by
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# INCDIRS
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgXINCDIRS += \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(APR)/include \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(APRUTIL)/include \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(SRC)/include \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(NWOS) \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(EOLIST)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# These flags will come after CFLAGS
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgXCFLAGS += \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(EOLIST)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# These defines will come after DEFINES
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgXDEFINES += \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(EOLIST)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# These flags will be added to the link.opt file
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgXLFLAGS += \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(EOLIST)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# These values will be appended to the correct variables based on the value of
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# RELEASE
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgifeq "$(RELEASE)" "debug"
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgXINCDIRS += \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(EOLIST)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgXCFLAGS += \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(EOLIST)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgXDEFINES += \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(EOLIST)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgXLFLAGS += \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(EOLIST)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgendif
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgifeq "$(RELEASE)" "noopt"
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgXINCDIRS += \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(EOLIST)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgXCFLAGS += \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(EOLIST)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgXDEFINES += \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(EOLIST)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgXLFLAGS += \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(EOLIST)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgendif
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgifeq "$(RELEASE)" "release"
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgXINCDIRS += \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(EOLIST)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgXCFLAGS += \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(EOLIST)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgXDEFINES += \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(EOLIST)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgXLFLAGS += \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(EOLIST)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgendif
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# These are used by the link target if an NLM is being generated
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# This is used by the link 'name' directive to name the nlm. If left blank
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# TARGET_nlm (see below) will be used.
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgNLM_NAME = macro
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# This is used by the link '-desc ' directive.
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# If left blank, NLM_NAME will be used.
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgNLM_DESCRIPTION = Apache $(VERSION_STR) Macro Module
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# This is used by the '-threadname' directive. If left blank,
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# NLM_NAME Thread will be used.
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgNLM_THREAD_NAME = Echo Module
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# If this is specified, it will override VERSION value in
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# $(AP_WORK)/build/NWGNUenvironment.inc
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgNLM_VERSION =
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# If this is specified, it will override the default of 64K
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgNLM_STACK_SIZE = 8192
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# If this is specified it will be used by the link '-entry' directive
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgNLM_ENTRY_SYM =
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# If this is specified it will be used by the link '-exit' directive
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgNLM_EXIT_SYM =
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# If this is specified it will be used by the link '-check' directive
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgNLM_CHECK_SYM =
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# If these are specified it will be used by the link '-flags' directive
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgNLM_FLAGS =
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# If this is specified it will be linked in with the XDCData option in the def
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# by setting APACHE_UNIPROC in the environment
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgXDCDATA =
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# If there is an NLM target, put it here
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgTARGET_nlm = \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(OBJDIR)/macro.nlm \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(EOLIST)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# If there is an LIB target, put it here
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgTARGET_lib = \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(EOLIST)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# These are the OBJ files needed to create the NLM target above.
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# Paths must all use the '/' character
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgFILES_nlm_objs = \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(OBJDIR)/mod_macro.o \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(EOLIST)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# These are the LIB files needed to create the NLM target above.
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# These will be added as a library command in the link.opt file.
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgFILES_nlm_libs = \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(PRELUDE) \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(EOLIST)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# These are the modules that the above NLM target depends on to load.
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# These will be added as a module command in the link.opt file.
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgFILES_nlm_modules = \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg aprlib \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg libc \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(EOLIST)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# If the nlm has a msg file, put it's path here
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgFILE_nlm_msg =
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# If the nlm has a hlp file put it's path here
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgFILE_nlm_hlp =
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# If this is specified, it will override $(NWOS)\copyright.txt.
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgFILE_nlm_copyright =
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# Any additional imports go here
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgFILES_nlm_Ximports = \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg @aprlib.imp \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg @httpd.imp \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg @libc.imp \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(EOLIST)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# Any symbols exported to here
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgFILES_nlm_exports = \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg macro_module \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(EOLIST)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# These are the OBJ files needed to create the LIB target above.
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# Paths must all use the '/' character
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgFILES_lib_objs = \
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(EOLIST)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# implement targets and dependancies (leave this section alone)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankglibs :: $(OBJDIR) $(TARGET_lib)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankgnlms :: libs $(TARGET_nlm)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# Updated this target to create necessary directories and copy files to the
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankginstall :: nlms FORCE
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg $(call COPY,$(OBJDIR)/*.nlm, $(INSTALLBASE)/modules/)
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# Any specialized rules here
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# Include the 'tail' makefile that has targets that depend on variables defined
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg# in this makefile
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg#
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankginclude $(APBUILD)/NWGNUtail.inc
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg
33108395770e5cfbd8f9fc56886980a2dc27de58fuankg