NWGNUuserdir revision cf7ca2f9eaa6523fefcccba4287b91637391fb51
885f47576842cf3c569315b9a48bd9f0ca03f203Automatic Updater# Make sure all needed macro's are defined
2bb3422dc683c013db7042f5736240de6b86f182Automatic Updater# Get the 'head' of the build environment if necessary. This includes default
7b67cfadd077feb0ec3e6c78385ba0d845a9789bMark Andrews# targets and paths to tools
bb93c8542756719b53096b9939e4041d0966026fAutomatic Updaterifndef EnvironmentDefined
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# These directories will be at the beginning of the include list, followed by
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(APR)/include \
96713299d08c0735c18ebe8772dd2cc1ecd4356aAutomatic Updater $(APRUTIL)/include \
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews $(AP_WORK)/include \
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# These flags will come after CFLAGS
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# These defines will come after DEFINES
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater# These flags will be added to the link.opt file
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# These values will be appended to the correct variables based on the value of
db5b7e2cdf150c46e8242d3e2e3ad3f5c7300258Automatic Updaterifeq "$(RELEASE)" "debug"
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark AndrewsXINCDIRS += \
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsXDEFINES += \
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updaterifeq "$(RELEASE)" "noopt"
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsifeq "$(RELEASE)" "release"
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsXDEFINES += \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# These are used by the link target if an NLM is being generated
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# This is used by the link 'name' directive to name the nlm. If left blank
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# TARGET_nlm (see below) will be used.
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsNLM_NAME = userdir
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updater# This is used by the link '-desc ' directive.
0df8ead472f207020f8da22a185fe4b945248ab8Automatic Updater# If left blank, NLM_NAME will be used.
0ce87e5749aabb8eef1e0a37e4bd6e6ffa1d7196Automatic UpdaterNLM_DESCRIPTION = Apache $(VERSION_STR) User Dir Module
2bb3422dc683c013db7042f5736240de6b86f182Automatic Updater# This is used by the '-threadname' directive. If left blank,
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# NLM_NAME Thread will be used.
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic UpdaterNLM_THREAD_NAME = UserDir Module
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# If this is specified, it will override VERSION value in
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# If this is specified, it will override the default of 64K
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterNLM_STACK_SIZE = 8192
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# If this is specified it will be used by the link '-entry' directive
59528addd704f8d5757b54e540520f74e588a7c7Automatic UpdaterNLM_ENTRY_SYM =
7f94d9a8162c9a96b56e66176702b66e79d8e1a2Automatic Updater# If this is specified it will be used by the link '-exit' directive
7f94d9a8162c9a96b56e66176702b66e79d8e1a2Automatic Updater# If this is specified it will be used by the link '-check' directive
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterNLM_CHECK_SYM =
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# If these are specified it will be used by the link '-flags' directive
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# If this is specified it will be linked in with the XDCData option in the def
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
bbb069be941f649228760edcc241122933c066d2Automatic Updater# by setting APACHE_UNIPROC in the environment
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater# If there is an NLM target, put it here
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# If there is an LIB target, put it here
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsTARGET_lib = \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# These are the OBJ files needed to create the NLM target above.
7f94d9a8162c9a96b56e66176702b66e79d8e1a2Automatic Updater# Paths must all use the '/' character
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterFILES_nlm_objs = \
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# These are the LIB files needed to create the NLM target above.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# These will be added as a library command in the link.opt file.
00be0f9f61d4c6bf197d000bfa1a6b7e70ea0866Automatic UpdaterFILES_nlm_libs = \
71bd43eebd9d6e42dbcae62b730f5b6508d5acd8Automatic Updater# These are the modules that the above NLM target depends on to load.
0ce87e5749aabb8eef1e0a37e4bd6e6ffa1d7196Automatic Updater# These will be added as a module command in the link.opt file.
f0ecd0e64ffa2a8afef95d81275d46a845f15402Automatic UpdaterFILES_nlm_modules = \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# If the nlm has a msg file, put it's path here
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonFILE_nlm_msg =
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# If the nlm has a hlp file put it's path here
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark AndrewsFILE_nlm_hlp =
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# If this is specified, it will override $(NWOS)\copyright.txt.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsFILE_nlm_copyright =
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# Any additional imports go here
e076d0c88be69de7c190ab924d095e69d2e11f7aAndreas GustafssonFILES_nlm_Ximports = \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# Any symbols exported to here
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsFILES_nlm_exports = \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson userdir_module \
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# These are the OBJ files needed to create the LIB target above.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Paths must all use the '/' character
b4cebdb6ccde66a8f3e397a1b90b0cf788519d69Automatic UpdaterFILES_lib_objs = \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# implement targets and dependancies (leave this section alone)
bc0a4c01beede169df81a3ee5b614ed9e82339dbAutomatic Updaterlibs :: $(OBJDIR) $(TARGET_lib)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updaternlms :: libs $(TARGET_nlm)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Updated this target to create necessary directories and copy files to the
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtoninstall :: nlms FORCE
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Any specialized rules here
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Include the 'tail' makefile that has targets that depend on variables defined
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# in this makefile
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtoninclude $(APBUILD)/NWGNUtail.inc