NWGNUimagemap revision cf7ca2f9eaa6523fefcccba4287b91637391fb51
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde# Make sure all needed macro's are defined
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde# Get the 'head' of the build environment if necessary. This includes default
9bb91f1dbf7cf8cfbd2df7784101df98d59fb46dTimo Sirainen# targets and paths to tools
fc71e94957d0c2959a609450a2f303640d681858Sascha Wildeifndef EnvironmentDefined
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde# These directories will be at the beginning of the include list, followed by
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo Sirainen $(APR)/include \
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo Sirainen $(APRUTIL)/include \
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo Sirainen $(AP_WORK)/include \
4b1359bde7d32667197548652a4b4f540062e2acTimo Sirainen# These flags will come after CFLAGS
0f4fb03953afa4a39d5e32e9ca0527c0a84f9aeeTimo Sirainen# These defines will come after DEFINES
fc71e94957d0c2959a609450a2f303640d681858Sascha WildeXDEFINES += \
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde# These flags will be added to the link.opt file
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde# These values will be appended to the correct variables based on the value of
0dffa25d211be541ee3c953b23566a1a990789dfTimo Sirainenifeq "$(RELEASE)" "debug"
fc71e94957d0c2959a609450a2f303640d681858Sascha WildeXINCDIRS += \
4b1359bde7d32667197548652a4b4f540062e2acTimo Sirainenifeq "$(RELEASE)" "noopt"
fc71e94957d0c2959a609450a2f303640d681858Sascha WildeXDEFINES += \
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo Sirainenifeq "$(RELEASE)" "release"
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde# These are used by the link target if an NLM is being generated
64bfe7b4a42512971db154937905dfa2bdb9cf2cTimo Sirainen# This is used by the link 'name' directive to name the nlm. If left blank
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde# TARGET_nlm (see below) will be used.
1c6dd898551d7d4d61970b24a8372438f6b72f97Timo SirainenNLM_NAME = imagemap
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo Sirainen# This is used by the link '-desc ' directive.
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde# If left blank, NLM_NAME will be used.
fc71e94957d0c2959a609450a2f303640d681858Sascha WildeNLM_DESCRIPTION = Apache $(VERSION_STR) Image Map Module
89fda66c5c4204f3bc27e160fbadb463e028b811Timo Sirainen# This is used by the '-threadname' directive. If left blank,
89fda66c5c4204f3bc27e160fbadb463e028b811Timo Sirainen# NLM_NAME Thread will be used.
64bfe7b4a42512971db154937905dfa2bdb9cf2cTimo SirainenNLM_THREAD_NAME = Image Map Module
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo Sirainen# If this is specified, it will override VERSION value in
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo Sirainen# If this is specified, it will override the default of 64K
7a60e1dc9e93ef3f7c7fe1af6385a0bfa1e31bc3Timo SirainenNLM_STACK_SIZE = 8192
4b1359bde7d32667197548652a4b4f540062e2acTimo Sirainen# If this is specified it will be used by the link '-entry' directive
4b1359bde7d32667197548652a4b4f540062e2acTimo SirainenNLM_ENTRY_SYM =
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo Sirainen# If this is specified it will be used by the link '-exit' directive
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo SirainenNLM_EXIT_SYM =
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo Sirainen# If this is specified it will be used by the link '-check' directive
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo SirainenNLM_CHECK_SYM =
3b22894b8805b186c73d8b754001e8d7e944be85Timo Sirainen# If these are specified it will be used by the link '-flags' directive
fc464e5b2b2ab4d415a5d5b90ce4475d34620a75Timo Sirainen# If this is specified it will be linked in with the XDCData option in the def
fc464e5b2b2ab4d415a5d5b90ce4475d34620a75Timo Sirainen# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
fc464e5b2b2ab4d415a5d5b90ce4475d34620a75Timo Sirainen# by setting APACHE_UNIPROC in the environment
3b22894b8805b186c73d8b754001e8d7e944be85Timo Sirainen# If there is an NLM target, put it here
3b22894b8805b186c73d8b754001e8d7e944be85Timo SirainenTARGET_nlm = \
fc464e5b2b2ab4d415a5d5b90ce4475d34620a75Timo Sirainen# If there is an LIB target, put it here
61767c7537efe3eb51f80d37cda12d69c67f3c05Timo SirainenTARGET_lib = \
61767c7537efe3eb51f80d37cda12d69c67f3c05Timo Sirainen# These are the OBJ files needed to create the NLM target above.
61767c7537efe3eb51f80d37cda12d69c67f3c05Timo Sirainen# Paths must all use the '/' character
61767c7537efe3eb51f80d37cda12d69c67f3c05Timo SirainenFILES_nlm_objs = \
61767c7537efe3eb51f80d37cda12d69c67f3c05Timo Sirainen# These are the LIB files needed to create the NLM target above.
61767c7537efe3eb51f80d37cda12d69c67f3c05Timo Sirainen# These will be added as a library command in the link.opt file.
61767c7537efe3eb51f80d37cda12d69c67f3c05Timo SirainenFILES_nlm_libs = \
61767c7537efe3eb51f80d37cda12d69c67f3c05Timo Sirainen# These are the modules that the above NLM target depends on to load.
61767c7537efe3eb51f80d37cda12d69c67f3c05Timo Sirainen# These will be added as a module command in the link.opt file.
61767c7537efe3eb51f80d37cda12d69c67f3c05Timo SirainenFILES_nlm_modules = \
31a574fda352ef4f71dbff9c30e15e4744e132c0Timo Sirainen# If the nlm has a msg file, put it's path here
61767c7537efe3eb51f80d37cda12d69c67f3c05Timo SirainenFILE_nlm_msg =
9f10cc61ec303351b43e54155c86699ef53cb8beTimo Sirainen# If the nlm has a hlp file put it's path here
9f10cc61ec303351b43e54155c86699ef53cb8beTimo SirainenFILE_nlm_hlp =
3b22894b8805b186c73d8b754001e8d7e944be85Timo Sirainen# If this is specified, it will override $(NWOS)\copyright.txt.
9f10cc61ec303351b43e54155c86699ef53cb8beTimo SirainenFILE_nlm_copyright =
3b22894b8805b186c73d8b754001e8d7e944be85Timo Sirainen# Any additional imports go here
3b22894b8805b186c73d8b754001e8d7e944be85Timo SirainenFILES_nlm_Ximports = \
3b22894b8805b186c73d8b754001e8d7e944be85Timo Sirainen# Any symbols exported to here
3b22894b8805b186c73d8b754001e8d7e944be85Timo SirainenFILES_nlm_exports = \
3b22894b8805b186c73d8b754001e8d7e944be85Timo Sirainen imagemap_module \
9f10cc61ec303351b43e54155c86699ef53cb8beTimo Sirainen# These are the OBJ files needed to create the LIB target above.
61767c7537efe3eb51f80d37cda12d69c67f3c05Timo Sirainen# Paths must all use the '/' character
9199e32b86d2de2fb7b73b6ec03b5c205b995490Timo SirainenFILES_lib_objs = \
4b1359bde7d32667197548652a4b4f540062e2acTimo Sirainen# implement targets and dependancies (leave this section alone)
5c0ab4cc4dff573940df683eb4b23bd6077153faTimo Sirainenlibs :: $(OBJDIR) $(TARGET_lib)
5c0ab4cc4dff573940df683eb4b23bd6077153faTimo Sirainennlms :: libs $(TARGET_nlm)
5c0ab4cc4dff573940df683eb4b23bd6077153faTimo Sirainen# Updated this target to create necessary directories and copy files to the
5c0ab4cc4dff573940df683eb4b23bd6077153faTimo Sirainen# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
5c0ab4cc4dff573940df683eb4b23bd6077153faTimo Siraineninstall :: nlms FORCE
5c0ab4cc4dff573940df683eb4b23bd6077153faTimo Sirainen# Any specialized rules here
5c0ab4cc4dff573940df683eb4b23bd6077153faTimo Sirainen# Include the 'tail' makefile that has targets that depend on variables defined
5c0ab4cc4dff573940df683eb4b23bd6077153faTimo Sirainen# in this makefile
5c0ab4cc4dff573940df683eb4b23bd6077153faTimo Siraineninclude $(APBUILD)/NWGNUtail.inc