NWGNUuserdir revision 8ffac2c334103c0336602aaede650cb578611151
a6ca100924894cdd8e2b791d75a8cef32b1fba1fTinderbox User# Make sure all needed macro's are defined
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# Get the 'head' of the build environment if necessary. This includes default
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# targets and paths to tools
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Huntifndef EnvironmentDefined
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Huntinclude $(AP_WORK)/build/NWGNUhead.inc
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# These directories will be at the beginning of the include list, followed by
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntXINCDIRS += \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(APR)/include \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(APRUTIL)/include \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(AP_WORK)/include \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# These flags will come after CFLAGS
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# These defines will come after DEFINES
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# These flags will be added to the link.opt file
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# These values will be appended to the correct variables based on the value of
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Huntifeq "$(RELEASE)" "debug"
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntXINCDIRS += \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntXDEFINES += \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntifeq "$(RELEASE)" "noopt"
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntXINCDIRS += \
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark AndrewsXDEFINES += \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Huntifeq "$(RELEASE)" "release"
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntXINCDIRS += \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntXDEFINES += \
d7be2b79ed0934483d550e17e2bd09de4eaff8f5Evan Hunt# These are used by the link target if an NLM is being generated
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# This is used by the link 'name' directive to name the nlm. If left blank
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# TARGET_nlm (see below) will be used.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntNLM_NAME = userdir
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# This is used by the link '-desc ' directive.
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# If left blank, NLM_NAME will be used.
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntNLM_DESCRIPTION = Apache $(VERSION_STR) User Dir Module
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# This is used by the '-threadname' directive. If left blank,
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# NLM_NAME Thread will be used.
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntNLM_THREAD_NAME = UserDir Module
10a759cee69dcc3ce3a4d65e6e263c66e7f60ee8Evan Hunt# If this is specified, it will override VERSION value in
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntNLM_VERSION =
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# If this is specified, it will override the default of 64K
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntNLM_STACK_SIZE = 8192
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# If this is specified it will be used by the link '-entry' directive
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan HuntNLM_ENTRY_SYM =
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Hunt# If this is specified it will be used by the link '-exit' directive
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan HuntNLM_EXIT_SYM =
03f979494f5c80e05a72f876914d9d44085fbd6aEvan Hunt# If this is specified it will be used by the link '-check' directive
03f979494f5c80e05a72f876914d9d44085fbd6aEvan HuntNLM_CHECK_SYM =
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Hunt# If these are specified it will be used by the link '-flags' directive
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# If this is specified it will be linked in with the XDCData option in the def
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# by setting APACHE_UNIPROC in the environment
42782931073786f98d3d0a617351db40066949a4Mukund Sivaraman# If there is an NLM target, put it here
42782931073786f98d3d0a617351db40066949a4Mukund SivaramanTARGET_nlm = \
42782931073786f98d3d0a617351db40066949a4Mukund Sivaraman# If there is an LIB target, put it here
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntTARGET_lib = \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# These are the OBJ files needed to create the NLM target above.
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# Paths must all use the '/' character
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntFILES_nlm_objs = \
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont# These are the LIB files needed to create the NLM target above.
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt# These will be added as a library command in the link.opt file.
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan HuntFILES_nlm_libs = \
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt# These are the modules that the above NLM target depends on to load.
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt# These will be added as a module command in the link.opt file.
8b78c993cb475cc94e88560941b28c37684789d9Francis DupontFILES_nlm_modules = \
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews# If the nlm has a msg file, put it's path here
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntFILE_nlm_msg =
eab9975bcf5830a73f18ed8f320ae18ea32775eeEvan Hunt# If the nlm has a hlp file put it's path here
eab9975bcf5830a73f18ed8f320ae18ea32775eeEvan HuntFILE_nlm_hlp =
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# If this is specified, it will override $(NWOS)\copyright.txt.
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntFILE_nlm_copyright =
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# Any additional imports go here
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntFILES_nlm_Ximports = \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# Any symbols exported to here
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntFILES_nlm_exports = \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt userdir_module \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# These are the OBJ files needed to create the LIB target above.
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# Paths must all use the '/' character
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntFILES_lib_objs = \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# implement targets and dependancies (leave this section alone)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Huntlibs :: $(OBJDIR) $(TARGET_lib)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Huntnlms :: libs $(TARGET_nlm)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# Updated this target to create necessary directories and copy files to the
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Huntinstall :: nlms FORCE
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt# Any specialized rules here
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# Include the 'tail' makefile that has targets that depend on variables defined
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# in this makefile
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Huntinclude $(APBUILD)/NWGNUtail.inc