06509499ae5b6676db799057108433170a23ed28fuankg# Make sure all needed macro's are defined
06509499ae5b6676db799057108433170a23ed28fuankg# Get the 'head' of the build environment if necessary. This includes default
06509499ae5b6676db799057108433170a23ed28fuankg# targets and paths to tools
06509499ae5b6676db799057108433170a23ed28fuankgifndef EnvironmentDefined
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(AP_WORK)/build/NWGNUhead.inc
06509499ae5b6676db799057108433170a23ed28fuankg# These directories will be at the beginning of the include list, followed by
06509499ae5b6676db799057108433170a23ed28fuankgXINCDIRS += \
06509499ae5b6676db799057108433170a23ed28fuankg $(APR)/include \
06509499ae5b6676db799057108433170a23ed28fuankg $(APRUTIL)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(SRC)/include \
b387b9d37fc71c534f4718777454a8f5a1169017fuankg $(STDMOD)/session \
b387b9d37fc71c534f4718777454a8f5a1169017fuankg $(STDMOD)/filters \
06509499ae5b6676db799057108433170a23ed28fuankg# These flags will come after CFLAGS
06509499ae5b6676db799057108433170a23ed28fuankgXCFLAGS += \
06509499ae5b6676db799057108433170a23ed28fuankg# These defines will come after DEFINES
06509499ae5b6676db799057108433170a23ed28fuankgXDEFINES += \
06509499ae5b6676db799057108433170a23ed28fuankg# These flags will be added to the link.opt file
06509499ae5b6676db799057108433170a23ed28fuankgXLFLAGS += \
06509499ae5b6676db799057108433170a23ed28fuankg# These values will be appended to the correct variables based on the value of
06509499ae5b6676db799057108433170a23ed28fuankgifeq "$(RELEASE)" "debug"
06509499ae5b6676db799057108433170a23ed28fuankgXINCDIRS += \
06509499ae5b6676db799057108433170a23ed28fuankgXCFLAGS += \
06509499ae5b6676db799057108433170a23ed28fuankgXDEFINES += \
06509499ae5b6676db799057108433170a23ed28fuankgXLFLAGS += \
06509499ae5b6676db799057108433170a23ed28fuankgifeq "$(RELEASE)" "noopt"
06509499ae5b6676db799057108433170a23ed28fuankgXINCDIRS += \
06509499ae5b6676db799057108433170a23ed28fuankgXCFLAGS += \
06509499ae5b6676db799057108433170a23ed28fuankgXDEFINES += \
06509499ae5b6676db799057108433170a23ed28fuankgXLFLAGS += \
06509499ae5b6676db799057108433170a23ed28fuankgifeq "$(RELEASE)" "release"
06509499ae5b6676db799057108433170a23ed28fuankgXINCDIRS += \
06509499ae5b6676db799057108433170a23ed28fuankgXCFLAGS += \
06509499ae5b6676db799057108433170a23ed28fuankgXDEFINES += \
06509499ae5b6676db799057108433170a23ed28fuankgXLFLAGS += \
06509499ae5b6676db799057108433170a23ed28fuankg# These are used by the link target if an NLM is being generated
06509499ae5b6676db799057108433170a23ed28fuankg# This is used by the link 'name' directive to name the nlm. If left blank
06509499ae5b6676db799057108433170a23ed28fuankg# TARGET_nlm (see below) will be used.
06509499ae5b6676db799057108433170a23ed28fuankgNLM_NAME = authform
06509499ae5b6676db799057108433170a23ed28fuankg# This is used by the link '-desc ' directive.
06509499ae5b6676db799057108433170a23ed28fuankg# If left blank, NLM_NAME will be used.
06509499ae5b6676db799057108433170a23ed28fuankgNLM_DESCRIPTION = Apache $(VERSION_STR) Basic Authentication Module
06509499ae5b6676db799057108433170a23ed28fuankg# This is used by the '-threadname' directive. If left blank,
06509499ae5b6676db799057108433170a23ed28fuankg# NLM_NAME Thread will be used.
06509499ae5b6676db799057108433170a23ed28fuankgNLM_THREAD_NAME = AuthBasic Module
06509499ae5b6676db799057108433170a23ed28fuankg# If this is specified, it will override VERSION value in
06509499ae5b6676db799057108433170a23ed28fuankgNLM_VERSION =
06509499ae5b6676db799057108433170a23ed28fuankg# If this is specified, it will override the default of 64K
06509499ae5b6676db799057108433170a23ed28fuankgNLM_STACK_SIZE = 8192
06509499ae5b6676db799057108433170a23ed28fuankg# If this is specified it will be used by the link '-entry' directive
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_ENTRY_SYM =
06509499ae5b6676db799057108433170a23ed28fuankg# If this is specified it will be used by the link '-exit' directive
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_EXIT_SYM =
06509499ae5b6676db799057108433170a23ed28fuankg# If this is specified it will be used by the link '-check' directive
06509499ae5b6676db799057108433170a23ed28fuankgNLM_CHECK_SYM =
06509499ae5b6676db799057108433170a23ed28fuankg# If these are specified it will be used by the link '-flags' directive
06509499ae5b6676db799057108433170a23ed28fuankg# If this is specified it will be linked in with the XDCData option in the def
06509499ae5b6676db799057108433170a23ed28fuankg# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
06509499ae5b6676db799057108433170a23ed28fuankg# by setting APACHE_UNIPROC in the environment
06509499ae5b6676db799057108433170a23ed28fuankg# If there is an NLM target, put it here
06509499ae5b6676db799057108433170a23ed28fuankgTARGET_nlm = \
06509499ae5b6676db799057108433170a23ed28fuankg $(OBJDIR)/$(NLM_NAME).nlm \
06509499ae5b6676db799057108433170a23ed28fuankg# If there is an LIB target, put it here
06509499ae5b6676db799057108433170a23ed28fuankgTARGET_lib = \
06509499ae5b6676db799057108433170a23ed28fuankg# These are the OBJ files needed to create the NLM target above.
06509499ae5b6676db799057108433170a23ed28fuankg# Paths must all use the '/' character
06509499ae5b6676db799057108433170a23ed28fuankgFILES_nlm_objs = \
06509499ae5b6676db799057108433170a23ed28fuankg# These are the LIB files needed to create the NLM target above.
06509499ae5b6676db799057108433170a23ed28fuankg# These will be added as a library command in the link.opt file.
06509499ae5b6676db799057108433170a23ed28fuankgFILES_nlm_libs = \
cf7ca2f9eaa6523fefcccba4287b91637391fb51fuankg $(PRELUDE) \
06509499ae5b6676db799057108433170a23ed28fuankg# These are the modules that the above NLM target depends on to load.
06509499ae5b6676db799057108433170a23ed28fuankg# These will be added as a module command in the link.opt file.
06509499ae5b6676db799057108433170a23ed28fuankgFILES_nlm_modules = \
06509499ae5b6676db799057108433170a23ed28fuankg# If the nlm has a msg file, put it's path here
06509499ae5b6676db799057108433170a23ed28fuankgFILE_nlm_msg =
06509499ae5b6676db799057108433170a23ed28fuankg# If the nlm has a hlp file put it's path here
06509499ae5b6676db799057108433170a23ed28fuankgFILE_nlm_hlp =
06509499ae5b6676db799057108433170a23ed28fuankg# If this is specified, it will override $(NWOS)\copyright.txt.
06509499ae5b6676db799057108433170a23ed28fuankgFILE_nlm_copyright =
06509499ae5b6676db799057108433170a23ed28fuankg# Any additional imports go here
06509499ae5b6676db799057108433170a23ed28fuankgFILES_nlm_Ximports = \
06509499ae5b6676db799057108433170a23ed28fuankg# Any symbols exported to here
06509499ae5b6676db799057108433170a23ed28fuankgFILES_nlm_exports = \
06509499ae5b6676db799057108433170a23ed28fuankg auth_form_module \
06509499ae5b6676db799057108433170a23ed28fuankg# These are the OBJ files needed to create the LIB target above.
06509499ae5b6676db799057108433170a23ed28fuankg# Paths must all use the '/' character
06509499ae5b6676db799057108433170a23ed28fuankgFILES_lib_objs = \
06509499ae5b6676db799057108433170a23ed28fuankg# implement targets and dependancies (leave this section alone)
06509499ae5b6676db799057108433170a23ed28fuankglibs :: $(OBJDIR) $(TARGET_lib)
06509499ae5b6676db799057108433170a23ed28fuankgnlms :: libs $(TARGET_nlm)
06509499ae5b6676db799057108433170a23ed28fuankg# Updated this target to create necessary directories and copy files to the
0662ed52e814f8f08ef0e09956413a792584eddffuankg# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
06509499ae5b6676db799057108433170a23ed28fuankginstall :: nlms FORCE
06509499ae5b6676db799057108433170a23ed28fuankg# Any specialized rules here
06509499ae5b6676db799057108433170a23ed28fuankg# Include the 'tail' makefile that has targets that depend on variables defined
06509499ae5b6676db799057108433170a23ed28fuankg# in this makefile
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(APBUILD)/NWGNUtail.inc