NWGNUuserdir revision ac7985784d08a3655291f24f711812b4d8b1cbcf
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# Make sure all needed macro's are defined
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# Get the 'head' of the build environment if necessary. This includes default
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# targets and paths to tools
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnellyifndef EnvironmentDefined
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnellyinclude $(AP_WORK)\build\NWGNUhead.inc
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# These directories will be at the beginning of the include list, followed by
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly $(AP_WORK)/include \
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly $(APR)/include \
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly $(APRUTIL)/include \
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# These flags will come after CFLAGS
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# These defines will come after DEFINES
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# These flags will be added to the link.opt file
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# These values will be appended to the correct variables based on the value of
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnellyifeq "$(RELEASE)" "debug"
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnellyifeq "$(RELEASE)" "noopt"
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnellyifeq "$(RELEASE)" "release"
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# These are used by the link target if an NLM is being generated
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# This is used by the link 'name' directive to name the nlm. If left blank
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# TARGET_nlm (see below) will be used.
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny DonnellyNLM_NAME = userdir
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# This is used by the link '-desc ' directive.
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# If left blank, NLM_NAME will be used.
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny DonnellyNLM_DESCRIPTION = Apache $(VERSION_STR) User Dir Module
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# This is used by the '-threadname' directive. If left blank,
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# NLM_NAME Thread will be used.
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny DonnellyNLM_THREAD_NAME = UserDir Module
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# If this is specified, it will override VERSION value in
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# $(AP_WORK)\build\NWGNUenvironment.inc
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# If this is specified, it will override the default of 64K
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny DonnellyNLM_STACK_SIZE = 8192
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# If this is specified it will be used by the link '-entry' directive
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny DonnellyNLM_ENTRY_SYM = _LibCPrelude
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# If this is specified it will be used by the link '-exit' directive
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny DonnellyNLM_EXIT_SYM = _LibCPostlude
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# If this is specified it will be used by the link '-check' directive
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny DonnellyNLM_CHECK_SYM =
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# If these are specified it will be used by the link '-flags' directive
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny DonnellyNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# If this is specified it will be linked in with the XDCData option in the def
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# by setting APACHE_UNIPROC in the environment
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# If there is an NLM target, put it here
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny DonnellyTARGET_nlm = \
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# If there is an LIB target, put it here
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny DonnellyTARGET_lib = \
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# These are the OBJ files needed to create the NLM target above.
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# Paths must all use the '/' character
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny DonnellyFILES_nlm_objs = \
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# These are the LIB files needed to create the NLM target above.
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# These will be added as a library command in the link.opt file.
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny DonnellyFILES_nlm_libs = \
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# These are the modules that the above NLM target depends on to load.
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# These will be added as a module command in the link.opt file.
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny DonnellyFILES_nlm_modules = \
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# If the nlm has a msg file, put it's path here
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny DonnellyFILE_nlm_msg =
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# If the nlm has a hlp file put it's path here
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny DonnellyFILE_nlm_hlp =
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# If this is specified, it will override $(NWOS)\copyright.txt.
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny DonnellyFILE_nlm_copyright =
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# Any additional imports go here
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny DonnellyFILES_nlm_Ximports = \
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# Any symbols exported to here
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny DonnellyFILES_nlm_exports = \
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly userdir_module \
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# These are the OBJ files needed to create the LIB target above.
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# Paths must all use the '/' character
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny DonnellyFILES_lib_objs = \
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# implement targets and dependancies (leave this section alone)
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnellylibs :: $(OBJDIR) $(TARGET_lib)
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnellynlms :: libs $(TARGET_nlm)
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# Updated this target to create necessary directories and copy files to the
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnellyinstall :: nlms FORCE
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# Any specialized rules here
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# Include the 'tail' makefile that has targets that depend on variables defined
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnelly# in this makefile
7a6a57d5b030103b5b64157208acbecbfe4118b1Jenny Donnellyinclude $(AP_WORK)\build\NWGNUtail.inc