NWGNUauthdigt revision b8022feeb260e31994600a65c2193278838a4802
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# Make sure all needed macro's are defined
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# Get the 'head' of the build environment if necessary. This includes default
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# targets and paths to tools
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Boseifndef EnvironmentDefined
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Boseinclude $(AP_WORK)\build\NWGNUhead.inc
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# These directories will be at the beginning of the include list, followed by
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseXINCDIRS += \
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose $(AP_WORK)/include \
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# These flags will come after CFLAGS
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# These defines will come after DEFINES
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseXDEFINES += \
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# These flags will be added to the link.opt file
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# These values will be appended to the correct variables based on the value of
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Boseifeq "$(RELEASE)" "debug"
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseXINCDIRS += \
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseXDEFINES += \
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Boseifeq "$(RELEASE)" "noopt"
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseXINCDIRS += \
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseXDEFINES += \
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Boseifeq "$(RELEASE)" "release"
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseXINCDIRS += \
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseXDEFINES += \
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# These are used by the link target if an NLM is being generated
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# This is used by the link 'name' directive to name the nlm. If left blank
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# TARGET_nlm (see below) will be used.
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseNLM_NAME = authdigt
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# This is used by the link '-desc ' directive.
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# If left blank, NLM_NAME will be used.
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseNLM_DESCRIPTION = Apache Digest Authentication Module
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# This is used by the '-threadname' directive. If left blank,
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# NLM_NAME Thread will be used.
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseNLM_THREAD_NAME = Digest Module
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# If this is specified, it will override VERSION value in
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# $(AP_WORK)\build\NWGNUenvironment.inc
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseNLM_VERSION =
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# If this is specified, it will override the default of 64K
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseNLM_STACK_SIZE = 8192
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# If this is specified it will be used by the link '-entry' directive
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseNLM_ENTRY_SYM = _LibCPrelude
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# If this is specified it will be used by the link '-exit' directive
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseNLM_EXIT_SYM = _LibCPostlude
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# If this is specified it will be used by the link '-check' directive
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseNLM_CHECK_SYM =
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# If these are specified it will be used by the link '-flags' directive
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# If this is specified it will be linked in with the XDCData option in the def
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# by setting APACHE_UNIPROC in the environment
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# If there is an NLM target, put it here
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseTARGET_nlm = \
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# If there is an LIB target, put it here
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseTARGET_lib = \
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# These are the OBJ files needed to create the NLM target above.
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# Paths must all use the '/' character
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseFILES_nlm_objs = \
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# These are the LIB files needed to create the NLM target above.
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# These will be added as a library command in the link.opt file.
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseFILES_nlm_libs = \
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# These are the modules that the above NLM target depends on to load.
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# These will be added as a module command in the link.opt file.
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseFILES_nlm_modules = \
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# If the nlm has a msg file, put it's path here
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseFILE_nlm_msg =
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# If the nlm has a hlp file put it's path here
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseFILE_nlm_hlp =
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# If this is specified, it will override $(NWOS)\copyright.txt.
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseFILE_nlm_copyright =
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# Any additional imports go here
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseFILES_nlm_Ximports = \
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# Any symbols exported to here
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseFILES_nlm_exports = \
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose auth_digest_module \
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# These are the OBJ files needed to create the LIB target above.
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# Paths must all use the '/' character
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit BoseFILES_lib_objs = \
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# implement targets and dependancies (leave this section alone)
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Boselibs :: $(OBJDIR) $(TARGET_lib)
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bosenlms :: libs $(TARGET_nlm)
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# Updated this target to create necessary directories and copy files to the
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Boseinstall :: nlms FORCE
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# Any specialized rules here
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# Include the 'tail' makefile that has targets that depend on variables defined
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Bose# in this makefile
b6dfbf81c61d4431aaa81687ec53e892f8b71edbSumit Boseinclude $(AP_WORK)\build\NWGNUtail.inc