NWGNUspeling revision 16b55a35cff91315d261d1baa776138af465c4e4
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Make sure all needed macro's are defined
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Get the 'head' of the build environment if necessary. This includes default
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# targets and paths to tools
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteifndef EnvironmentDefined
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude $(AP_WORK)\build\NWGNUhead.inc
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# These directories will be at the beginning of the include list, followed by
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteXINCDIRS += \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(APR)/include \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(APRUTIL)/include \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(AP_WORK)/include \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# These flags will come after CFLAGS
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# These defines will come after DEFINES
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteXDEFINES += \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# These flags will be added to the link.opt file
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# These values will be appended to the correct variables based on the value of
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteifeq "$(RELEASE)" "debug"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteXINCDIRS += \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteXDEFINES += \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteifeq "$(RELEASE)" "noopt"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteXINCDIRS += \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteXDEFINES += \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteifeq "$(RELEASE)" "release"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteXINCDIRS += \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteXDEFINES += \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# These are used by the link target if an NLM is being generated
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# This is used by the link 'name' directive to name the nlm. If left blank
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# TARGET_nlm (see below) will be used.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteNLM_NAME = speling
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# This is used by the link '-desc ' directive.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If left blank, NLM_NAME will be used.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteNLM_DESCRIPTION = Apache $(VERSION_STR) Speling Module
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# This is used by the '-threadname' directive. If left blank,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# NLM_NAME Thread will be used.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteNLM_THREAD_NAME = Speling Module
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If this is specified, it will override VERSION value in
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# $(AP_WORK)\build\NWGNUenvironment.inc
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteNLM_VERSION =
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If this is specified, it will override the default of 64K
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteNLM_STACK_SIZE = 8192
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If this is specified it will be used by the link '-entry' directive
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteNLM_ENTRY_SYM = _LibCPrelude
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If this is specified it will be used by the link '-exit' directive
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteNLM_EXIT_SYM = _LibCPostlude
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If this is specified it will be used by the link '-check' directive
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteNLM_CHECK_SYM =
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If these are specified it will be used by the link '-flags' directive
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If this is specified it will be linked in with the XDCData option in the def
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# by setting APACHE_UNIPROC in the environment
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If there is an NLM target, put it here
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteTARGET_nlm = \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If there is an LIB target, put it here
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteTARGET_lib = \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# These are the OBJ files needed to create the NLM target above.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Paths must all use the '/' character
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteFILES_nlm_objs = \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# These are the LIB files needed to create the NLM target above.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# These will be added as a library command in the link.opt file.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteFILES_nlm_libs = \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# These are the modules that the above NLM target depends on to load.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# These will be added as a module command in the link.opt file.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteFILES_nlm_modules = \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If the nlm has a msg file, put it's path here
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteFILE_nlm_msg =
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If the nlm has a hlp file put it's path here
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteFILE_nlm_hlp =
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If this is specified, it will override $(NWOS)\copyright.txt.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteFILE_nlm_copyright =
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Any additional imports go here
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteFILES_nlm_Ximports = \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Any symbols exported to here
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteFILES_nlm_exports = \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte speling_module \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# These are the OBJ files needed to create the LIB target above.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Paths must all use the '/' character
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteFILES_lib_objs = \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# implement targets and dependancies (leave this section alone)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortelibs :: $(OBJDIR) $(TARGET_lib)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortenlms :: libs $(TARGET_nlm)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Updated this target to create necessary directories and copy files to the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinstall :: nlms FORCE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Any specialized rules here
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Include the 'tail' makefile that has targets that depend on variables defined
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# in this makefile
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude $(AP_WORK)\build\NWGNUtail.inc