NWGNUautoindex revision 16b55a35cff91315d261d1baa776138af465c4e4
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# Make sure all needed macro's are defined
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# Get the 'head' of the build environment if necessary. This includes default
6bdda696b3ea703c47e87fea61017ec655f91d92nd# targets and paths to tools
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92ndifndef EnvironmentDefined
6bdda696b3ea703c47e87fea61017ec655f91d92ndinclude $(AP_WORK)\build\NWGNUhead.inc
6bdda696b3ea703c47e87fea61017ec655f91d92ndendif
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# These directories will be at the beginning of the include list, followed by
6bdda696b3ea703c47e87fea61017ec655f91d92nd# INCDIRS
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92ndXINCDIRS += \
6bdda696b3ea703c47e87fea61017ec655f91d92nd $(APR)/include \
6bdda696b3ea703c47e87fea61017ec655f91d92nd $(APRUTIL)/include \
16b55a35cff91315d261d1baa776138af465c4e4fuankg $(AP_WORK)/include \
16b55a35cff91315d261d1baa776138af465c4e4fuankg $(AP_WORK)/modules/http \
16b55a35cff91315d261d1baa776138af465c4e4fuankg $(NWOS) \
6bdda696b3ea703c47e87fea61017ec655f91d92nd $(EOLIST)
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# These flags will come after CFLAGS
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92ndXCFLAGS += \
6bdda696b3ea703c47e87fea61017ec655f91d92nd $(EOLIST)
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# These defines will come after DEFINES
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92ndXDEFINES += \
6bdda696b3ea703c47e87fea61017ec655f91d92nd $(EOLIST)
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# These flags will be added to the link.opt file
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92ndXLFLAGS += \
6bdda696b3ea703c47e87fea61017ec655f91d92nd $(EOLIST)
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# These values will be appended to the correct variables based on the value of
6bdda696b3ea703c47e87fea61017ec655f91d92nd# RELEASE
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92ndifeq "$(RELEASE)" "debug"
6bdda696b3ea703c47e87fea61017ec655f91d92ndXINCDIRS += \
6bdda696b3ea703c47e87fea61017ec655f91d92nd $(EOLIST)
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92ndXCFLAGS += \
6bdda696b3ea703c47e87fea61017ec655f91d92nd $(EOLIST)
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92ndXDEFINES += \
6bdda696b3ea703c47e87fea61017ec655f91d92nd $(EOLIST)
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92ndXLFLAGS += \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg $(EOLIST)
6bdda696b3ea703c47e87fea61017ec655f91d92ndendif
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92ndifeq "$(RELEASE)" "noopt"
6bdda696b3ea703c47e87fea61017ec655f91d92ndXINCDIRS += \
6bdda696b3ea703c47e87fea61017ec655f91d92nd $(EOLIST)
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92ndXCFLAGS += \
6bdda696b3ea703c47e87fea61017ec655f91d92nd $(EOLIST)
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92ndXDEFINES += \
6bdda696b3ea703c47e87fea61017ec655f91d92nd $(EOLIST)
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92ndXLFLAGS += \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg $(EOLIST)
6bdda696b3ea703c47e87fea61017ec655f91d92ndendif
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92ndifeq "$(RELEASE)" "release"
6bdda696b3ea703c47e87fea61017ec655f91d92ndXINCDIRS += \
6bdda696b3ea703c47e87fea61017ec655f91d92nd $(EOLIST)
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92ndXCFLAGS += \
6bdda696b3ea703c47e87fea61017ec655f91d92nd $(EOLIST)
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92ndXDEFINES += \
6bdda696b3ea703c47e87fea61017ec655f91d92nd $(EOLIST)
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92ndXLFLAGS += \
6bdda696b3ea703c47e87fea61017ec655f91d92nd $(EOLIST)
6bdda696b3ea703c47e87fea61017ec655f91d92ndendif
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# These are used by the link target if an NLM is being generated
6bdda696b3ea703c47e87fea61017ec655f91d92nd# This is used by the link 'name' directive to name the nlm. If left blank
6bdda696b3ea703c47e87fea61017ec655f91d92nd# TARGET_nlm (see below) will be used.
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_NAME = autoindex
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# This is used by the link '-desc ' directive.
6bdda696b3ea703c47e87fea61017ec655f91d92nd# If left blank, NLM_NAME will be used.
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92ndNLM_DESCRIPTION = Apache $(VERSION_STR) Autoindex Module
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# This is used by the '-threadname' directive. If left blank,
6bdda696b3ea703c47e87fea61017ec655f91d92nd# NLM_NAME Thread will be used.
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92ndNLM_THREAD_NAME = Autoindex Module
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# If this is specified, it will override VERSION value in
6bdda696b3ea703c47e87fea61017ec655f91d92nd# $(AP_WORK)\build\NWGNUenvironment.inc
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_VERSION =
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# If this is specified, it will override the default of 64K
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92ndNLM_STACK_SIZE = 8192
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# If this is specified it will be used by the link '-entry' directive
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92ndNLM_ENTRY_SYM = _LibCPrelude
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# If this is specified it will be used by the link '-exit' directive
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92ndNLM_EXIT_SYM = _LibCPostlude
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# If this is specified it will be used by the link '-check' directive
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92ndNLM_CHECK_SYM =
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# If these are specified it will be used by the link '-flags' directive
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# If this is specified it will be linked in with the XDCData option in the def
6bdda696b3ea703c47e87fea61017ec655f91d92nd# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
6bdda696b3ea703c47e87fea61017ec655f91d92nd# by setting APACHE_UNIPROC in the environment
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgXDCDATA =
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# If there is an NLM target, put it here
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92ndTARGET_nlm = \
6bdda696b3ea703c47e87fea61017ec655f91d92nd $(OBJDIR)/autoindex.nlm \
6bdda696b3ea703c47e87fea61017ec655f91d92nd $(EOLIST)
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# If there is an LIB target, put it here
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92ndTARGET_lib = \
6bdda696b3ea703c47e87fea61017ec655f91d92nd $(EOLIST)
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# These are the OBJ files needed to create the NLM target above.
6bdda696b3ea703c47e87fea61017ec655f91d92nd# Paths must all use the '/' character
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92ndFILES_nlm_objs = \
6bdda696b3ea703c47e87fea61017ec655f91d92nd $(OBJDIR)/mod_autoindex.o \
6bdda696b3ea703c47e87fea61017ec655f91d92nd $(EOLIST)
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# These are the LIB files needed to create the NLM target above.
6bdda696b3ea703c47e87fea61017ec655f91d92nd# These will be added as a library command in the link.opt file.
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92ndFILES_nlm_libs = \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg libcpre.o \
6bdda696b3ea703c47e87fea61017ec655f91d92nd $(EOLIST)
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# These are the modules that the above NLM target depends on to load.
6bdda696b3ea703c47e87fea61017ec655f91d92nd# These will be added as a module command in the link.opt file.
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92ndFILES_nlm_modules = \
6bdda696b3ea703c47e87fea61017ec655f91d92nd aprlib \
6bdda696b3ea703c47e87fea61017ec655f91d92nd libc \
6bdda696b3ea703c47e87fea61017ec655f91d92nd $(EOLIST)
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# If the nlm has a msg file, put it's path here
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92ndFILE_nlm_msg =
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# If the nlm has a hlp file put it's path here
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92ndFILE_nlm_hlp =
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# If this is specified, it will override $(NWOS)\copyright.txt.
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92ndFILE_nlm_copyright =
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# Any additional imports go here
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92ndFILES_nlm_Ximports = \
6bdda696b3ea703c47e87fea61017ec655f91d92nd @$(APR)/aprlib.imp \
6bdda696b3ea703c47e87fea61017ec655f91d92nd @$(NWOS)/httpd.imp \
6bdda696b3ea703c47e87fea61017ec655f91d92nd @libc.imp \
6bdda696b3ea703c47e87fea61017ec655f91d92nd $(EOLIST)
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# Any symbols exported to here
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92ndFILES_nlm_exports = \
6bdda696b3ea703c47e87fea61017ec655f91d92nd autoindex_module \
6bdda696b3ea703c47e87fea61017ec655f91d92nd $(EOLIST)
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# These are the OBJ files needed to create the LIB target above.
6bdda696b3ea703c47e87fea61017ec655f91d92nd# Paths must all use the '/' character
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92ndFILES_lib_objs = \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg $(EOLIST)
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# implement targets and dependancies (leave this section alone)
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92ndlibs :: $(OBJDIR) $(TARGET_lib)
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92ndnlms :: libs $(TARGET_nlm)
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# Updated this target to create necessary directories and copy files to the
6bdda696b3ea703c47e87fea61017ec655f91d92nd# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92ndinstall :: nlms FORCE
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# Any specialized rules here
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd# Include the 'tail' makefile that has targets that depend on variables defined
6bdda696b3ea703c47e87fea61017ec655f91d92nd# in this makefile
6bdda696b3ea703c47e87fea61017ec655f91d92nd#
6bdda696b3ea703c47e87fea61017ec655f91d92nd
6bdda696b3ea703c47e87fea61017ec655f91d92ndinclude $(AP_WORK)\build\NWGNUtail.inc
6bdda696b3ea703c47e87fea61017ec655f91d92nd
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg