NWGNUmodversion revision 8ffac2c334103c0336602aaede650cb578611151
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# Make sure all needed macro's are defined
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# Get the 'head' of the build environment if necessary. This includes default
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# targets and paths to tools
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Prazaifndef EnvironmentDefined
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Prazainclude $(AP_WORK)/build/NWGNUhead.inc
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# These directories will be at the beginning of the include list, followed by
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaXINCDIRS += \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza $(APR)/include \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza $(APRUTIL)/include \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza $(AP_WORK)/include \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# These flags will come after CFLAGS
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# These defines will come after DEFINES
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaXDEFINES += \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# These flags will be added to the link.opt file
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# These values will be appended to the correct variables based on the value of
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Prazaifeq "$(RELEASE)" "debug"
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaXINCDIRS += \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaXDEFINES += \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Prazaifeq "$(RELEASE)" "noopt"
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaXINCDIRS += \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaXDEFINES += \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Prazaifeq "$(RELEASE)" "release"
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaXINCDIRS += \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaXDEFINES += \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# These are used by the link target if an NLM is being generated
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# This is used by the link 'name' directive to name the nlm. If left blank
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# TARGET_nlm (see below) will be used.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaNLM_NAME = modversion
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# This is used by the link '-desc ' directive.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# If left blank, NLM_NAME will be used.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaNLM_DESCRIPTION = Apache $(VERSION_STR) Version Module
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# This is used by the '-threadname' directive. If left blank,
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# NLM_NAME Thread will be used.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaNLM_THREAD_NAME = Version Module
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# If this is specified, it will override VERSION value in
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaNLM_VERSION =
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# If this is specified, it will override the default of 64K
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaNLM_STACK_SIZE = 8192
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# If this is specified it will be used by the link '-entry' directive
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaNLM_ENTRY_SYM =
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# If this is specified it will be used by the link '-exit' directive
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaNLM_EXIT_SYM =
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# If this is specified it will be used by the link '-check' directive
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaNLM_CHECK_SYM =
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# If these are specified it will be used by the link '-flags' directive
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# If this is specified it will be linked in with the XDCData option in the def
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# by setting APACHE_UNIPROC in the environment
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# If there is an NLM target, put it here
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaTARGET_nlm = \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza $(OBJDIR)/$(NLM_NAME).nlm \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# If there is an LIB target, put it here
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaTARGET_lib = \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# These are the OBJ files needed to create the NLM target above.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# Paths must all use the '/' character
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFILES_nlm_objs = \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# These are the LIB files needed to create the NLM target above.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# These will be added as a library command in the link.opt file.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaFILES_nlm_libs = \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# These are the modules that the above NLM target depends on to load.
33392354a001a7e6e504717bd3f249456d36cc00Alexander Pyhalov# These will be added as a module command in the link.opt file.
33392354a001a7e6e504717bd3f249456d36cc00Alexander PyhalovFILES_nlm_modules = \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# If the nlm has a msg file, put it's path here
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaFILE_nlm_msg =
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# If the nlm has a hlp file put it's path here
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaFILE_nlm_hlp =
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# If this is specified, it will override $(NWOS)\copyright.txt.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaFILE_nlm_copyright =
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# Any additional imports go here
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaFILES_nlm_Ximports = \
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon Ross# Any symbols exported to here
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaFILES_nlm_exports = \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza version_module \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# These are the OBJ files needed to create the LIB target above.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# Paths must all use the '/' character
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaFILES_lib_objs = \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# implement targets and dependancies (leave this section alone)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Prazalibs :: $(OBJDIR) $(TARGET_lib)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Prazanlms :: libs $(TARGET_nlm)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# Updated this target to create necessary directories and copy files to the
ac823a0f31ed9c8cbe505cee2def262ac92ea6cdJon Tibble# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
ac823a0f31ed9c8cbe505cee2def262ac92ea6cdJon Tibbleinstall :: nlms FORCE
ac823a0f31ed9c8cbe505cee2def262ac92ea6cdJon Tibble# Any specialized rules here
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# Include the 'tail' makefile that has targets that depend on variables defined
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# in this makefile
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Prazainclude $(APBUILD)/NWGNUtail.inc