NWGNUextfiltr revision b8022feeb260e31994600a65c2193278838a4802
7f007e36bec06aba6b3a0f84a64f2abf99edfcd8gstein#
7fe18c15b669db9d191859695901dc4fcf3829dawrowe# Make sure all needed macro's are defined
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbb# Get the 'head' of the build environment if necessary. This includes default
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbb# targets and paths to tools
ab71b233b3a36489e44a7b061c48293be0b17788jwoolley#
571760de5e60c0b459cb11be45507b923cd023eejwoolley
571760de5e60c0b459cb11be45507b923cd023eejwoolleyifndef EnvironmentDefined
9180a5933673ffb1af633c255ceee029340f3b1erbbinclude $(AP_WORK)\build\NWGNUhead.inc
bcb6e1be6041dfeb549c8ea8d37f97ad4e90a0c3rbbendif
9bd71e35f5d26d26d23fe3a677401828e842ed72wrowe
2900ab946a2d76b73a14cebfe2985d253f01c967stoddard#
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb# These directories will be at the beginning of the include list, followed by
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb# INCDIRS
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb#
b876b7bcf0ce3d232da723246d709e8dbbfe8762rbbXINCDIRS += \
cf6bf6c34c936e6a6fe731dbce4a5c3c8bf8e9a3gstein $(AP_WORK)/include \
35330e0d79ceb8027223bbb8330a381b1f989d6etrawick $(NWOS) \
6f6f4a4bca281779d196acbdd5c017bb90858305trawick $(AP_WORK)/modules/arch/netware \
8dd4618c4709236b4ea297d7250d282e463ce2d8rbb $(AP_WORK)/srclib/apr/include \
09bd86d0db1114ee23eda0a6eb76ca055877a1cftrawick $(AP_WORK)/srclib/apr-util/include \
2deb319e6b3de239f45c16a3e9e836d44f1f7108rbb $(AP_WORK)/srclib/apr \
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb $(EOLIST)
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
af4c982a7cf4515f124935f99a329744035fc699slive# These flags will come after CFLAGS
af4c982a7cf4515f124935f99a329744035fc699slive#
af4c982a7cf4515f124935f99a329744035fc699sliveXCFLAGS += \
af4c982a7cf4515f124935f99a329744035fc699slive -prefix pre_nw.h \
af4c982a7cf4515f124935f99a329744035fc699slive $(EOLIST)
af4c982a7cf4515f124935f99a329744035fc699slive
af4c982a7cf4515f124935f99a329744035fc699slive#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# These defines will come after DEFINES
531c23ff01a2489646f0a2029097013b328d935agstein#
7fe18c15b669db9d191859695901dc4fcf3829dawroweXDEFINES += \
7fe18c15b669db9d191859695901dc4fcf3829dawrowe $(EOLIST)
7fe18c15b669db9d191859695901dc4fcf3829dawrowe
7fe18c15b669db9d191859695901dc4fcf3829dawrowe#
7fe18c15b669db9d191859695901dc4fcf3829dawrowe# These flags will be added to the link.opt file
7fe18c15b669db9d191859695901dc4fcf3829dawrowe#
7fe18c15b669db9d191859695901dc4fcf3829dawroweXLFLAGS += \
7fe18c15b669db9d191859695901dc4fcf3829dawrowe $(EOLIST)
7fe18c15b669db9d191859695901dc4fcf3829dawrowe
b84f66c93f820824b1d5455181f55598b766319cwrowe#
7fe18c15b669db9d191859695901dc4fcf3829dawrowe# These values will be appended to the correct variables based on the value of
976501adbc040220270f7d1d77c4b8373033be69wrowe# RELEASE
976501adbc040220270f7d1d77c4b8373033be69wrowe#
976501adbc040220270f7d1d77c4b8373033be69wroweifeq "$(RELEASE)" "debug"
976501adbc040220270f7d1d77c4b8373033be69wroweXINCDIRS += \
976501adbc040220270f7d1d77c4b8373033be69wrowe $(EOLIST)
b84f66c93f820824b1d5455181f55598b766319cwrowe
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbbXCFLAGS += \
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb $(EOLIST)
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbbXDEFINES += \
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb $(EOLIST)
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbbXLFLAGS += \
b84f66c93f820824b1d5455181f55598b766319cwrowe $(EOLIST)
b84f66c93f820824b1d5455181f55598b766319cwroweendif
b84f66c93f820824b1d5455181f55598b766319cwrowe
b84f66c93f820824b1d5455181f55598b766319cwroweifeq "$(RELEASE)" "noopt"
b84f66c93f820824b1d5455181f55598b766319cwroweXINCDIRS += \
b84f66c93f820824b1d5455181f55598b766319cwrowe $(EOLIST)
79d5106a9b65b956d646f5daae4b94bc79e315b8trawick
ec75f189410513ab8f6e1173a9d9d277ebec9ce7gsteinXCFLAGS += \
ec75f189410513ab8f6e1173a9d9d277ebec9ce7gstein $(EOLIST)
ec75f189410513ab8f6e1173a9d9d277ebec9ce7gstein
ec75f189410513ab8f6e1173a9d9d277ebec9ce7gsteinXDEFINES += \
ec75f189410513ab8f6e1173a9d9d277ebec9ce7gstein $(EOLIST)
ec75f189410513ab8f6e1173a9d9d277ebec9ce7gstein
ec75f189410513ab8f6e1173a9d9d277ebec9ce7gsteinXLFLAGS += \
ec75f189410513ab8f6e1173a9d9d277ebec9ce7gstein $(EOLIST)
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwroweendif
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwrowe
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwroweifeq "$(RELEASE)" "release"
976501adbc040220270f7d1d77c4b8373033be69wroweXINCDIRS += \
976501adbc040220270f7d1d77c4b8373033be69wrowe $(EOLIST)
dc96a5e6f9af3c514df4c61ab9468fcf97f9846fwrowe
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddardXCFLAGS += \
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard $(EOLIST)
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddardXDEFINES += \
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard $(EOLIST)
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddardXLFLAGS += \
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard $(EOLIST)
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddardendif
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard
2c294c31addd5c957bafe6e78c4a30d423ad6e80rbb#
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.
38b116de532efb28defc6a0aaa71fb8c46487190gstein#
38b116de532efb28defc6a0aaa71fb8c46487190gsteinNLM_NAME = extfiltr
38b116de532efb28defc6a0aaa71fb8c46487190gstein
38b116de532efb28defc6a0aaa71fb8c46487190gstein#
38b116de532efb28defc6a0aaa71fb8c46487190gstein# This is used by the link '-desc ' directive.
38b116de532efb28defc6a0aaa71fb8c46487190gstein# If left blank, NLM_NAME will be used.
38b116de532efb28defc6a0aaa71fb8c46487190gstein#
38b116de532efb28defc6a0aaa71fb8c46487190gsteinNLM_DESCRIPTION = Apache External Filter Module
38b116de532efb28defc6a0aaa71fb8c46487190gstein
e2979c854f6ff7c056d75f6f1ae49767ce3b6d37jerenkrantz#
e2979c854f6ff7c056d75f6f1ae49767ce3b6d37jerenkrantz# This is used by the '-threadname' directive. If left blank,
e2979c854f6ff7c056d75f6f1ae49767ce3b6d37jerenkrantz# NLM_NAME Thread will be used.
e2979c854f6ff7c056d75f6f1ae49767ce3b6d37jerenkrantz#
e2979c854f6ff7c056d75f6f1ae49767ce3b6d37jerenkrantzNLM_THREAD_NAME = ExtFilter Module
e2979c854f6ff7c056d75f6f1ae49767ce3b6d37jerenkrantz
e2979c854f6ff7c056d75f6f1ae49767ce3b6d37jerenkrantz#
38b116de532efb28defc6a0aaa71fb8c46487190gstein# If this is specified, it will override VERSION value in
38b116de532efb28defc6a0aaa71fb8c46487190gstein# $(AP_WORK)\build\NWGNUenvironment.inc
38b116de532efb28defc6a0aaa71fb8c46487190gstein#
38b116de532efb28defc6a0aaa71fb8c46487190gsteinNLM_VERSION =
38b116de532efb28defc6a0aaa71fb8c46487190gstein
38b116de532efb28defc6a0aaa71fb8c46487190gstein#
38b116de532efb28defc6a0aaa71fb8c46487190gstein# If this is specified, it will override the default of 64K
38b116de532efb28defc6a0aaa71fb8c46487190gstein#
38b116de532efb28defc6a0aaa71fb8c46487190gsteinNLM_STACK_SIZE = 8192
38b116de532efb28defc6a0aaa71fb8c46487190gstein
38b116de532efb28defc6a0aaa71fb8c46487190gstein
38b116de532efb28defc6a0aaa71fb8c46487190gstein#
38b116de532efb28defc6a0aaa71fb8c46487190gstein# If this is specified it will be used by the link '-entry' directive
e2979c854f6ff7c056d75f6f1ae49767ce3b6d37jerenkrantz#
e2979c854f6ff7c056d75f6f1ae49767ce3b6d37jerenkrantzNLM_ENTRY_SYM = _LibCPrelude
38b116de532efb28defc6a0aaa71fb8c46487190gstein
7fe18c15b669db9d191859695901dc4fcf3829dawrowe#
7fe18c15b669db9d191859695901dc4fcf3829dawrowe# If this is specified it will be used by the link '-exit' directive
7fe18c15b669db9d191859695901dc4fcf3829dawrowe#
7fe18c15b669db9d191859695901dc4fcf3829dawroweNLM_EXIT_SYM = _LibCPostlude
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj
33a70d93b992bbb63b809c24df29451f38f017c1rbb#
b84f66c93f820824b1d5455181f55598b766319cwrowe# If this is specified it will be used by the link '-check' directive
b84f66c93f820824b1d5455181f55598b766319cwrowe#
b84f66c93f820824b1d5455181f55598b766319cwroweNLM_CHECK_SYM =
b84f66c93f820824b1d5455181f55598b766319cwrowe
7fe18c15b669db9d191859695901dc4fcf3829dawrowe#
7fe18c15b669db9d191859695901dc4fcf3829dawrowe# If these are specified it will be used by the link '-flags' directive
7fe18c15b669db9d191859695901dc4fcf3829dawrowe#
7fe18c15b669db9d191859695901dc4fcf3829dawroweNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
b84f66c93f820824b1d5455181f55598b766319cwrowe
9279bf6c00e1f5d36b8257700f41bfdf4b4a8199coar#
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
bca84f0b0ca4f3466ac2f845f1bdcdede7f34d91rbb#
809cf6f87f7a07b348f6d69961834923bc16313egsteinXDCDATA =
809cf6f87f7a07b348f6d69961834923bc16313egstein
809cf6f87f7a07b348f6d69961834923bc16313egstein#
410912d9cb56a09a74f8655647ed9e81d49023f4gregames# If there is an NLM target, put it here
410912d9cb56a09a74f8655647ed9e81d49023f4gregames#
410912d9cb56a09a74f8655647ed9e81d49023f4gregamesTARGET_nlm = \
410912d9cb56a09a74f8655647ed9e81d49023f4gregames $(OBJDIR)/extfiltr.nlm \
60d567a0c2aae815ee6fc20c0d65032bea52c92cwrowe $(EOLIST)
60d567a0c2aae815ee6fc20c0d65032bea52c92cwrowe
60d567a0c2aae815ee6fc20c0d65032bea52c92cwrowe#
60d567a0c2aae815ee6fc20c0d65032bea52c92cwrowe# If there is an LIB target, put it here
7fe18c15b669db9d191859695901dc4fcf3829dawrowe#
60d567a0c2aae815ee6fc20c0d65032bea52c92cwroweTARGET_lib = \
60d567a0c2aae815ee6fc20c0d65032bea52c92cwrowe $(EOLIST)
60d567a0c2aae815ee6fc20c0d65032bea52c92cwrowe
60d567a0c2aae815ee6fc20c0d65032bea52c92cwrowe#
60d567a0c2aae815ee6fc20c0d65032bea52c92cwrowe# These are the OBJ files needed to create the NLM target above.
7239216999e746bb4fc7671621becea33c5c1c87stoddard# Paths must all use the '/' character
d180ec1b29106f4fec480ef7fcdb04df078010cerse#
d180ec1b29106f4fec480ef7fcdb04df078010cerseFILES_nlm_objs = \
3913a3b7e7c72ea11d05da36275db39c2dc39b68jwoolley $(OBJDIR)/mod_ext_filter.o \
3913a3b7e7c72ea11d05da36275db39c2dc39b68jwoolley $(EOLIST)
3913a3b7e7c72ea11d05da36275db39c2dc39b68jwoolley
3913a3b7e7c72ea11d05da36275db39c2dc39b68jwoolley#
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.
3913a3b7e7c72ea11d05da36275db39c2dc39b68jwoolley#
3913a3b7e7c72ea11d05da36275db39c2dc39b68jwoolleyFILES_nlm_libs = \
d180ec1b29106f4fec480ef7fcdb04df078010cerse libcpre.o \
e32adabcbf3bf5b69ba2e8b163b971839efc94dbtrawick $(EOLIST)
e32adabcbf3bf5b69ba2e8b163b971839efc94dbtrawick
e32adabcbf3bf5b69ba2e8b163b971839efc94dbtrawick#
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.
49facccad3f5c3e9e49311487b5069699c3bf3fdjwoolley#
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddardFILES_nlm_modules = \
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard aprlib \
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard libc \
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard $(EOLIST)
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard
1b9744b72f26e9a0e935f9c08d49feb1fcce72f9jwoolley#
1b9744b72f26e9a0e935f9c08d49feb1fcce72f9jwoolley# If the nlm has a msg file, put it's path here
1b9744b72f26e9a0e935f9c08d49feb1fcce72f9jwoolley#
1b9744b72f26e9a0e935f9c08d49feb1fcce72f9jwoolleyFILE_nlm_msg =
1b9744b72f26e9a0e935f9c08d49feb1fcce72f9jwoolley
1b9744b72f26e9a0e935f9c08d49feb1fcce72f9jwoolley#
1b9744b72f26e9a0e935f9c08d49feb1fcce72f9jwoolley# If the nlm has a hlp file put it's path here
1b9744b72f26e9a0e935f9c08d49feb1fcce72f9jwoolley#
1b9744b72f26e9a0e935f9c08d49feb1fcce72f9jwoolleyFILE_nlm_hlp =
7bce59d998f2e5ca1cb60038ef6c1d0817605d62stoddard
19cbe4d7b7c931723e7249de6829bf965a1fee72stoddard#
19cbe4d7b7c931723e7249de6829bf965a1fee72stoddard# If this is specified, it will override $(NWOS)\copyright.txt.
93db592309ba9e5ab230f67611a2c74fece9cdb2marc#
93db592309ba9e5ab230f67611a2c74fece9cdb2marcFILE_nlm_copyright =
93db592309ba9e5ab230f67611a2c74fece9cdb2marc
93db592309ba9e5ab230f67611a2c74fece9cdb2marc#
93db592309ba9e5ab230f67611a2c74fece9cdb2marc# Any additional imports go here
93db592309ba9e5ab230f67611a2c74fece9cdb2marc#
93db592309ba9e5ab230f67611a2c74fece9cdb2marcFILES_nlm_Ximports = \
b187d568e1507d75139ebc13ca945b38fc05d55cstoddard @$(APR)/aprlib.imp \
b187d568e1507d75139ebc13ca945b38fc05d55cstoddard @$(NWOS)/httpd.imp \
b187d568e1507d75139ebc13ca945b38fc05d55cstoddard @libc.imp \
1c6fb1e726ce22694de0e9a957adb67b929e5d4fstoddard $(EOLIST)
1c6fb1e726ce22694de0e9a957adb67b929e5d4fstoddard
8bed76428f56e5c643174a2d6807c3f18016af5cbjh#
8bed76428f56e5c643174a2d6807c3f18016af5cbjh# Any symbols exported to here
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard#
d2f8b010487ffa990a9c268df5a25579e7291bcdrbbFILES_nlm_exports = \
d2f8b010487ffa990a9c268df5a25579e7291bcdrbb ext_filter_module \
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard $(EOLIST)
0bff2f28ef945280c17099c142126178a78e1e54manoj
0bff2f28ef945280c17099c142126178a78e1e54manoj#
0bff2f28ef945280c17099c142126178a78e1e54manoj# These are the OBJ files needed to create the LIB target above.
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard# Paths must all use the '/' character
0bff2f28ef945280c17099c142126178a78e1e54manoj#
35330e0d79ceb8027223bbb8330a381b1f989d6etrawickFILES_lib_objs = \
0bff2f28ef945280c17099c142126178a78e1e54manoj $(EOLIST)
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard
ff849e4163ed879288f0df15f78b6c9d278ec804fanf#
ff849e4163ed879288f0df15f78b6c9d278ec804fanf# implement targets and dependancies (leave this section alone)
447c6ce3ff08073c44f6785d5256271fcb877512wrowe#
447c6ce3ff08073c44f6785d5256271fcb877512wrowe
447c6ce3ff08073c44f6785d5256271fcb877512wrowelibs :: $(OBJDIR) $(TARGET_lib)
447c6ce3ff08073c44f6785d5256271fcb877512wrowe
447c6ce3ff08073c44f6785d5256271fcb877512wrowenlms :: libs $(TARGET_nlm)
7fe18c15b669db9d191859695901dc4fcf3829dawrowe
7fe18c15b669db9d191859695901dc4fcf3829dawrowe#
7fe18c15b669db9d191859695901dc4fcf3829dawrowe# Updated this target to create necessary directories and copy files to the
7fe18c15b669db9d191859695901dc4fcf3829dawrowe# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
7fe18c15b669db9d191859695901dc4fcf3829dawrowe#
447c6ce3ff08073c44f6785d5256271fcb877512wroweinstall :: nlms FORCE
cf6bf6c34c936e6a6fe731dbce4a5c3c8bf8e9a3gstein
cf6bf6c34c936e6a6fe731dbce4a5c3c8bf8e9a3gstein#
3bb28269556842ebf8888208fd0c7a7f3e343186jerenkrantz# Any specialized rules here
3bb28269556842ebf8888208fd0c7a7f3e343186jerenkrantz#
3bb28269556842ebf8888208fd0c7a7f3e343186jerenkrantz
20db975063c58c8fadf72656a8cbd869554e6bfbwrowe#
20db975063c58c8fadf72656a8cbd869554e6bfbwrowe# Include the 'tail' makefile that has targets that depend on variables defined
20db975063c58c8fadf72656a8cbd869554e6bfbwrowe# in this makefile
20db975063c58c8fadf72656a8cbd869554e6bfbwrowe#
20db975063c58c8fadf72656a8cbd869554e6bfbwrowe
20db975063c58c8fadf72656a8cbd869554e6bfbwroweinclude $(AP_WORK)\build\NWGNUtail.inc
20db975063c58c8fadf72656a8cbd869554e6bfbwrowe
db3ccce11afac4fc1d4f51a65424412f7480c46cgstein