ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# Declare the sub-directories to be built here
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgSUBDIRS = \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(EOLIST)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# Get the 'head' of the build environment. This includes default targets and
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# paths to tools
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(AP_WORK)/build/NWGNUhead.inc
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# build this level's files
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# Make sure all needed macro's are defined
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# These directories will be at the beginning of the include list, followed by
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# INCDIRS
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgXINCDIRS += \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(APR)/include \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(APRUTIL)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(SRC)/include \
16b55a35cff91315d261d1baa776138af465c4e4fuankg $(NWOS) \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(EOLIST)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# These flags will come after CFLAGS
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgXCFLAGS += \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(EOLIST)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# These defines will come after DEFINES
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgXDEFINES += \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(EOLIST)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# These flags will be added to the link.opt file
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgXLFLAGS += \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(EOLIST)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# These values will be appended to the correct variables based on the value of
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# RELEASE
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgifeq "$(RELEASE)" "debug"
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgXINCDIRS += \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(EOLIST)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgXCFLAGS += \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(EOLIST)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgXDEFINES += \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(EOLIST)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgXLFLAGS += \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(EOLIST)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgendif
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgifeq "$(RELEASE)" "noopt"
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgXINCDIRS += \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(EOLIST)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgXCFLAGS += \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(EOLIST)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgXDEFINES += \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(EOLIST)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgXLFLAGS += \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(EOLIST)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgendif
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgifeq "$(RELEASE)" "release"
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgXINCDIRS += \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(EOLIST)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgXCFLAGS += \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(EOLIST)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgXDEFINES += \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(EOLIST)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgXLFLAGS += \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(EOLIST)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgendif
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# These are used by the link target if an NLM is being generated
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# This is used by the link 'name' directive to name the nlm. If left blank
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# TARGET_nlm (see below) will be used.
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgNLM_NAME = opthookexport
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# This is used by the link '-desc ' directive.
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# If left blank, NLM_NAME will be used.
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgNLM_DESCRIPTION = Apache $(VERSION_STR) OptionalHook Export Module
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# This is used by the '-threadname' directive. If left blank,
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# NLM_NAME Thread will be used.
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgNLM_THREAD_NAME = $(NLM_NAME) Module
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# If this is specified, it will override VERSION value in
0662ed52e814f8f08ef0e09956413a792584eddffuankg# $(AP_WORK)/build/NWGNUenvironment.inc
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgNLM_VERSION =
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# If this is specified, it will override the default of 64K
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgNLM_STACK_SIZE = 8192
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# If this is specified it will be used by the link '-entry' directive
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_ENTRY_SYM =
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# If this is specified it will be used by the link '-exit' directive
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_EXIT_SYM =
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# If this is specified it will be used by the link '-check' directive
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgNLM_CHECK_SYM =
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# If these are specified it will be used by the link '-flags' directive
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_FLAGS =
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# If this is specified it will be linked in with the XDCData option in the def
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# by setting APACHE_UNIPROC in the environment
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgXDCDATA =
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# If there is an NLM target, put it here
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgTARGET_nlm = \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(OBJDIR)/$(NLM_NAME).nlm \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(EOLIST)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# If there is an LIB target, put it here
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgTARGET_lib = \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(EOLIST)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# These are the OBJ files needed to create the NLM target above.
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# Paths must all use the '/' character
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgFILES_nlm_objs = \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(OBJDIR)/mod_optional_hook_export.o \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(EOLIST)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# These are the LIB files needed to create the NLM target above.
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# These will be added as a library command in the link.opt file.
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgFILES_nlm_libs = \
cf7ca2f9eaa6523fefcccba4287b91637391fb51fuankg $(PRELUDE) \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(EOLIST)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# These are the modules that the above NLM target depends on to load.
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# These will be added as a module command in the link.opt file.
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgFILES_nlm_modules = \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg aprlib \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg libc \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(EOLIST)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# If the nlm has a msg file, put it's path here
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgFILE_nlm_msg =
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# If the nlm has a hlp file put it's path here
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgFILE_nlm_hlp =
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# If this is specified, it will override $(NWOS)\copyright.txt.
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgFILE_nlm_copyright =
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# Any additional imports go here
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgFILES_nlm_Ximports = \
8ffac2c334103c0336602aaede650cb578611151fuankg @aprlib.imp \
8ffac2c334103c0336602aaede650cb578611151fuankg @httpd.imp \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg @libc.imp \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(EOLIST)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# Any symbols exported to here
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgFILES_nlm_exports = \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg optional_hook_export_module \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(EOLIST)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# These are the OBJ files needed to create the LIB target above.
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# Paths must all use the '/' character
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgFILES_lib_objs = \
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg $(EOLIST)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# implement targets and dependancies (leave this section alone)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankglibs :: $(OBJDIR) $(TARGET_lib)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankgnlms :: libs $(TARGET_nlm)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# Updated this target to create necessary directories and copy files to the
0662ed52e814f8f08ef0e09956413a792584eddffuankg# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankginstall :: nlms FORCE
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# Any specialized rules here
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# Include the 'tail' makefile that has targets that depend on variables defined
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg# in this makefile
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg#
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(APBUILD)/NWGNUtail.inc
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg
ff7e89a077d93c243bd8261cf3c72b13732ab5b4fuankg