b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# Declare the sub-directories to be built here
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# Get the 'head' of the build environment. This includes default targets and
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# paths to tools
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(AP_WORK)/build/NWGNUhead.inc
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# build this level's files
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# Make sure all needed macro's are defined
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# These directories will be at the beginning of the include list, followed by
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesXINCDIRS += \
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# These flags will come after CFLAGS
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# These defines will come after DEFINES
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesXDEFINES += \
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# These flags will be added to the link.opt file
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# These values will be appended to the correct variables based on the value of
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesifeq "$(RELEASE)" "debug"
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesXINCDIRS += \
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesXDEFINES += \
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesifeq "$(RELEASE)" "noopt"
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesXINCDIRS += \
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesXDEFINES += \
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesifeq "$(RELEASE)" "release"
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesXINCDIRS += \
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesXDEFINES += \
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# These are used by the link target if an NLM is being generated
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# This is used by the link 'name' directive to name the nlm. If left blank
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# TARGET_nlm (see below) will be used.
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# This is used by the link '-desc ' directive.
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# If left blank, NLM_NAME will be used.
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesNLM_DESCRIPTION =
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# This is used by the '-threadname' directive. If left blank,
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# NLM_NAME Thread will be used.
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesNLM_THREAD_NAME =
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# If this is specified, it will override VERSION value in
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_VERSION =
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# If this is specified, it will override the default of 64K
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesNLM_STACK_SIZE =
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# If this is specified it will be used by the link '-entry' directive
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesNLM_ENTRY_SYM =
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# If this is specified it will be used by the link '-exit' directive
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesNLM_EXIT_SYM =
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# If this is specified it will be used by the link '-check' directive
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesNLM_CHECK_SYM =
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# If these are specified it will be used by the link '-flags' directive
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# If this is specified it will be linked in with the XDCData option in the def
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# by setting APACHE_UNIPROC in the environment
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# If there is an NLM target, put it here
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesTARGET_nlm = \
770af025f2fda969947de47957afcbef1d31eb9dfuankg# If the zlib library source exists then build the mod_deflate module
c78d5d52a36b67ddfabc4e2edb9d04ce022abe76bnicholesifneq "$(ZLIBSDK)" ""
c78d5d52a36b67ddfabc4e2edb9d04ce022abe76bnicholesifeq "$(wildcard $(ZLIBSDK))" "$(ZLIBSDK)"
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesTARGET_nlm += $(OBJDIR)/deflate.nlm \
770af025f2fda969947de47957afcbef1d31eb9dfuankg# If the libxml2 library source exists then build the mod_proxy_html module
770af025f2fda969947de47957afcbef1d31eb9dfuankgifneq "$(LIBXML2SDK)" ""
770af025f2fda969947de47957afcbef1d31eb9dfuankgifeq "$(wildcard $(LIBXML2SDK))" "$(LIBXML2SDK)"
770af025f2fda969947de47957afcbef1d31eb9dfuankgTARGET_nlm += \
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# If there is an LIB target, put it here
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesTARGET_lib = \
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# These are the OBJ files needed to create the NLM target above.
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# Paths must all use the '/' character
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesFILES_nlm_objs = \
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# These are the LIB files needed to create the NLM target above.
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# These will be added as a library command in the link.opt file.
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesFILES_nlm_libs = \
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# These are the modules that the above NLM target depends on to load.
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# These will be added as a module command in the link.opt file.
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesFILES_nlm_modules = \
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# If the nlm has a msg file, put it's path here
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesFILE_nlm_msg =
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# If the nlm has a hlp file put it's path here
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesFILE_nlm_hlp =
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# If this is specified, it will override $(NWOS)\copyright.txt.
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesFILE_nlm_copyright =
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# Any additional imports go here
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesFILES_nlm_Ximports = \
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# Any symbols exported to here
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesFILES_nlm_exports = \
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# These are the OBJ files needed to create the LIB target above.
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# Paths must all use the '/' character
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesFILES_lib_objs = \
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# implement targets and dependancies (leave this section alone)
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholeslibs :: $(OBJDIR) $(TARGET_lib)
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesnlms :: libs $(TARGET_nlm)
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# Updated this target to create necessary directories and copy files to the
0662ed52e814f8f08ef0e09956413a792584eddffuankg# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholesinstall :: nlms FORCE
00d1c0c914426a97022d8205a875c48b211001c2fuankg $(call COPY,$(OBJDIR)/*.nlm, $(INSTALLBASE)/modules/)
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# Any specialized rules here
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# Include the 'tail' makefile that has targets that depend on variables defined
b2c35a9228d0e6124aec1ed434cee3cb1ef107c3bnicholes# in this makefile
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(APBUILD)/NWGNUtail.inc