NWGNUmakefile revision b2c35a9228d0e6124aec1ed434cee3cb1ef107c3
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Declare the sub-directories to be built here
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Get the 'head' of the build environment. This includes default targets and
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# paths to tools
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterinclude $(AP_WORK)\build\NWGNUhead.inc
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# build this level's files
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Make sure all needed macro's are defined
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# These directories will be at the beginning of the include list, followed by
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterXINCDIRS += \
bb19322b98dd3435cde9c8d4d8d23a4de8000118Tony Bamford# These flags will come after CFLAGS
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# These defines will come after DEFINES
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterXDEFINES += \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# These flags will be added to the link.opt file
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# These values will be appended to the correct variables based on the value of
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterifeq "$(RELEASE)" "debug"
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony BamfordXINCDIRS += \
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterXDEFINES += \
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony Bamfordifeq "$(RELEASE)" "noopt"
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony BamfordXINCDIRS += \
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterXDEFINES += \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterifeq "$(RELEASE)" "release"
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony BamfordXINCDIRS += \
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterXDEFINES += \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# These are used by the link target if an NLM is being generated
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# This is used by the link 'name' directive to name the nlm. If left blank
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# TARGET_nlm (see below) will be used.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# This is used by the link '-desc ' directive.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# If left blank, NLM_NAME will be used.
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterNLM_DESCRIPTION =
4a5a82da9bbab0a3ea1701c3ae9334c678d24ca5Mark de Reeper# This is used by the '-threadname' directive. If left blank,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# NLM_NAME Thread will be used.
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterNLM_THREAD_NAME =
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# If this is specified, it will override VERSION value in
bb19322b98dd3435cde9c8d4d8d23a4de8000118Tony Bamford# $(AP_WORK)\build\NWGNUenvironment.inc
bb19322b98dd3435cde9c8d4d8d23a4de8000118Tony BamfordNLM_VERSION =
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# If this is specified, it will override the default of 64K
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterNLM_STACK_SIZE =
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony Bamford# If this is specified it will be used by the link '-entry' directive
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterNLM_ENTRY_SYM =
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony Bamford# If this is specified it will be used by the link '-exit' directive
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony BamfordNLM_EXIT_SYM =
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony Bamford# If this is specified it will be used by the link '-check' directive
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterNLM_CHECK_SYM =
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# If these are specified it will be used by the link '-flags' directive
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# If this is specified it will be linked in with the XDCData option in the def
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# by setting APACHE_UNIPROC in the environment
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# If there is an NLM target, put it here
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterTARGET_nlm = \
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony Bamford# If LDAPSDK has been defined then build the auth_ldap module
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterifneq "$(LDAPSDK)" ""
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony BamfordTARGET_nlm += $(OBJDIR)/authldap.nlm \
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony Bamford# If there is an LIB target, put it here
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony BamfordTARGET_lib = \
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony Bamford# These are the OBJ files needed to create the NLM target above.
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony Bamford# Paths must all use the '/' character
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony BamfordFILES_nlm_objs = \
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony Bamford# These are the LIB files needed to create the NLM target above.
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony Bamford# These will be added as a library command in the link.opt file.
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony BamfordFILES_nlm_libs = \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# These are the modules that the above NLM target depends on to load.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# These will be added as a module command in the link.opt file.
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony BamfordFILES_nlm_modules = \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# If the nlm has a msg file, put it's path here
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony BamfordFILE_nlm_msg =
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony Bamford# If the nlm has a hlp file put it's path here
bb19322b98dd3435cde9c8d4d8d23a4de8000118Tony BamfordFILE_nlm_hlp =
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# If this is specified, it will override $(NWOS)\copyright.txt.
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterFILE_nlm_copyright =
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony Bamford# Any additional imports go here
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony BamfordFILES_nlm_Ximports = \
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony Bamford# Any symbols exported to here
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony BamfordFILES_nlm_exports = \
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony Bamford# These are the OBJ files needed to create the LIB target above.
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony Bamford# Paths must all use the '/' character
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterFILES_lib_objs = \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# implement targets and dependancies (leave this section alone)
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony Bamfordlibs :: $(OBJDIR) $(TARGET_lib)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosternlms :: libs $(TARGET_nlm)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Updated this target to create necessary directories and copy files to the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterinstall :: nlms FORCE
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster copy $(OBJDIR)\*.nlm $(INSTALL)\Apache2\modules\*.*
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Any specialized rules here
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony Bamford# Include the 'tail' makefile that has targets that depend on variables defined
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony Bamford# in this makefile
bb19322b98dd3435cde9c8d4d8d23a4de8000118Tony Bamfordinclude $(AP_WORK)\build\NWGNUtail.inc