NWGNUextfiltr revision b8022feeb260e31994600a65c2193278838a4802
7fe18c15b669db9d191859695901dc4fcf3829dawrowe# Make sure all needed macro's are defined
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbb# Get the 'head' of the build environment if necessary. This includes default
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbb# targets and paths to tools
571760de5e60c0b459cb11be45507b923cd023eejwoolleyifndef EnvironmentDefined
9180a5933673ffb1af633c255ceee029340f3b1erbbinclude $(AP_WORK)\build\NWGNUhead.inc
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb# These directories will be at the beginning of the include list, followed by
b876b7bcf0ce3d232da723246d709e8dbbfe8762rbbXINCDIRS += \
cf6bf6c34c936e6a6fe731dbce4a5c3c8bf8e9a3gstein $(AP_WORK)/include \
af4c982a7cf4515f124935f99a329744035fc699slive# These flags will come after CFLAGS
af4c982a7cf4515f124935f99a329744035fc699sliveXCFLAGS += \
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# These defines will come after DEFINES
7fe18c15b669db9d191859695901dc4fcf3829dawroweXDEFINES += \
7fe18c15b669db9d191859695901dc4fcf3829dawrowe# These flags will be added to the link.opt file
7fe18c15b669db9d191859695901dc4fcf3829dawroweXLFLAGS += \
7fe18c15b669db9d191859695901dc4fcf3829dawrowe# These values will be appended to the correct variables based on the value of
976501adbc040220270f7d1d77c4b8373033be69wroweifeq "$(RELEASE)" "debug"
976501adbc040220270f7d1d77c4b8373033be69wroweXINCDIRS += \
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbbXCFLAGS += \
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbbXDEFINES += \
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbbXLFLAGS += \
b84f66c93f820824b1d5455181f55598b766319cwroweifeq "$(RELEASE)" "noopt"
b84f66c93f820824b1d5455181f55598b766319cwroweXINCDIRS += \
ec75f189410513ab8f6e1173a9d9d277ebec9ce7gsteinXCFLAGS += \
ec75f189410513ab8f6e1173a9d9d277ebec9ce7gsteinXDEFINES += \
ec75f189410513ab8f6e1173a9d9d277ebec9ce7gsteinXLFLAGS += \
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwroweifeq "$(RELEASE)" "release"
976501adbc040220270f7d1d77c4b8373033be69wroweXINCDIRS += \
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddardXCFLAGS += \
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddardXDEFINES += \
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddardXLFLAGS += \
2c294c31addd5c957bafe6e78c4a30d423ad6e80rbb# These are used by the link target if an NLM is being generated
2c294c31addd5c957bafe6e78c4a30d423ad6e80rbb# This is used by the link 'name' directive to name the nlm. If left blank
c3a2c6ae9a1c7f37d672a54c2c9a1b4f7941085btrawick# TARGET_nlm (see below) will be used.
38b116de532efb28defc6a0aaa71fb8c46487190gsteinNLM_NAME = extfiltr
38b116de532efb28defc6a0aaa71fb8c46487190gstein# This is used by the link '-desc ' directive.
38b116de532efb28defc6a0aaa71fb8c46487190gstein# If left blank, NLM_NAME will be used.
38b116de532efb28defc6a0aaa71fb8c46487190gsteinNLM_DESCRIPTION = Apache External Filter Module
e2979c854f6ff7c056d75f6f1ae49767ce3b6d37jerenkrantz# This is used by the '-threadname' directive. If left blank,
e2979c854f6ff7c056d75f6f1ae49767ce3b6d37jerenkrantz# NLM_NAME Thread will be used.
e2979c854f6ff7c056d75f6f1ae49767ce3b6d37jerenkrantzNLM_THREAD_NAME = ExtFilter Module
38b116de532efb28defc6a0aaa71fb8c46487190gstein# If this is specified, it will override VERSION value in
38b116de532efb28defc6a0aaa71fb8c46487190gstein# $(AP_WORK)\build\NWGNUenvironment.inc
38b116de532efb28defc6a0aaa71fb8c46487190gsteinNLM_VERSION =
38b116de532efb28defc6a0aaa71fb8c46487190gstein# If this is specified, it will override the default of 64K
38b116de532efb28defc6a0aaa71fb8c46487190gsteinNLM_STACK_SIZE = 8192
38b116de532efb28defc6a0aaa71fb8c46487190gstein# If this is specified it will be used by the link '-entry' directive
e2979c854f6ff7c056d75f6f1ae49767ce3b6d37jerenkrantzNLM_ENTRY_SYM = _LibCPrelude
7fe18c15b669db9d191859695901dc4fcf3829dawrowe# If this is specified it will be used by the link '-exit' directive
7fe18c15b669db9d191859695901dc4fcf3829dawroweNLM_EXIT_SYM = _LibCPostlude
b84f66c93f820824b1d5455181f55598b766319cwrowe# If this is specified it will be used by the link '-check' directive
b84f66c93f820824b1d5455181f55598b766319cwroweNLM_CHECK_SYM =
7fe18c15b669db9d191859695901dc4fcf3829dawrowe# If these are specified it will be used by the link '-flags' directive
7fe18c15b669db9d191859695901dc4fcf3829dawroweNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
58d3e59a1181aca7eed95412cefa5061614194c1stoddard# If this is specified it will be linked in with the XDCData option in the def
d4a4220020a793457962e3784641b0b14caaed5fjwoolley# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
af9f2bd7837c251df865825e03ad192e5c6aee18jim# by setting APACHE_UNIPROC in the environment
410912d9cb56a09a74f8655647ed9e81d49023f4gregames# If there is an NLM target, put it here
410912d9cb56a09a74f8655647ed9e81d49023f4gregamesTARGET_nlm = \
60d567a0c2aae815ee6fc20c0d65032bea52c92cwrowe# If there is an LIB target, put it here
60d567a0c2aae815ee6fc20c0d65032bea52c92cwroweTARGET_lib = \
60d567a0c2aae815ee6fc20c0d65032bea52c92cwrowe# These are the OBJ files needed to create the NLM target above.
7239216999e746bb4fc7671621becea33c5c1c87stoddard# Paths must all use the '/' character
d180ec1b29106f4fec480ef7fcdb04df078010cerseFILES_nlm_objs = \
3913a3b7e7c72ea11d05da36275db39c2dc39b68jwoolley# These are the LIB files needed to create the NLM target above.
3913a3b7e7c72ea11d05da36275db39c2dc39b68jwoolley# These will be added as a library command in the link.opt file.
3913a3b7e7c72ea11d05da36275db39c2dc39b68jwoolleyFILES_nlm_libs = \
bebc7b9445f95339822c26bfd470349006f9ec40stoddard# These are the modules that the above NLM target depends on to load.
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard# These will be added as a module command in the link.opt file.
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddardFILES_nlm_modules = \
1b9744b72f26e9a0e935f9c08d49feb1fcce72f9jwoolley# If the nlm has a msg file, put it's path here
1b9744b72f26e9a0e935f9c08d49feb1fcce72f9jwoolleyFILE_nlm_msg =
1b9744b72f26e9a0e935f9c08d49feb1fcce72f9jwoolley# If the nlm has a hlp file put it's path here
1b9744b72f26e9a0e935f9c08d49feb1fcce72f9jwoolleyFILE_nlm_hlp =
19cbe4d7b7c931723e7249de6829bf965a1fee72stoddard# If this is specified, it will override $(NWOS)\copyright.txt.
93db592309ba9e5ab230f67611a2c74fece9cdb2marcFILE_nlm_copyright =
93db592309ba9e5ab230f67611a2c74fece9cdb2marc# Any additional imports go here
93db592309ba9e5ab230f67611a2c74fece9cdb2marcFILES_nlm_Ximports = \
8bed76428f56e5c643174a2d6807c3f18016af5cbjh# Any symbols exported to here
d2f8b010487ffa990a9c268df5a25579e7291bcdrbbFILES_nlm_exports = \
d2f8b010487ffa990a9c268df5a25579e7291bcdrbb ext_filter_module \
0bff2f28ef945280c17099c142126178a78e1e54manoj# These are the OBJ files needed to create the LIB target above.
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard# Paths must all use the '/' character
35330e0d79ceb8027223bbb8330a381b1f989d6etrawickFILES_lib_objs = \
ff849e4163ed879288f0df15f78b6c9d278ec804fanf# implement targets and dependancies (leave this section alone)
447c6ce3ff08073c44f6785d5256271fcb877512wrowelibs :: $(OBJDIR) $(TARGET_lib)
447c6ce3ff08073c44f6785d5256271fcb877512wrowenlms :: libs $(TARGET_nlm)
7fe18c15b669db9d191859695901dc4fcf3829dawrowe# Updated this target to create necessary directories and copy files to the
7fe18c15b669db9d191859695901dc4fcf3829dawrowe# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
447c6ce3ff08073c44f6785d5256271fcb877512wroweinstall :: nlms FORCE
3bb28269556842ebf8888208fd0c7a7f3e343186jerenkrantz# Any specialized rules here
20db975063c58c8fadf72656a8cbd869554e6bfbwrowe# Include the 'tail' makefile that has targets that depend on variables defined
20db975063c58c8fadf72656a8cbd869554e6bfbwrowe# in this makefile
20db975063c58c8fadf72656a8cbd869554e6bfbwroweinclude $(AP_WORK)\build\NWGNUtail.inc