NWGNUauthdigt revision 0662ed52e814f8f08ef0e09956413a792584eddf
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# Make sure all needed macro's are defined
212032b342cab2f8798b146813d800ce522f9a66nd#
5f5d1b4cc970b7f06ff8ef6526128e9a27303d88nd
212032b342cab2f8798b146813d800ce522f9a66nd#
a2aaf7ab27f61d67535479c4fb3720a3d9255010nd# Get the 'head' of the build environment if necessary. This includes default
08cb74ca432a8c24e39f17dedce527e6a47b8001jerenkrantz# targets and paths to tools
08cb74ca432a8c24e39f17dedce527e6a47b8001jerenkrantz#
c2ce3eebd6de627b8741ee5a3864896ff7baca94nd
a2aaf7ab27f61d67535479c4fb3720a3d9255010ndifndef EnvironmentDefined
a2aaf7ab27f61d67535479c4fb3720a3d9255010ndinclude $(AP_WORK)/build/NWGNUhead.inc
a2aaf7ab27f61d67535479c4fb3720a3d9255010ndendif
a2aaf7ab27f61d67535479c4fb3720a3d9255010nd
a2aaf7ab27f61d67535479c4fb3720a3d9255010nd#
a2aaf7ab27f61d67535479c4fb3720a3d9255010nd# These directories will be at the beginning of the include list, followed by
a2aaf7ab27f61d67535479c4fb3720a3d9255010nd# INCDIRS
a2aaf7ab27f61d67535479c4fb3720a3d9255010nd#
a2aaf7ab27f61d67535479c4fb3720a3d9255010ndXINCDIRS += \
a2aaf7ab27f61d67535479c4fb3720a3d9255010nd $(APR)/include \
a2aaf7ab27f61d67535479c4fb3720a3d9255010nd $(APRUTIL)/include \
a2aaf7ab27f61d67535479c4fb3720a3d9255010nd $(AP_WORK)/include \
a2aaf7ab27f61d67535479c4fb3720a3d9255010nd $(NWOS) \
7db9f691a00ead175b03335457ca296a33ddf31bnd $(EOLIST)
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# These flags will come after CFLAGS
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66ndXCFLAGS += \
212032b342cab2f8798b146813d800ce522f9a66nd $(EOLIST)
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# These defines will come after DEFINES
212032b342cab2f8798b146813d800ce522f9a66nd#
5c3c22e3324f26848c1782e711c24faf28136012jerenkrantzXDEFINES += \
212032b342cab2f8798b146813d800ce522f9a66nd $(EOLIST)
5f187b13213452cee5b3ce3d7a6aab83a6367026slive
5f187b13213452cee5b3ce3d7a6aab83a6367026slive#
5f187b13213452cee5b3ce3d7a6aab83a6367026slive# These flags will be added to the link.opt file
5f187b13213452cee5b3ce3d7a6aab83a6367026slive#
5f187b13213452cee5b3ce3d7a6aab83a6367026sliveXLFLAGS += \
5f187b13213452cee5b3ce3d7a6aab83a6367026slive $(EOLIST)
5f187b13213452cee5b3ce3d7a6aab83a6367026slive
5f187b13213452cee5b3ce3d7a6aab83a6367026slive#
5f187b13213452cee5b3ce3d7a6aab83a6367026slive# These values will be appended to the correct variables based on the value of
5f187b13213452cee5b3ce3d7a6aab83a6367026slive# RELEASE
5f187b13213452cee5b3ce3d7a6aab83a6367026slive#
5f187b13213452cee5b3ce3d7a6aab83a6367026sliveifeq "$(RELEASE)" "debug"
5f187b13213452cee5b3ce3d7a6aab83a6367026sliveXINCDIRS += \
5f187b13213452cee5b3ce3d7a6aab83a6367026slive $(EOLIST)
5f187b13213452cee5b3ce3d7a6aab83a6367026slive
5f187b13213452cee5b3ce3d7a6aab83a6367026sliveXCFLAGS += \
5f187b13213452cee5b3ce3d7a6aab83a6367026slive $(EOLIST)
5f187b13213452cee5b3ce3d7a6aab83a6367026slive
5f187b13213452cee5b3ce3d7a6aab83a6367026sliveXDEFINES += \
5f187b13213452cee5b3ce3d7a6aab83a6367026slive $(EOLIST)
5f187b13213452cee5b3ce3d7a6aab83a6367026slive
5f187b13213452cee5b3ce3d7a6aab83a6367026sliveXLFLAGS += \
5f187b13213452cee5b3ce3d7a6aab83a6367026slive $(EOLIST)
5f187b13213452cee5b3ce3d7a6aab83a6367026sliveendif
5f187b13213452cee5b3ce3d7a6aab83a6367026slive
5f187b13213452cee5b3ce3d7a6aab83a6367026sliveifeq "$(RELEASE)" "noopt"
5f187b13213452cee5b3ce3d7a6aab83a6367026sliveXINCDIRS += \
5f187b13213452cee5b3ce3d7a6aab83a6367026slive $(EOLIST)
5f187b13213452cee5b3ce3d7a6aab83a6367026slive
5f187b13213452cee5b3ce3d7a6aab83a6367026sliveXCFLAGS += \
5f187b13213452cee5b3ce3d7a6aab83a6367026slive $(EOLIST)
5f187b13213452cee5b3ce3d7a6aab83a6367026slive
5f187b13213452cee5b3ce3d7a6aab83a6367026sliveXDEFINES += \
5f187b13213452cee5b3ce3d7a6aab83a6367026slive $(EOLIST)
5f187b13213452cee5b3ce3d7a6aab83a6367026slive
5f187b13213452cee5b3ce3d7a6aab83a6367026sliveXLFLAGS += \
5f187b13213452cee5b3ce3d7a6aab83a6367026slive $(EOLIST)
5f187b13213452cee5b3ce3d7a6aab83a6367026sliveendif
5f187b13213452cee5b3ce3d7a6aab83a6367026slive
5f187b13213452cee5b3ce3d7a6aab83a6367026sliveifeq "$(RELEASE)" "release"
5f187b13213452cee5b3ce3d7a6aab83a6367026sliveXINCDIRS += \
5f187b13213452cee5b3ce3d7a6aab83a6367026slive $(EOLIST)
5f187b13213452cee5b3ce3d7a6aab83a6367026slive
5f187b13213452cee5b3ce3d7a6aab83a6367026sliveXCFLAGS += \
5f187b13213452cee5b3ce3d7a6aab83a6367026slive $(EOLIST)
5f187b13213452cee5b3ce3d7a6aab83a6367026slive
5f187b13213452cee5b3ce3d7a6aab83a6367026sliveXDEFINES += \
5f187b13213452cee5b3ce3d7a6aab83a6367026slive $(EOLIST)
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66ndXLFLAGS += \
212032b342cab2f8798b146813d800ce522f9a66nd $(EOLIST)
212032b342cab2f8798b146813d800ce522f9a66ndendif
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# These are used by the link target if an NLM is being generated
212032b342cab2f8798b146813d800ce522f9a66nd# This is used by the link 'name' directive to name the nlm. If left blank
212032b342cab2f8798b146813d800ce522f9a66nd# TARGET_nlm (see below) will be used.
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66ndNLM_NAME = authdigt
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# This is used by the link '-desc ' directive.
212032b342cab2f8798b146813d800ce522f9a66nd# If left blank, NLM_NAME will be used.
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66ndNLM_DESCRIPTION = Apache $(VERSION_STR) Digest Authentication Module
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# This is used by the '-threadname' directive. If left blank,
212032b342cab2f8798b146813d800ce522f9a66nd# NLM_NAME Thread will be used.
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66ndNLM_THREAD_NAME = Digest Module
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# If this is specified, it will override VERSION value in
212032b342cab2f8798b146813d800ce522f9a66nd# $(AP_WORK)/build/NWGNUenvironment.inc
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66ndNLM_VERSION =
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# If this is specified, it will override the default of 64K
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66ndNLM_STACK_SIZE = 8192
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# If this is specified it will be used by the link '-entry' directive
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66ndNLM_ENTRY_SYM =
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# If this is specified it will be used by the link '-exit' directive
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66ndNLM_EXIT_SYM =
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# If this is specified it will be used by the link '-check' directive
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66ndNLM_CHECK_SYM =
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# If these are specified it will be used by the link '-flags' directive
212032b342cab2f8798b146813d800ce522f9a66nd#
a1ef40892ffa2b44fc249423c5b6c42a74a84c68ndNLM_FLAGS =
a1ef40892ffa2b44fc249423c5b6c42a74a84c68nd
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# If this is specified it will be linked in with the XDCData option in the def
212032b342cab2f8798b146813d800ce522f9a66nd# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
212032b342cab2f8798b146813d800ce522f9a66nd# by setting APACHE_UNIPROC in the environment
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66ndXDCDATA =
a1ef40892ffa2b44fc249423c5b6c42a74a84c68nd
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# If there is an NLM target, put it here
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66ndTARGET_nlm = \
212032b342cab2f8798b146813d800ce522f9a66nd $(OBJDIR)/authdigt.nlm \
212032b342cab2f8798b146813d800ce522f9a66nd $(EOLIST)
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# If there is an LIB target, put it here
a1ef40892ffa2b44fc249423c5b6c42a74a84c68nd#
212032b342cab2f8798b146813d800ce522f9a66ndTARGET_lib = \
212032b342cab2f8798b146813d800ce522f9a66nd $(EOLIST)
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# These are the OBJ files needed to create the NLM target above.
212032b342cab2f8798b146813d800ce522f9a66nd# Paths must all use the '/' character
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66ndFILES_nlm_objs = \
212032b342cab2f8798b146813d800ce522f9a66nd $(OBJDIR)/mod_auth_digest.o \
212032b342cab2f8798b146813d800ce522f9a66nd $(EOLIST)
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# These are the LIB files needed to create the NLM target above.
212032b342cab2f8798b146813d800ce522f9a66nd# These will be added as a library command in the link.opt file.
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66ndFILES_nlm_libs = \
212032b342cab2f8798b146813d800ce522f9a66nd libcpre.o \
212032b342cab2f8798b146813d800ce522f9a66nd $(EOLIST)
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# These are the modules that the above NLM target depends on to load.
212032b342cab2f8798b146813d800ce522f9a66nd# These will be added as a module command in the link.opt file.
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66ndFILES_nlm_modules = \
212032b342cab2f8798b146813d800ce522f9a66nd aprlib \
212032b342cab2f8798b146813d800ce522f9a66nd libc \
212032b342cab2f8798b146813d800ce522f9a66nd $(EOLIST)
212032b342cab2f8798b146813d800ce522f9a66nd
d22d1d41defbfb982d76cc5a2c00257872535d73kawai#
212032b342cab2f8798b146813d800ce522f9a66nd# If the nlm has a msg file, put it's path here
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66ndFILE_nlm_msg =
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# If the nlm has a hlp file put it's path here
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66ndFILE_nlm_hlp =
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# If this is specified, it will override $(NWOS)\copyright.txt.
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66ndFILE_nlm_copyright =
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# Any additional imports go here
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66ndFILES_nlm_Ximports = \
212032b342cab2f8798b146813d800ce522f9a66nd @$(APR)/aprlib.imp \
212032b342cab2f8798b146813d800ce522f9a66nd @$(NWOS)/httpd.imp \
212032b342cab2f8798b146813d800ce522f9a66nd @libc.imp \
212032b342cab2f8798b146813d800ce522f9a66nd $(EOLIST)
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd#
a1ef40892ffa2b44fc249423c5b6c42a74a84c68nd# Any symbols exported to here
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66ndFILES_nlm_exports = \
212032b342cab2f8798b146813d800ce522f9a66nd auth_digest_module \
212032b342cab2f8798b146813d800ce522f9a66nd $(EOLIST)
212032b342cab2f8798b146813d800ce522f9a66nd
a1ef40892ffa2b44fc249423c5b6c42a74a84c68nd#
a1ef40892ffa2b44fc249423c5b6c42a74a84c68nd# These are the OBJ files needed to create the LIB target above.
212032b342cab2f8798b146813d800ce522f9a66nd# Paths must all use the '/' character
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66ndFILES_lib_objs = \
212032b342cab2f8798b146813d800ce522f9a66nd $(EOLIST)
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# implement targets and dependancies (leave this section alone)
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66ndlibs :: $(OBJDIR) $(TARGET_lib)
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66ndnlms :: libs $(TARGET_nlm)
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# Updated this target to create necessary directories and copy files to the
212032b342cab2f8798b146813d800ce522f9a66nd# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66ndinstall :: nlms FORCE
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# Any specialized rules here
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# Include the 'tail' makefile that has targets that depend on variables defined
212032b342cab2f8798b146813d800ce522f9a66nd# in this makefile
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66ndinclude $(APBUILD)/NWGNUtail.inc
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd