NWGNUopthookexport revision 0662ed52e814f8f08ef0e09956413a792584eddf
3eb95d6629bb326ae90e5eec693b7e628951751brbb#
431d6106eaf796cc8dfa8cb0db2b180dd93ed6dftrawick# Declare the sub-directories to be built here
9282327b0ffe8981d39835130dfb334af192b508jerenkrantz#
9282327b0ffe8981d39835130dfb334af192b508jerenkrantz
9282327b0ffe8981d39835130dfb334af192b508jerenkrantzSUBDIRS = \
8fcaadcb287f361bb304d53a69d508500840fafcjerenkrantz $(EOLIST)
8fcaadcb287f361bb304d53a69d508500840fafcjerenkrantz
8fcaadcb287f361bb304d53a69d508500840fafcjerenkrantz#
8fcaadcb287f361bb304d53a69d508500840fafcjerenkrantz# Get the 'head' of the build environment. This includes default targets and
8af88bd6958b80c224e964892b8237720b13ab1ajerenkrantz# paths to tools
8af88bd6958b80c224e964892b8237720b13ab1ajerenkrantz#
8af88bd6958b80c224e964892b8237720b13ab1ajerenkrantz
8af88bd6958b80c224e964892b8237720b13ab1ajerenkrantzinclude $(AP_WORK)/build/NWGNUhead.inc
8af88bd6958b80c224e964892b8237720b13ab1ajerenkrantz
25b812bcab8b61981e288996b991e0ab4d224b92jerenkrantz#
25b812bcab8b61981e288996b991e0ab4d224b92jerenkrantz# build this level's files
87f0329e30de94828e08d53a99ea23cda86a9fccjerenkrantz
87f0329e30de94828e08d53a99ea23cda86a9fccjerenkrantz#
87f0329e30de94828e08d53a99ea23cda86a9fccjerenkrantz# Make sure all needed macro's are defined
0396e75f271f51be57be778655e32ba8d64d240bwrowe#
0396e75f271f51be57be778655e32ba8d64d240bwrowe
0396e75f271f51be57be778655e32ba8d64d240bwrowe#
0396e75f271f51be57be778655e32ba8d64d240bwrowe# These directories will be at the beginning of the include list, followed by
0396e75f271f51be57be778655e32ba8d64d240bwrowe# INCDIRS
dc10f7a2f87d4cd7cdd16dc248b165122b4ac62btrawick#
dc10f7a2f87d4cd7cdd16dc248b165122b4ac62btrawickXINCDIRS += \
dc10f7a2f87d4cd7cdd16dc248b165122b4ac62btrawick $(APR)/include \
dc10f7a2f87d4cd7cdd16dc248b165122b4ac62btrawick $(APRUTIL)/include \
431d6106eaf796cc8dfa8cb0db2b180dd93ed6dftrawick $(AP_WORK)/include \
431d6106eaf796cc8dfa8cb0db2b180dd93ed6dftrawick $(NWOS) \
390489eb69fe15943ddf67adcc832ca8de125cd9jerenkrantz $(EOLIST)
390489eb69fe15943ddf67adcc832ca8de125cd9jerenkrantz
390489eb69fe15943ddf67adcc832ca8de125cd9jerenkrantz#
390489eb69fe15943ddf67adcc832ca8de125cd9jerenkrantz# These flags will come after CFLAGS
a1e8b54f269a8f2388590174174509546e886e60stoddard#
a1e8b54f269a8f2388590174174509546e886e60stoddardXCFLAGS += \
a1e8b54f269a8f2388590174174509546e886e60stoddard $(EOLIST)
3eb95d6629bb326ae90e5eec693b7e628951751brbb
109d280c3fcf810e573fc1af5e141ad525c45811bjh#
109d280c3fcf810e573fc1af5e141ad525c45811bjh# These defines will come after DEFINES
109d280c3fcf810e573fc1af5e141ad525c45811bjh#
61d2cd001754548e90364aa3a7e76863616544b0minfrinXDEFINES += \
61d2cd001754548e90364aa3a7e76863616544b0minfrin $(EOLIST)
61d2cd001754548e90364aa3a7e76863616544b0minfrin
61d2cd001754548e90364aa3a7e76863616544b0minfrin#
61d2cd001754548e90364aa3a7e76863616544b0minfrin# These flags will be added to the link.opt file
9a3bbca61e24c13d8b496116ac759117136c6bf4aaron#
9a3bbca61e24c13d8b496116ac759117136c6bf4aaronXLFLAGS += \
9a3bbca61e24c13d8b496116ac759117136c6bf4aaron $(EOLIST)
9a3bbca61e24c13d8b496116ac759117136c6bf4aaron
9a3bbca61e24c13d8b496116ac759117136c6bf4aaron#
64c351fd973428b5bb4c28e983fa86875ea4e60fdougm# These values will be appended to the correct variables based on the value of
64c351fd973428b5bb4c28e983fa86875ea4e60fdougm# RELEASE
64c351fd973428b5bb4c28e983fa86875ea4e60fdougm#
64c351fd973428b5bb4c28e983fa86875ea4e60fdougmifeq "$(RELEASE)" "debug"
0506359f47150991eaaae37ca07f94117a9aa63dtrawickXINCDIRS += \
0506359f47150991eaaae37ca07f94117a9aa63dtrawick $(EOLIST)
0506359f47150991eaaae37ca07f94117a9aa63dtrawick
0506359f47150991eaaae37ca07f94117a9aa63dtrawickXCFLAGS += \
67f62b7a48ff9eb8d9f31898dceaf9f89280a723dougm $(EOLIST)
67f62b7a48ff9eb8d9f31898dceaf9f89280a723dougm
9d3fdc3bb8077a46851080e17ef9f16c83720c8ftrawickXDEFINES += \
9d3fdc3bb8077a46851080e17ef9f16c83720c8ftrawick $(EOLIST)
9d3fdc3bb8077a46851080e17ef9f16c83720c8ftrawick
219472ea2d5f1563509321d8b8a91b116792bf7adougmXLFLAGS += \
219472ea2d5f1563509321d8b8a91b116792bf7adougm $(EOLIST)
219472ea2d5f1563509321d8b8a91b116792bf7adougmendif
c048b545f06921f53ceb830b30f99aed7b369d95dougm
c048b545f06921f53ceb830b30f99aed7b369d95dougmifeq "$(RELEASE)" "noopt"
c048b545f06921f53ceb830b30f99aed7b369d95dougmXINCDIRS += \
621bd763d2e4d32f19013ac8b76b375b5a01851fdougm $(EOLIST)
621bd763d2e4d32f19013ac8b76b375b5a01851fdougm
621bd763d2e4d32f19013ac8b76b375b5a01851fdougmXCFLAGS += \
0ea12b5dcb3d1d399f9bff6f56fb445d80205f9dstriker $(EOLIST)
0ea12b5dcb3d1d399f9bff6f56fb445d80205f9dstriker
0ea12b5dcb3d1d399f9bff6f56fb445d80205f9dstrikerXDEFINES += \
e93624301705e3dc68992e3b488a764389eb8b98trawick $(EOLIST)
e93624301705e3dc68992e3b488a764389eb8b98trawick
cba0728e3535ee87e89cdb3cb54ce91eda18f6ccaaronXLFLAGS += \
cba0728e3535ee87e89cdb3cb54ce91eda18f6ccaaron $(EOLIST)
cba0728e3535ee87e89cdb3cb54ce91eda18f6ccaaronendif
a45de374fb215f294eb1369d4406ac79d6596ee1brianp
a45de374fb215f294eb1369d4406ac79d6596ee1brianpifeq "$(RELEASE)" "release"
a45de374fb215f294eb1369d4406ac79d6596ee1brianpXINCDIRS += \
a45de374fb215f294eb1369d4406ac79d6596ee1brianp $(EOLIST)
7f14bcf6b594703df385ce84ba2ee3cdf3ccbae4trawick
7f14bcf6b594703df385ce84ba2ee3cdf3ccbae4trawickXCFLAGS += \
7f14bcf6b594703df385ce84ba2ee3cdf3ccbae4trawick $(EOLIST)
7f14bcf6b594703df385ce84ba2ee3cdf3ccbae4trawick
0007bb1e01dd762bde7280beb57113309c1715a3trawickXDEFINES += \
a1be7357e2c08b9dfe52c277063d212d65b15feejim $(EOLIST)
a1be7357e2c08b9dfe52c277063d212d65b15feejim
a1be7357e2c08b9dfe52c277063d212d65b15feejimXLFLAGS += \
a1be7357e2c08b9dfe52c277063d212d65b15feejim $(EOLIST)
a1be7357e2c08b9dfe52c277063d212d65b15feejimendif
6682df9b639663c50f447e5690dd62cce7b1c086trawick
6682df9b639663c50f447e5690dd62cce7b1c086trawick#
6682df9b639663c50f447e5690dd62cce7b1c086trawick# These are used by the link target if an NLM is being generated
51c0f0fe0a49a180389009442a83f74b1916f96atrawick# This is used by the link 'name' directive to name the nlm. If left blank
51c0f0fe0a49a180389009442a83f74b1916f96atrawick# TARGET_nlm (see below) will be used.
51c0f0fe0a49a180389009442a83f74b1916f96atrawick#
51c0f0fe0a49a180389009442a83f74b1916f96atrawickNLM_NAME = opthookexport
51c0f0fe0a49a180389009442a83f74b1916f96atrawick
7e8bc9ca9d1e752f6ca6debec6be8addae8bd72etrawick#
7e8bc9ca9d1e752f6ca6debec6be8addae8bd72etrawick# This is used by the link '-desc ' directive.
7e8bc9ca9d1e752f6ca6debec6be8addae8bd72etrawick# If left blank, NLM_NAME will be used.
ecb511c254d5affe7cc018482d53c19aaf145878jerenkrantz#
ecb511c254d5affe7cc018482d53c19aaf145878jerenkrantzNLM_DESCRIPTION = Apache $(VERSION_STR) OptionalHook Export Module
ecb511c254d5affe7cc018482d53c19aaf145878jerenkrantz
ecb511c254d5affe7cc018482d53c19aaf145878jerenkrantz#
60b83cd8f9427809082340cfd7581091990962f5jwoolley# This is used by the '-threadname' directive. If left blank,
60b83cd8f9427809082340cfd7581091990962f5jwoolley# NLM_NAME Thread will be used.
60b83cd8f9427809082340cfd7581091990962f5jwoolley#
e93624301705e3dc68992e3b488a764389eb8b98trawickNLM_THREAD_NAME = $(NLM_NAME) Module
e93624301705e3dc68992e3b488a764389eb8b98trawick
e93624301705e3dc68992e3b488a764389eb8b98trawick#
4da4d1ae427ee8827c2325dd121ac05a83afd579wrowe# If this is specified, it will override VERSION value in
a2d4f1da4e19836b2d6a673f80f33381a926a8bddougm# $(AP_WORK)/build/NWGNUenvironment.inc
d56d6753a75f5b915120c797aedbfcf13bb14c8brbb#
d56d6753a75f5b915120c797aedbfcf13bb14c8brbbNLM_VERSION =
d56d6753a75f5b915120c797aedbfcf13bb14c8brbb
d56d6753a75f5b915120c797aedbfcf13bb14c8brbb#
d56d6753a75f5b915120c797aedbfcf13bb14c8brbb# If this is specified, it will override the default of 64K
4aaf7088758ca56823e585969320f2405a7cc5fcdougm#
4aaf7088758ca56823e585969320f2405a7cc5fcdougmNLM_STACK_SIZE = 8192
4aaf7088758ca56823e585969320f2405a7cc5fcdougm
e0596968fe84a2bdaebe0192d8d64d2e9856d4d6brianp
e0596968fe84a2bdaebe0192d8d64d2e9856d4d6brianp#
e0596968fe84a2bdaebe0192d8d64d2e9856d4d6brianp# If this is specified it will be used by the link '-entry' directive
f33c2c86b419be97248c5289b71738b5f0c7ab0adirkx#
f33c2c86b419be97248c5289b71738b5f0c7ab0adirkxNLM_ENTRY_SYM =
f33c2c86b419be97248c5289b71738b5f0c7ab0adirkx
c5fdaba2e790a0a351d796b5fe3dcfb585be1ba2jim#
c5fdaba2e790a0a351d796b5fe3dcfb585be1ba2jim# If this is specified it will be used by the link '-exit' directive
c5fdaba2e790a0a351d796b5fe3dcfb585be1ba2jim#
c5fdaba2e790a0a351d796b5fe3dcfb585be1ba2jimNLM_EXIT_SYM =
c5fdaba2e790a0a351d796b5fe3dcfb585be1ba2jim
2fc50921b88defeb7127985dfe4b4130175e069ejwoolley#
2fc50921b88defeb7127985dfe4b4130175e069ejwoolley# If this is specified it will be used by the link '-check' directive
2fc50921b88defeb7127985dfe4b4130175e069ejwoolley#
2fc50921b88defeb7127985dfe4b4130175e069ejwoolleyNLM_CHECK_SYM =
2fc50921b88defeb7127985dfe4b4130175e069ejwoolley
47638f4a67ce38e5a83e7a303d6f2d5c9ff47b4ebrianp#
47638f4a67ce38e5a83e7a303d6f2d5c9ff47b4ebrianp# If these are specified it will be used by the link '-flags' directive
47638f4a67ce38e5a83e7a303d6f2d5c9ff47b4ebrianp#
82630c4a04be47f39298d3284b2c596244fb509bbrianpNLM_FLAGS =
82630c4a04be47f39298d3284b2c596244fb509bbrianp
0d24ea1c99d2267096caaf0843c7e5a1ac6b7c0bmjc#
35d682920b0b7073bb9ff8c8794f0f73e3ee1a47slive# If this is specified it will be linked in with the XDCData option in the def
35d682920b0b7073bb9ff8c8794f0f73e3ee1a47slive# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
a2d4f1da4e19836b2d6a673f80f33381a926a8bddougm# by setting APACHE_UNIPROC in the environment
a2d4f1da4e19836b2d6a673f80f33381a926a8bddougm#
a2d4f1da4e19836b2d6a673f80f33381a926a8bddougmXDCDATA =
30b4a330a5f651eb5198fa93dbb9f3d3594564c9stoddard
30b4a330a5f651eb5198fa93dbb9f3d3594564c9stoddard#
30b4a330a5f651eb5198fa93dbb9f3d3594564c9stoddard# If there is an NLM target, put it here
30b4a330a5f651eb5198fa93dbb9f3d3594564c9stoddard#
30b4a330a5f651eb5198fa93dbb9f3d3594564c9stoddardTARGET_nlm = \
17895aa4b66b8af02d8788b15cb92e1f6a8ecafcwrowe $(OBJDIR)/$(NLM_NAME).nlm \
983988ac7b8faaf037f4df0ab29729cd047a3ffdtrawick $(EOLIST)
983988ac7b8faaf037f4df0ab29729cd047a3ffdtrawick
7a64b871b8b5e5a427b570e90f0e38e88266c783jim#
7a64b871b8b5e5a427b570e90f0e38e88266c783jim# If there is an LIB target, put it here
7a64b871b8b5e5a427b570e90f0e38e88266c783jim#
7a64b871b8b5e5a427b570e90f0e38e88266c783jimTARGET_lib = \
17895aa4b66b8af02d8788b15cb92e1f6a8ecafcwrowe $(EOLIST)
a736bac16e58d5e96945f35ee3c43a2cd2f5d37ejerenkrantz
a736bac16e58d5e96945f35ee3c43a2cd2f5d37ejerenkrantz#
a736bac16e58d5e96945f35ee3c43a2cd2f5d37ejerenkrantz# These are the OBJ files needed to create the NLM target above.
797d596a95d4f9900e83ec18295b4ca4951bf763jerenkrantz# Paths must all use the '/' character
797d596a95d4f9900e83ec18295b4ca4951bf763jerenkrantz#
797d596a95d4f9900e83ec18295b4ca4951bf763jerenkrantzFILES_nlm_objs = \
5842e6b336b1cc0252b6cc2944dd81c7d3a19a1bbrianp $(OBJDIR)/mod_optional_hook_export.o \
5842e6b336b1cc0252b6cc2944dd81c7d3a19a1bbrianp $(EOLIST)
2532433e80d73506f7bcc18bd0dab686f1c39397minfrin
2532433e80d73506f7bcc18bd0dab686f1c39397minfrin#
2532433e80d73506f7bcc18bd0dab686f1c39397minfrin# These are the LIB files needed to create the NLM target above.
2532433e80d73506f7bcc18bd0dab686f1c39397minfrin# These will be added as a library command in the link.opt file.
c148bc6b4eea544af816783400362f741c5f5fc2trawick#
c148bc6b4eea544af816783400362f741c5f5fc2trawickFILES_nlm_libs = \
c148bc6b4eea544af816783400362f741c5f5fc2trawick libcpre.o \
9d432e23f6025b78322cbee43e8e89262a108e5eaaron $(EOLIST)
9d432e23f6025b78322cbee43e8e89262a108e5eaaron
9d432e23f6025b78322cbee43e8e89262a108e5eaaron#
9d432e23f6025b78322cbee43e8e89262a108e5eaaron# These are the modules that the above NLM target depends on to load.
9d432e23f6025b78322cbee43e8e89262a108e5eaaron# These will be added as a module command in the link.opt file.
9d432e23f6025b78322cbee43e8e89262a108e5eaaron#
9d432e23f6025b78322cbee43e8e89262a108e5eaaronFILES_nlm_modules = \
6a5bdbbacf4a62adecde52b8f23ebcc4fa2a08b8trawick aprlib \
6a5bdbbacf4a62adecde52b8f23ebcc4fa2a08b8trawick libc \
6a5bdbbacf4a62adecde52b8f23ebcc4fa2a08b8trawick $(EOLIST)
10306ac2c175f420e6989568f4c8535a5dbc1349minfrin
10306ac2c175f420e6989568f4c8535a5dbc1349minfrin#
10306ac2c175f420e6989568f4c8535a5dbc1349minfrin# If the nlm has a msg file, put it's path here
10306ac2c175f420e6989568f4c8535a5dbc1349minfrin#
b4e4d76bf454e1b603b410110356dbcf12f3bc42jimFILE_nlm_msg =
b4e4d76bf454e1b603b410110356dbcf12f3bc42jim
b4e4d76bf454e1b603b410110356dbcf12f3bc42jim#
adb1e17ae7e1cf5cf4f8f2b07d3389cb55f4becetrawick# If the nlm has a hlp file put it's path here
adb1e17ae7e1cf5cf4f8f2b07d3389cb55f4becetrawick#
adb1e17ae7e1cf5cf4f8f2b07d3389cb55f4becetrawickFILE_nlm_hlp =
71f891073f6fa0209870791f64cbbf28d77ffdc1brianp
71f891073f6fa0209870791f64cbbf28d77ffdc1brianp#
2864362ca8266097928e84f101010bdf814ffa08stoddard# If this is specified, it will override $(NWOS)\copyright.txt.
2864362ca8266097928e84f101010bdf814ffa08stoddard#
2864362ca8266097928e84f101010bdf814ffa08stoddardFILE_nlm_copyright =
2864362ca8266097928e84f101010bdf814ffa08stoddard
2864362ca8266097928e84f101010bdf814ffa08stoddard#
f51dbb1f5b66d94b5c190bfcd444aa73bdc2b176trawick# Any additional imports go here
893c106ae59d8e96d921524b123ae26dea8ad37fgstein#
893c106ae59d8e96d921524b123ae26dea8ad37fgsteinFILES_nlm_Ximports = \
893c106ae59d8e96d921524b123ae26dea8ad37fgstein @$(APR)/aprlib.imp \
893c106ae59d8e96d921524b123ae26dea8ad37fgstein @$(NWOS)/httpd.imp \
3aa6444bcee4e9fc32ec8860d832ff83a15784efianh @libc.imp \
3aa6444bcee4e9fc32ec8860d832ff83a15784efianh $(EOLIST)
e2bdfd25d9d0461e0a3ab18ceff2113215e3e115brianp
e2bdfd25d9d0461e0a3ab18ceff2113215e3e115brianp#
e2bdfd25d9d0461e0a3ab18ceff2113215e3e115brianp# Any symbols exported to here
b9fe73991e7c592a634242a7e11f924689f58e1fgstein#
b9fe73991e7c592a634242a7e11f924689f58e1fgsteinFILES_nlm_exports = \
b9fe73991e7c592a634242a7e11f924689f58e1fgstein optional_hook_export_module \
b9fe73991e7c592a634242a7e11f924689f58e1fgstein $(EOLIST)
d9fcdb415d8661cbd9451df8f88e003a1aa04ce9trawick
d9fcdb415d8661cbd9451df8f88e003a1aa04ce9trawick#
d9fcdb415d8661cbd9451df8f88e003a1aa04ce9trawick# These are the OBJ files needed to create the LIB target above.
d9fcdb415d8661cbd9451df8f88e003a1aa04ce9trawick# Paths must all use the '/' character
d9fcdb415d8661cbd9451df8f88e003a1aa04ce9trawick#
81b8d0f83e9d0bc2bf6900fc680737e0cac439a2brianpFILES_lib_objs = \
81b8d0f83e9d0bc2bf6900fc680737e0cac439a2brianp $(EOLIST)
b5033962c73a470b6f36a3ac796c542a6ab4ddf6brianp
b5033962c73a470b6f36a3ac796c542a6ab4ddf6brianp#
d7856f850b9b51165f23ae381a891bda894e1373ianh# implement targets and dependancies (leave this section alone)
d7856f850b9b51165f23ae381a891bda894e1373ianh#
d7856f850b9b51165f23ae381a891bda894e1373ianh
d7856f850b9b51165f23ae381a891bda894e1373ianhlibs :: $(OBJDIR) $(TARGET_lib)
d7856f850b9b51165f23ae381a891bda894e1373ianh
d75626f0952c6152a99acd013a4f127d46f0f9edtrawicknlms :: libs $(TARGET_nlm)
d75626f0952c6152a99acd013a4f127d46f0f9edtrawick
d75626f0952c6152a99acd013a4f127d46f0f9edtrawick#
d75626f0952c6152a99acd013a4f127d46f0f9edtrawick# Updated this target to create necessary directories and copy files to the
d75626f0952c6152a99acd013a4f127d46f0f9edtrawick# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
ab2053f3cdda69cfa5e4ce0800ea7af203cc6d5ddougm#
ab2053f3cdda69cfa5e4ce0800ea7af203cc6d5ddougminstall :: nlms FORCE
ab2053f3cdda69cfa5e4ce0800ea7af203cc6d5ddougm
88ecd979f1112454432371f55a1420240fae3743trawick#
88ecd979f1112454432371f55a1420240fae3743trawick# Any specialized rules here
88ecd979f1112454432371f55a1420240fae3743trawick#
548e06e26f5377b2efbb7e0dab20f536e5e24160trawick
548e06e26f5377b2efbb7e0dab20f536e5e24160trawick#
548e06e26f5377b2efbb7e0dab20f536e5e24160trawick# Include the 'tail' makefile that has targets that depend on variables defined
c02a689f2274966ed5d1c16207f74b5128c35c86trawick# in this makefile
c02a689f2274966ed5d1c16207f74b5128c35c86trawick#
f51dbb1f5b66d94b5c190bfcd444aa73bdc2b176trawick
f51dbb1f5b66d94b5c190bfcd444aa73bdc2b176trawickinclude $(APBUILD)/NWGNUtail.inc
f51dbb1f5b66d94b5c190bfcd444aa73bdc2b176trawick
aa202cda00837ed5381d5f67254e08c565a5c3a8stoddard
aa202cda00837ed5381d5f67254e08c565a5c3a8stoddard