NWGNUslotmem_shm revision cf7ca2f9eaa6523fefcccba4287b91637391fb51
dcfda24abf565c442d058cbf81b2180d847a1b3eAutomatic Updater# Make sure all needed macro's are defined
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Get the 'head' of the build environment if necessary. This includes default
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# targets and paths to tools
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsifndef EnvironmentDefined
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude $(AP_WORK)/build/NWGNUhead.inc
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# These directories will be at the beginning of the include list, followed by
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsXINCDIRS += \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(APR)/include \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(APRUTIL)/include \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(AP_WORK)/include \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# These flags will come after CFLAGS
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# These defines will come after DEFINES
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsXDEFINES += \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# These flags will be added to the link.opt file
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# These values will be appended to the correct variables based on the value of
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsifeq "$(RELEASE)" "debug"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsXINCDIRS += \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsifeq "$(RELEASE)" "noopt"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsXINCDIRS += \
f6da30bb5447c23d880b09f601441e70c5313557Mark AndrewsXDEFINES += \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsifeq "$(RELEASE)" "release"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsXINCDIRS += \
f7b41fd9291b8f4dba27e2b57e1d93f0913a4f1dMark AndrewsXDEFINES += \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# These are used by the link target if an NLM is being generated
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# This is used by the link 'name' directive to name the nlm. If left blank
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# TARGET_nlm (see below) will be used.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsNLM_NAME = slotmem_shm
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# This is used by the link '-desc ' directive.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If left blank, NLM_NAME will be used.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsNLM_DESCRIPTION = Apache $(VERSION_STR) Slotmem SHM Module
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# This is used by the '-threadname' directive. If left blank,
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark Andrews# NLM_NAME Thread will be used.
a057e8e33baa5fa369be28a9680585200ce3ff73Mark AndrewsNLM_THREAD_NAME = Slotmem SHM Module
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If this is specified, it will override VERSION value in
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsNLM_VERSION =
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If this is specified, it will override the default of 64K
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsNLM_STACK_SIZE = 8192
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If this is specified it will be used by the link '-entry' directive
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsNLM_ENTRY_SYM =
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark Andrews# If this is specified it will be used by the link '-exit' directive
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsNLM_EXIT_SYM =
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If this is specified it will be used by the link '-check' directive
a057e8e33baa5fa369be28a9680585200ce3ff73Mark AndrewsNLM_CHECK_SYM =
a057e8e33baa5fa369be28a9680585200ce3ff73Mark Andrews# If these are specified it will be used by the link '-flags' directive
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If this is specified it will be linked in with the XDCData option in the def
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# by setting APACHE_UNIPROC in the environment
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If there is an NLM target, put it here
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(OBJDIR)/$(NLM_NAME).nlm \
72938578c985138165e7a4b0a38f16daacbad95eAutomatic Updater# If there is an LIB target, put it here
72938578c985138165e7a4b0a38f16daacbad95eAutomatic Updater# These are the OBJ files needed to create the NLM target above.
72938578c985138165e7a4b0a38f16daacbad95eAutomatic Updater# Paths must all use the '/' character
72938578c985138165e7a4b0a38f16daacbad95eAutomatic UpdaterFILES_nlm_objs = \
bf056b7184b38281c1b0bf0cf21b5982fa1a4edaMark Andrews# These are the LIB files needed to create the NLM target above.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# These will be added as a library command in the link.opt file.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsFILES_nlm_libs = \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(PRELUDE) \
97e74139b19368e385a3564746d42db70879195eAutomatic Updater# These are the modules that the above NLM target depends on to load.
97e74139b19368e385a3564746d42db70879195eAutomatic Updater# These will be added as a module command in the link.opt file.
97e74139b19368e385a3564746d42db70879195eAutomatic UpdaterFILES_nlm_modules = \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If the nlm has a msg file, put it's path here
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsFILE_nlm_msg =
3b4098640dd85040270f39b9a5ee5e22de99d3d6Mark Andrews# If the nlm has a hlp file put it's path here
3b4098640dd85040270f39b9a5ee5e22de99d3d6Mark AndrewsFILE_nlm_hlp =
3b4098640dd85040270f39b9a5ee5e22de99d3d6Mark Andrews# If this is specified, it will override $(NWOS)\copyright.txt.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsFILE_nlm_copyright =
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Any additional imports go here
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsFILES_nlm_Ximports = \
f7b41fd9291b8f4dba27e2b57e1d93f0913a4f1dMark Andrews# Any symbols exported to here
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsFILES_nlm_exports = \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews slotmem_shm_module \
e2e4d321999340802f77adaacd19c797d04b4b95Automatic Updater# These are the OBJ files needed to create the LIB target above.
e2e4d321999340802f77adaacd19c797d04b4b95Automatic Updater# Paths must all use the '/' character
e2e4d321999340802f77adaacd19c797d04b4b95Automatic UpdaterFILES_lib_objs = \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# implement targets and dependancies (leave this section alone)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewslibs :: $(OBJDIR) $(TARGET_lib)
285254345ce5ab270848f8c11f7be146793f1e00Mark Andrewsnlms :: libs $(TARGET_nlm)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Updated this target to create necessary directories and copy files to the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinstall :: nlms FORCE
3b4098640dd85040270f39b9a5ee5e22de99d3d6Mark Andrews# Any specialized rules here
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Include the 'tail' makefile that has targets that depend on variables defined
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# in this makefile
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude $(APBUILD)/NWGNUtail.inc