b4a00883f358625923365ca1560c96edec172a52sf# Make sure all needed macro's are defined
b4a00883f358625923365ca1560c96edec172a52sf# Get the 'head' of the build environment if necessary. This includes default
b4a00883f358625923365ca1560c96edec172a52sf# targets and paths to tools
b4a00883f358625923365ca1560c96edec172a52sfifndef EnvironmentDefined
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(AP_WORK)/build/NWGNUhead.inc
b4a00883f358625923365ca1560c96edec172a52sf# These directories will be at the beginning of the include list, followed by
b4a00883f358625923365ca1560c96edec172a52sfXINCDIRS += \
b4a00883f358625923365ca1560c96edec172a52sf $(APR)/include \
b4a00883f358625923365ca1560c96edec172a52sf $(APRUTIL)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(SRC)/include \
b4a00883f358625923365ca1560c96edec172a52sf# These flags will come after CFLAGS
b4a00883f358625923365ca1560c96edec172a52sfXCFLAGS += \
b4a00883f358625923365ca1560c96edec172a52sf# These defines will come after DEFINES
b4a00883f358625923365ca1560c96edec172a52sfXDEFINES += \
b4a00883f358625923365ca1560c96edec172a52sf# These flags will be added to the link.opt file
b4a00883f358625923365ca1560c96edec172a52sfXLFLAGS += \
b4a00883f358625923365ca1560c96edec172a52sf# These values will be appended to the correct variables based on the value of
b4a00883f358625923365ca1560c96edec172a52sfifeq "$(RELEASE)" "debug"
b4a00883f358625923365ca1560c96edec172a52sfXINCDIRS += \
b4a00883f358625923365ca1560c96edec172a52sfXCFLAGS += \
b4a00883f358625923365ca1560c96edec172a52sfXDEFINES += \
b4a00883f358625923365ca1560c96edec172a52sfXLFLAGS += \
b4a00883f358625923365ca1560c96edec172a52sfifeq "$(RELEASE)" "noopt"
b4a00883f358625923365ca1560c96edec172a52sfXINCDIRS += \
b4a00883f358625923365ca1560c96edec172a52sfXCFLAGS += \
b4a00883f358625923365ca1560c96edec172a52sfXDEFINES += \
b4a00883f358625923365ca1560c96edec172a52sfXLFLAGS += \
b4a00883f358625923365ca1560c96edec172a52sfifeq "$(RELEASE)" "release"
b4a00883f358625923365ca1560c96edec172a52sfXINCDIRS += \
b4a00883f358625923365ca1560c96edec172a52sfXCFLAGS += \
b4a00883f358625923365ca1560c96edec172a52sfXDEFINES += \
b4a00883f358625923365ca1560c96edec172a52sfXLFLAGS += \
b4a00883f358625923365ca1560c96edec172a52sf# These are used by the link target if an NLM is being generated
b4a00883f358625923365ca1560c96edec172a52sf# This is used by the link 'name' directive to name the nlm. If left blank
b4a00883f358625923365ca1560c96edec172a52sf# TARGET_nlm (see below) will be used.
b4a00883f358625923365ca1560c96edec172a52sfNLM_NAME = allowmethods
b4a00883f358625923365ca1560c96edec172a52sf# This is used by the link '-desc ' directive.
b4a00883f358625923365ca1560c96edec172a52sf# If left blank, NLM_NAME will be used.
b4a00883f358625923365ca1560c96edec172a52sfNLM_DESCRIPTION = Apache $(VERSION_STR) Method Restriction Module
b4a00883f358625923365ca1560c96edec172a52sf# This is used by the '-threadname' directive. If left blank,
b4a00883f358625923365ca1560c96edec172a52sf# NLM_NAME Thread will be used.
b4a00883f358625923365ca1560c96edec172a52sfNLM_THREAD_NAME = Allowmethods Module
b4a00883f358625923365ca1560c96edec172a52sf# If this is specified, it will override VERSION value in
b4a00883f358625923365ca1560c96edec172a52sfNLM_VERSION =
b4a00883f358625923365ca1560c96edec172a52sf# If this is specified, it will override the default of 64K
b4a00883f358625923365ca1560c96edec172a52sfNLM_STACK_SIZE = 8192
b4a00883f358625923365ca1560c96edec172a52sf# If this is specified it will be used by the link '-entry' directive
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_ENTRY_SYM =
b4a00883f358625923365ca1560c96edec172a52sf# If this is specified it will be used by the link '-exit' directive
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_EXIT_SYM =
b4a00883f358625923365ca1560c96edec172a52sf# If this is specified it will be used by the link '-check' directive
b4a00883f358625923365ca1560c96edec172a52sfNLM_CHECK_SYM =
b4a00883f358625923365ca1560c96edec172a52sf# If these are specified it will be used by the link '-flags' directive
b4a00883f358625923365ca1560c96edec172a52sf# If this is specified it will be linked in with the XDCData option in the def
b4a00883f358625923365ca1560c96edec172a52sf# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
b4a00883f358625923365ca1560c96edec172a52sf# by setting APACHE_UNIPROC in the environment
b4a00883f358625923365ca1560c96edec172a52sf# If there is an NLM target, put it here
b4a00883f358625923365ca1560c96edec172a52sfTARGET_nlm = \
b4a00883f358625923365ca1560c96edec172a52sf# If there is an LIB target, put it here
b4a00883f358625923365ca1560c96edec172a52sfTARGET_lib = \
b4a00883f358625923365ca1560c96edec172a52sf# These are the OBJ files needed to create the NLM target above.
b4a00883f358625923365ca1560c96edec172a52sf# Paths must all use the '/' character
b4a00883f358625923365ca1560c96edec172a52sfFILES_nlm_objs = \
b4a00883f358625923365ca1560c96edec172a52sf# These are the LIB files needed to create the NLM target above.
b4a00883f358625923365ca1560c96edec172a52sf# These will be added as a library command in the link.opt file.
b4a00883f358625923365ca1560c96edec172a52sfFILES_nlm_libs = \
cf7ca2f9eaa6523fefcccba4287b91637391fb51fuankg $(PRELUDE) \
b4a00883f358625923365ca1560c96edec172a52sf# These are the modules that the above NLM target depends on to load.
b4a00883f358625923365ca1560c96edec172a52sf# These will be added as a module command in the link.opt file.
b4a00883f358625923365ca1560c96edec172a52sfFILES_nlm_modules = \
b4a00883f358625923365ca1560c96edec172a52sf# If the nlm has a msg file, put it's path here
b4a00883f358625923365ca1560c96edec172a52sfFILE_nlm_msg =
b4a00883f358625923365ca1560c96edec172a52sf# If the nlm has a hlp file put it's path here
b4a00883f358625923365ca1560c96edec172a52sfFILE_nlm_hlp =
b4a00883f358625923365ca1560c96edec172a52sf# If this is specified, it will override $(NWOS)\copyright.txt.
b4a00883f358625923365ca1560c96edec172a52sfFILE_nlm_copyright =
b4a00883f358625923365ca1560c96edec172a52sf# Any additional imports go here
b4a00883f358625923365ca1560c96edec172a52sfFILES_nlm_Ximports = \
b4a00883f358625923365ca1560c96edec172a52sf# Any symbols exported to here
b4a00883f358625923365ca1560c96edec172a52sfFILES_nlm_exports = \
b4a00883f358625923365ca1560c96edec172a52sf allowmethods_module \
b4a00883f358625923365ca1560c96edec172a52sf# These are the OBJ files needed to create the LIB target above.
b4a00883f358625923365ca1560c96edec172a52sf# Paths must all use the '/' character
b4a00883f358625923365ca1560c96edec172a52sfFILES_lib_objs = \
b4a00883f358625923365ca1560c96edec172a52sf# implement targets and dependancies (leave this section alone)
b4a00883f358625923365ca1560c96edec172a52sflibs :: $(OBJDIR) $(TARGET_lib)
b4a00883f358625923365ca1560c96edec172a52sfnlms :: libs $(TARGET_nlm)
b4a00883f358625923365ca1560c96edec172a52sf# Updated this target to create necessary directories and copy files to the
0662ed52e814f8f08ef0e09956413a792584eddffuankg# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
b4a00883f358625923365ca1560c96edec172a52sfinstall :: nlms FORCE
b4a00883f358625923365ca1560c96edec172a52sf# Any specialized rules here
b4a00883f358625923365ca1560c96edec172a52sf# Include the 'tail' makefile that has targets that depend on variables defined
b4a00883f358625923365ca1560c96edec172a52sf# in this makefile
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(APBUILD)/NWGNUtail.inc