NWGNUstatus revision ac7985784d08a3655291f24f711812b4d8b1cbcf
0a35160f4eb349188a988d2857e0b3052ad4b778Evan Hunt# Make sure all needed macro's are defined
d0803df3310ad09447c34b972e7594d576f5cbb5Evan Hunt# Get the 'head' of the build environment if necessary. This includes default
d0803df3310ad09447c34b972e7594d576f5cbb5Evan Hunt# targets and paths to tools
47c847e286ac1d9dcc1b6dec5430ad9d2abad7b2Evan Huntifndef EnvironmentDefined
47c847e286ac1d9dcc1b6dec5430ad9d2abad7b2Evan Huntinclude $(AP_WORK)\build\NWGNUhead.inc
75d747e1c5a30d6ef6c6238c6e27baa11d6f3bf6Mark Andrews# These directories will be at the beginning of the include list, followed by
b8cf73a3b3e21d61f5a06670551ac22e61bcc4b1Mark AndrewsXINCDIRS += \
b8cf73a3b3e21d61f5a06670551ac22e61bcc4b1Mark Andrews $(AP_WORK)/include \
b8cf73a3b3e21d61f5a06670551ac22e61bcc4b1Mark Andrews $(APR)/include \
b8cf73a3b3e21d61f5a06670551ac22e61bcc4b1Mark Andrews $(APRUTIL)/include \
83f69fcd6ef72c9e2ebcb025b66a2ee74176becdEvan Hunt# These flags will come after CFLAGS
e45d0508c3460db87afb1f743bc5210522721bb3Evan Hunt# These defines will come after DEFINES
e45d0508c3460db87afb1f743bc5210522721bb3Evan HuntXDEFINES += \
f8c990f6c2d3f75120bd67a55e87f21e88e9e5a6Evan Hunt# These flags will be added to the link.opt file
a147de10fe5e19e593d42152ffd6879eca69860dEvan Hunt# These values will be appended to the correct variables based on the value of
a147de10fe5e19e593d42152ffd6879eca69860dEvan Huntifeq "$(RELEASE)" "debug"
702958d20247bb9e34019cf02d8ec18d4f3b1005Mark AndrewsXINCDIRS += \
cd7f8d18f8ed073ca5478d63f49179286d38d3d6Mark AndrewsXDEFINES += \
4882e183cac5772ea522811c758c402cd7e8ad5bEvan Huntifeq "$(RELEASE)" "noopt"
cd7f8d18f8ed073ca5478d63f49179286d38d3d6Mark AndrewsXINCDIRS += \
cd7f8d18f8ed073ca5478d63f49179286d38d3d6Mark AndrewsXDEFINES += \
a18fc12ba3d48b66bea298c80f3e3f09f3c91527Evan Huntifeq "$(RELEASE)" "release"
a18fc12ba3d48b66bea298c80f3e3f09f3c91527Evan HuntXINCDIRS += \
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan HuntXDEFINES += \
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt# These are used by the link target if an NLM is being generated
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt# This is used by the link 'name' directive to name the nlm. If left blank
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt# TARGET_nlm (see below) will be used.
b751788932cf1a6d98ae83355f38a080125c2f3eEvan HuntNLM_NAME = status
fb756ba3047770957173ba546257ca43af7ba3e4Mark Andrews# This is used by the link '-desc ' directive.
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt# If left blank, NLM_NAME will be used.
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan HuntNLM_DESCRIPTION = Apache $(VERSION_STR) Status Module
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt# This is used by the '-threadname' directive. If left blank,
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt# NLM_NAME Thread will be used.
39c30670e869062914b6f7245b64b9ebe8747d86Mark AndrewsNLM_THREAD_NAME = Status Module
789252d55f025db52ee02aa933c9f09a4aadfa97Evan Hunt# If this is specified, it will override VERSION value in
789252d55f025db52ee02aa933c9f09a4aadfa97Evan Hunt# $(AP_WORK)\build\NWGNUenvironment.inc
789252d55f025db52ee02aa933c9f09a4aadfa97Evan HuntNLM_VERSION =
789252d55f025db52ee02aa933c9f09a4aadfa97Evan Hunt# If this is specified, it will override the default of 64K
789252d55f025db52ee02aa933c9f09a4aadfa97Evan HuntNLM_STACK_SIZE = 8192
e851ea826066ac5a5b01c2c23218faa0273a12e8Evan Hunt# If this is specified it will be used by the link '-entry' directive
d0e3216c217bf790c4a582191658c2a1900ff79fMark AndrewsNLM_ENTRY_SYM = _LibCPrelude
e9649ece3bf32ff43faea13c76bbba7813d7e139Mark Andrews# If this is specified it will be used by the link '-exit' directive
2b258a1f5b02488c6a36ac1b0a7535b42ea6fd34Evan HuntNLM_EXIT_SYM = _LibCPostlude
3f4a0e80fabe0233086e127aaabc6e68d6975c3aEvan Hunt# If this is specified it will be used by the link '-check' directive
b93ef543ab29be2c2d15049e02e66a31b27284aeMark AndrewsNLM_CHECK_SYM =
33a296aa3a3d5e808cabf556c95f29cc1eecff16Evan Hunt# If these are specified it will be used by the link '-flags' directive
b93ef543ab29be2c2d15049e02e66a31b27284aeMark AndrewsNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
161e803a5608956271d8120be37a1b383d14b647Mark Andrews# If this is specified it will be linked in with the XDCData option in the def
5f8d6cec48cef9055359c628942d633693f732b2Evan Hunt# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
5f8d6cec48cef9055359c628942d633693f732b2Evan Hunt# by setting APACHE_UNIPROC in the environment
0606c47750ad362909f010db2ef1ff8dcc96f9cbEvan Hunt# If there is an NLM target, put it here
9b895f30f1734fd463a02b27cfd0cf36ec9893d5Evan HuntTARGET_nlm = \
e4d0018d4c9c05fb2a2dbac05a67cc9ddbe2c3d9Mark Andrews# If there is an LIB target, put it here
00112618bc042f734de7b5ac86506cacb9acf36dMark AndrewsTARGET_lib = \
0bbe3273a224aa07b6af4165a26fd26d6f30c0adEvan Hunt# These are the OBJ files needed to create the NLM target above.
0bbe3273a224aa07b6af4165a26fd26d6f30c0adEvan Hunt# Paths must all use the '/' character
445a354e63f84ac884d923f697b598b83288dc64Evan HuntFILES_nlm_objs = \
bee9a28af0f923c205f76819618ed7ffcf3f6997Evan Hunt# These are the LIB files needed to create the NLM target above.
bee9a28af0f923c205f76819618ed7ffcf3f6997Evan Hunt# These will be added as a library command in the link.opt file.
8009525601d946805fae58b037cf7dad0da516f8Curtis BlackburnFILES_nlm_libs = \
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# These are the modules that the above NLM target depends on to load.
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# These will be added as a module command in the link.opt file.
2c2be89824d3899591d34c26adb155da6a993ce3Evan HuntFILES_nlm_modules = \
ae871ebb28959bed920cc96cd9e91063b6625b78Mark Andrews# If the nlm has a msg file, put it's path here
49ae04f6ee2f2e2578e6cd8cd3d4c74e9098ccb0Mark AndrewsFILE_nlm_msg =
d999ca28d40337907b55eebc28a255b638702379Evan Hunt# If the nlm has a hlp file put it's path here
d999ca28d40337907b55eebc28a255b638702379Evan HuntFILE_nlm_hlp =
fd63f3110fe9a20d6188bc30ebf4b44595bac8eeMark Andrews# If this is specified, it will override $(NWOS)\copyright.txt.
15eb0cb8e15fc0f4f02713fd8d993476f0394763Evan HuntFILE_nlm_copyright =
225146b2c8c7de8dcff979841b56b15aef8aded2Mark Andrews# Any additional imports go here
434bfc3dfa2003ba0dd4b2392286806131fd6724Evan HuntFILES_nlm_Ximports = \
6b0434299b05b6ca05c6836b9e8fbb7e67f05fb8Mark Andrews# Any symbols exported to here
eb5e0b8dec22de22dd824959e39b26c4f5b1c52dMark AndrewsFILES_nlm_exports = \
eb5e0b8dec22de22dd824959e39b26c4f5b1c52dMark Andrews status_module \
0a47bc90af557138a2aaff614ad73d95155ddd9eMark Andrews# These are the OBJ files needed to create the LIB target above.
0a47bc90af557138a2aaff614ad73d95155ddd9eMark Andrews# Paths must all use the '/' character
20489550151432d8d99c3f49629c7c718fdca6abMark AndrewsFILES_lib_objs = \
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# implement targets and dependancies (leave this section alone)
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrewslibs :: $(OBJDIR) $(TARGET_lib)
37bd255fd499c26aaf474f4294212951b84d9068Mark Andrewsnlms :: libs $(TARGET_nlm)
7aa21a491d9468bfc29d8cc331a4e963874426dfFrancis Dupont# Updated this target to create necessary directories and copy files to the
7aa21a491d9468bfc29d8cc331a4e963874426dfFrancis Dupont# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
34416a7954da96c5a5f5803fe02f059cb94bf6fdMark Andrewsinstall :: nlms FORCE
6100b1769956200b2815803ab7b35556396ce0d1Mark Andrews# Any specialized rules here
aacd7daaf7859de742ab35eac00e70676b1b9f4fEvan Hunt# Include the 'tail' makefile that has targets that depend on variables defined
aacd7daaf7859de742ab35eac00e70676b1b9f4fEvan Hunt# in this makefile
a379c8c108de279cc4e09139c12457c1531bd122Mark Andrewsinclude $(AP_WORK)\build\NWGNUtail.inc