NWGNUauthform revision 0662ed52e814f8f08ef0e09956413a792584eddf
bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch#
570f02698492be6d25035d7a6ff65b2302bdb76dTimo Sirainen# Make sure all needed macro's are defined
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# Get the 'head' of the build environment if necessary. This includes default
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# targets and paths to tools
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volkifndef EnvironmentDefined
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volkinclude $(AP_WORK)/build/NWGNUhead.inc
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volkendif
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# These directories will be at the beginning of the include list, followed by
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# INCDIRS
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkXINCDIRS += \
3813074b3fa42234de37a7b35727cbb24f4cd913Pascal Volk $(APR)/include \
3813074b3fa42234de37a7b35727cbb24f4cd913Pascal Volk $(APRUTIL)/include \
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk $(AP_WORK)/include \
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk $(NWOS) \
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk $(STDMOD)/session \
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk $(STDMOD)/filters \
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk $(EOLIST)
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# These flags will come after CFLAGS
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkXCFLAGS += \
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk $(EOLIST)
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# These defines will come after DEFINES
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkXDEFINES += \
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk $(EOLIST)
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# These flags will be added to the link.opt file
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkXLFLAGS += \
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk $(EOLIST)
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# These values will be appended to the correct variables based on the value of
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# RELEASE
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volkifeq "$(RELEASE)" "debug"
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkXINCDIRS += \
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk $(EOLIST)
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkXCFLAGS += \
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk $(EOLIST)
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkXDEFINES += \
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk $(EOLIST)
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkXLFLAGS += \
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk $(EOLIST)
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volkendif
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volkifeq "$(RELEASE)" "noopt"
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkXINCDIRS += \
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk $(EOLIST)
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
3813074b3fa42234de37a7b35727cbb24f4cd913Pascal VolkXCFLAGS += \
3813074b3fa42234de37a7b35727cbb24f4cd913Pascal Volk $(EOLIST)
3813074b3fa42234de37a7b35727cbb24f4cd913Pascal Volk
3813074b3fa42234de37a7b35727cbb24f4cd913Pascal VolkXDEFINES += \
3813074b3fa42234de37a7b35727cbb24f4cd913Pascal Volk $(EOLIST)
3813074b3fa42234de37a7b35727cbb24f4cd913Pascal Volk
3813074b3fa42234de37a7b35727cbb24f4cd913Pascal VolkXLFLAGS += \
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk $(EOLIST)
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volkendif
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volkifeq "$(RELEASE)" "release"
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkXINCDIRS += \
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk $(EOLIST)
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkXCFLAGS += \
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk $(EOLIST)
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkXDEFINES += \
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk $(EOLIST)
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkXLFLAGS += \
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk $(EOLIST)
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volkendif
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# These are used by the link target if an NLM is being generated
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# This is used by the link 'name' directive to name the nlm. If left blank
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# TARGET_nlm (see below) will be used.
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkNLM_NAME = authform
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# This is used by the link '-desc ' directive.
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# If left blank, NLM_NAME will be used.
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkNLM_DESCRIPTION = Apache $(VERSION_STR) Basic Authentication Module
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# This is used by the '-threadname' directive. If left blank,
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# NLM_NAME Thread will be used.
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkNLM_THREAD_NAME = AuthBasic Module
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# If this is specified, it will override VERSION value in
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# $(AP_WORK)/build/NWGNUenvironment.inc
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkNLM_VERSION =
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# If this is specified, it will override the default of 64K
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkNLM_STACK_SIZE = 8192
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# If this is specified it will be used by the link '-entry' directive
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkNLM_ENTRY_SYM =
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# If this is specified it will be used by the link '-exit' directive
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkNLM_EXIT_SYM =
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# If this is specified it will be used by the link '-check' directive
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkNLM_CHECK_SYM =
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
5717e8e12768ab1d667cd3e908e5f3ffe540655aTimo Sirainen#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# If these are specified it will be used by the link '-flags' directive
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
5717e8e12768ab1d667cd3e908e5f3ffe540655aTimo SirainenNLM_FLAGS =
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
5717e8e12768ab1d667cd3e908e5f3ffe540655aTimo Sirainen# If this is specified it will be linked in with the XDCData option in the def
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# by setting APACHE_UNIPROC in the environment
5717e8e12768ab1d667cd3e908e5f3ffe540655aTimo Sirainen#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkXDCDATA =
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
5717e8e12768ab1d667cd3e908e5f3ffe540655aTimo Sirainen#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# If there is an NLM target, put it here
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
5717e8e12768ab1d667cd3e908e5f3ffe540655aTimo SirainenTARGET_nlm = \
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk $(OBJDIR)/$(NLM_NAME).nlm \
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk $(EOLIST)
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
2af2049bcfcc3ab90af3c511408d4cf252e07e1aPascal Volk# If there is an LIB target, put it here
2af2049bcfcc3ab90af3c511408d4cf252e07e1aPascal Volk#
2af2049bcfcc3ab90af3c511408d4cf252e07e1aPascal VolkTARGET_lib = \
4d0230cbb50aa46bbf219f25d690f0f092e73771Timo Sirainen $(EOLIST)
2af2049bcfcc3ab90af3c511408d4cf252e07e1aPascal Volk
2af2049bcfcc3ab90af3c511408d4cf252e07e1aPascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# These are the OBJ files needed to create the NLM target above.
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# Paths must all use the '/' character
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkFILES_nlm_objs = \
3813074b3fa42234de37a7b35727cbb24f4cd913Pascal Volk $(OBJDIR)/mod_auth_form.o \
$(EOLIST)
#
# These are the LIB files needed to create the NLM target above.
# These will be added as a library command in the link.opt file.
#
FILES_nlm_libs = \
libcpre.o \
$(EOLIST)
#
# These are the modules that the above NLM target depends on to load.
# These will be added as a module command in the link.opt file.
#
FILES_nlm_modules = \
aprlib \
libc \
$(EOLIST)
#
# If the nlm has a msg file, put it's path here
#
FILE_nlm_msg =
#
# If the nlm has a hlp file put it's path here
#
FILE_nlm_hlp =
#
# If this is specified, it will override $(NWOS)\copyright.txt.
#
FILE_nlm_copyright =
#
# Any additional imports go here
#
FILES_nlm_Ximports = \
@$(APR)/aprlib.imp \
@$(NWOS)/httpd.imp \
@libc.imp \
$(EOLIST)
#
# Any symbols exported to here
#
FILES_nlm_exports = \
auth_form_module \
$(EOLIST)
#
# These are the OBJ files needed to create the LIB target above.
# Paths must all use the '/' character
#
FILES_lib_objs = \
$(EOLIST)
#
# implement targets and dependancies (leave this section alone)
#
libs :: $(OBJDIR) $(TARGET_lib)
nlms :: libs $(TARGET_nlm)
#
# Updated this target to create necessary directories and copy files to the
# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
#
install :: nlms FORCE
#
# Any specialized rules here
#
#
# Include the 'tail' makefile that has targets that depend on variables defined
# in this makefile
#
include $(APBUILD)/NWGNUtail.inc