56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# Make sure all needed macro's are defined
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# Get the 'head' of the build environment if necessary. This includes default
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# targets and paths to tools
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholesifndef EnvironmentDefined
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(AP_WORK)/build/NWGNUhead.inc
56a507e357d6f763cb444018eabf90979e9700c1bnicholesendif
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# These directories will be at the beginning of the include list, followed by
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# INCDIRS
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholesXINCDIRS += \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(APR)/include \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(APRUTIL)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(SRC)/include \
16b55a35cff91315d261d1baa776138af465c4e4fuankg $(NWOS) \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes $(EOLIST)
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# These flags will come after CFLAGS
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholesXCFLAGS += \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes $(EOLIST)
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# These defines will come after DEFINES
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholesXDEFINES += \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes $(EOLIST)
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# These flags will be added to the link.opt file
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholesXLFLAGS += \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes $(EOLIST)
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# These values will be appended to the correct variables based on the value of
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# RELEASE
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholesifeq "$(RELEASE)" "debug"
56a507e357d6f763cb444018eabf90979e9700c1bnicholesXINCDIRS += \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes $(EOLIST)
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholesXCFLAGS += \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes $(EOLIST)
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholesXDEFINES += \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes $(EOLIST)
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholesXLFLAGS += \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg $(EOLIST)
56a507e357d6f763cb444018eabf90979e9700c1bnicholesendif
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholesifeq "$(RELEASE)" "noopt"
56a507e357d6f763cb444018eabf90979e9700c1bnicholesXINCDIRS += \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes $(EOLIST)
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholesXCFLAGS += \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes $(EOLIST)
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholesXDEFINES += \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes $(EOLIST)
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholesXLFLAGS += \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg $(EOLIST)
56a507e357d6f763cb444018eabf90979e9700c1bnicholesendif
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholesifeq "$(RELEASE)" "release"
56a507e357d6f763cb444018eabf90979e9700c1bnicholesXINCDIRS += \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes $(EOLIST)
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholesXCFLAGS += \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes $(EOLIST)
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholesXDEFINES += \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes $(EOLIST)
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholesXLFLAGS += \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes $(EOLIST)
56a507e357d6f763cb444018eabf90979e9700c1bnicholesendif
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# These are used by the link target if an NLM is being generated
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# This is used by the link 'name' directive to name the nlm. If left blank
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# TARGET_nlm (see below) will be used.
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_NAME = extfiltr
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# This is used by the link '-desc ' directive.
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# If left blank, NLM_NAME will be used.
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
0a39e7683f6611d66c55712f50bb240428d832a1bnicholesNLM_DESCRIPTION = Apache $(VERSION_STR) External Filter Module
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# This is used by the '-threadname' directive. If left blank,
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# NLM_NAME Thread will be used.
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholesNLM_THREAD_NAME = ExtFilter Module
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# If this is specified, it will override VERSION value in
0662ed52e814f8f08ef0e09956413a792584eddffuankg# $(AP_WORK)/build/NWGNUenvironment.inc
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_VERSION =
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# If this is specified, it will override the default of 64K
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholesNLM_STACK_SIZE = 8192
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# If this is specified it will be used by the link '-entry' directive
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_ENTRY_SYM =
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# If this is specified it will be used by the link '-exit' directive
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_EXIT_SYM =
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# If this is specified it will be used by the link '-check' directive
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholesNLM_CHECK_SYM =
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# If these are specified it will be used by the link '-flags' directive
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_FLAGS =
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# If this is specified it will be linked in with the XDCData option in the def
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# by setting APACHE_UNIPROC in the environment
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgXDCDATA =
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# If there is an NLM target, put it here
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholesTARGET_nlm = \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes $(OBJDIR)/extfiltr.nlm \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes $(EOLIST)
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# If there is an LIB target, put it here
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholesTARGET_lib = \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes $(EOLIST)
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# These are the OBJ files needed to create the NLM target above.
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# Paths must all use the '/' character
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholesFILES_nlm_objs = \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes $(OBJDIR)/mod_ext_filter.o \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes $(EOLIST)
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# These are the LIB files needed to create the NLM target above.
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# These will be added as a library command in the link.opt file.
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholesFILES_nlm_libs = \
cf7ca2f9eaa6523fefcccba4287b91637391fb51fuankg $(PRELUDE) \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes $(EOLIST)
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# These are the modules that the above NLM target depends on to load.
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# These will be added as a module command in the link.opt file.
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholesFILES_nlm_modules = \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes aprlib \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes libc \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes $(EOLIST)
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# If the nlm has a msg file, put it's path here
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholesFILE_nlm_msg =
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# If the nlm has a hlp file put it's path here
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholesFILE_nlm_hlp =
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# If this is specified, it will override $(NWOS)\copyright.txt.
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholesFILE_nlm_copyright =
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# Any additional imports go here
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholesFILES_nlm_Ximports = \
8ffac2c334103c0336602aaede650cb578611151fuankg @aprlib.imp \
8ffac2c334103c0336602aaede650cb578611151fuankg @httpd.imp \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes @libc.imp \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes $(EOLIST)
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# Any symbols exported to here
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholesFILES_nlm_exports = \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes ext_filter_module \
56a507e357d6f763cb444018eabf90979e9700c1bnicholes $(EOLIST)
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# These are the OBJ files needed to create the LIB target above.
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# Paths must all use the '/' character
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholesFILES_lib_objs = \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg $(EOLIST)
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# implement targets and dependancies (leave this section alone)
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholeslibs :: $(OBJDIR) $(TARGET_lib)
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholesnlms :: libs $(TARGET_nlm)
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# Updated this target to create necessary directories and copy files to the
0662ed52e814f8f08ef0e09956413a792584eddffuankg# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholesinstall :: nlms FORCE
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# Any specialized rules here
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# Include the 'tail' makefile that has targets that depend on variables defined
56a507e357d6f763cb444018eabf90979e9700c1bnicholes# in this makefile
56a507e357d6f763cb444018eabf90979e9700c1bnicholes#
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(APBUILD)/NWGNUtail.inc
56a507e357d6f763cb444018eabf90979e9700c1bnicholes
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg