NWGNUopthookexport revision 0662ed52e814f8f08ef0e09956413a792584eddf
431d6106eaf796cc8dfa8cb0db2b180dd93ed6dftrawick# Declare the sub-directories to be built here
8fcaadcb287f361bb304d53a69d508500840fafcjerenkrantz# Get the 'head' of the build environment. This includes default targets and
8af88bd6958b80c224e964892b8237720b13ab1ajerenkrantz# paths to tools
8af88bd6958b80c224e964892b8237720b13ab1ajerenkrantzinclude $(AP_WORK)/build/NWGNUhead.inc
25b812bcab8b61981e288996b991e0ab4d224b92jerenkrantz# build this level's files
87f0329e30de94828e08d53a99ea23cda86a9fccjerenkrantz# Make sure all needed macro's are defined
0396e75f271f51be57be778655e32ba8d64d240bwrowe# These directories will be at the beginning of the include list, followed by
dc10f7a2f87d4cd7cdd16dc248b165122b4ac62btrawickXINCDIRS += \
dc10f7a2f87d4cd7cdd16dc248b165122b4ac62btrawick $(APR)/include \
dc10f7a2f87d4cd7cdd16dc248b165122b4ac62btrawick $(APRUTIL)/include \
431d6106eaf796cc8dfa8cb0db2b180dd93ed6dftrawick $(AP_WORK)/include \
390489eb69fe15943ddf67adcc832ca8de125cd9jerenkrantz# These flags will come after CFLAGS
a1e8b54f269a8f2388590174174509546e886e60stoddardXCFLAGS += \
109d280c3fcf810e573fc1af5e141ad525c45811bjh# These defines will come after DEFINES
61d2cd001754548e90364aa3a7e76863616544b0minfrinXDEFINES += \
61d2cd001754548e90364aa3a7e76863616544b0minfrin# These flags will be added to the link.opt file
9a3bbca61e24c13d8b496116ac759117136c6bf4aaronXLFLAGS += \
64c351fd973428b5bb4c28e983fa86875ea4e60fdougm# These values will be appended to the correct variables based on the value of
64c351fd973428b5bb4c28e983fa86875ea4e60fdougmifeq "$(RELEASE)" "debug"
0506359f47150991eaaae37ca07f94117a9aa63dtrawickXINCDIRS += \
0506359f47150991eaaae37ca07f94117a9aa63dtrawickXCFLAGS += \
9d3fdc3bb8077a46851080e17ef9f16c83720c8ftrawickXDEFINES += \
219472ea2d5f1563509321d8b8a91b116792bf7adougmXLFLAGS += \
c048b545f06921f53ceb830b30f99aed7b369d95dougmifeq "$(RELEASE)" "noopt"
c048b545f06921f53ceb830b30f99aed7b369d95dougmXINCDIRS += \
621bd763d2e4d32f19013ac8b76b375b5a01851fdougmXCFLAGS += \
0ea12b5dcb3d1d399f9bff6f56fb445d80205f9dstrikerXDEFINES += \
cba0728e3535ee87e89cdb3cb54ce91eda18f6ccaaronXLFLAGS += \
a45de374fb215f294eb1369d4406ac79d6596ee1brianpifeq "$(RELEASE)" "release"
a45de374fb215f294eb1369d4406ac79d6596ee1brianpXINCDIRS += \
7f14bcf6b594703df385ce84ba2ee3cdf3ccbae4trawickXCFLAGS += \
0007bb1e01dd762bde7280beb57113309c1715a3trawickXDEFINES += \
a1be7357e2c08b9dfe52c277063d212d65b15feejimXLFLAGS += \
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.
51c0f0fe0a49a180389009442a83f74b1916f96atrawickNLM_NAME = opthookexport
7e8bc9ca9d1e752f6ca6debec6be8addae8bd72etrawick# This is used by the link '-desc ' directive.
7e8bc9ca9d1e752f6ca6debec6be8addae8bd72etrawick# If left blank, NLM_NAME will be used.
ecb511c254d5affe7cc018482d53c19aaf145878jerenkrantzNLM_DESCRIPTION = Apache $(VERSION_STR) OptionalHook Export Module
60b83cd8f9427809082340cfd7581091990962f5jwoolley# This is used by the '-threadname' directive. If left blank,
60b83cd8f9427809082340cfd7581091990962f5jwoolley# NLM_NAME Thread will be used.
e93624301705e3dc68992e3b488a764389eb8b98trawickNLM_THREAD_NAME = $(NLM_NAME) Module
4da4d1ae427ee8827c2325dd121ac05a83afd579wrowe# If this is specified, it will override VERSION value in
d56d6753a75f5b915120c797aedbfcf13bb14c8brbbNLM_VERSION =
d56d6753a75f5b915120c797aedbfcf13bb14c8brbb# If this is specified, it will override the default of 64K
4aaf7088758ca56823e585969320f2405a7cc5fcdougmNLM_STACK_SIZE = 8192
e0596968fe84a2bdaebe0192d8d64d2e9856d4d6brianp# If this is specified it will be used by the link '-entry' directive
f33c2c86b419be97248c5289b71738b5f0c7ab0adirkxNLM_ENTRY_SYM =
c5fdaba2e790a0a351d796b5fe3dcfb585be1ba2jim# If this is specified it will be used by the link '-exit' directive
c5fdaba2e790a0a351d796b5fe3dcfb585be1ba2jimNLM_EXIT_SYM =
2fc50921b88defeb7127985dfe4b4130175e069ejwoolley# If this is specified it will be used by the link '-check' directive
2fc50921b88defeb7127985dfe4b4130175e069ejwoolleyNLM_CHECK_SYM =
47638f4a67ce38e5a83e7a303d6f2d5c9ff47b4ebrianp# If these are specified it will be used by the link '-flags' directive
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
30b4a330a5f651eb5198fa93dbb9f3d3594564c9stoddard# If there is an NLM target, put it here
30b4a330a5f651eb5198fa93dbb9f3d3594564c9stoddardTARGET_nlm = \
17895aa4b66b8af02d8788b15cb92e1f6a8ecafcwrowe $(OBJDIR)/$(NLM_NAME).nlm \
7a64b871b8b5e5a427b570e90f0e38e88266c783jim# If there is an LIB target, put it here
7a64b871b8b5e5a427b570e90f0e38e88266c783jimTARGET_lib = \
a736bac16e58d5e96945f35ee3c43a2cd2f5d37ejerenkrantz# These are the OBJ files needed to create the NLM target above.
797d596a95d4f9900e83ec18295b4ca4951bf763jerenkrantz# Paths must all use the '/' character
797d596a95d4f9900e83ec18295b4ca4951bf763jerenkrantzFILES_nlm_objs = \
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.
c148bc6b4eea544af816783400362f741c5f5fc2trawickFILES_nlm_libs = \
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.
9d432e23f6025b78322cbee43e8e89262a108e5eaaronFILES_nlm_modules = \
10306ac2c175f420e6989568f4c8535a5dbc1349minfrin# If the nlm has a msg file, put it's path here
b4e4d76bf454e1b603b410110356dbcf12f3bc42jimFILE_nlm_msg =
adb1e17ae7e1cf5cf4f8f2b07d3389cb55f4becetrawick# If the nlm has a hlp file put it's path here
adb1e17ae7e1cf5cf4f8f2b07d3389cb55f4becetrawickFILE_nlm_hlp =
2864362ca8266097928e84f101010bdf814ffa08stoddard# If this is specified, it will override $(NWOS)\copyright.txt.
2864362ca8266097928e84f101010bdf814ffa08stoddardFILE_nlm_copyright =
f51dbb1f5b66d94b5c190bfcd444aa73bdc2b176trawick# Any additional imports go here
893c106ae59d8e96d921524b123ae26dea8ad37fgsteinFILES_nlm_Ximports = \
e2bdfd25d9d0461e0a3ab18ceff2113215e3e115brianp# Any symbols exported to here
b9fe73991e7c592a634242a7e11f924689f58e1fgsteinFILES_nlm_exports = \
b9fe73991e7c592a634242a7e11f924689f58e1fgstein optional_hook_export_module \
d9fcdb415d8661cbd9451df8f88e003a1aa04ce9trawick# These are the OBJ files needed to create the LIB target above.
d9fcdb415d8661cbd9451df8f88e003a1aa04ce9trawick# Paths must all use the '/' character
81b8d0f83e9d0bc2bf6900fc680737e0cac439a2brianpFILES_lib_objs = \
d7856f850b9b51165f23ae381a891bda894e1373ianh# implement targets and dependancies (leave this section alone)
d7856f850b9b51165f23ae381a891bda894e1373ianhlibs :: $(OBJDIR) $(TARGET_lib)
d75626f0952c6152a99acd013a4f127d46f0f9edtrawicknlms :: libs $(TARGET_nlm)
d75626f0952c6152a99acd013a4f127d46f0f9edtrawick# Updated this target to create necessary directories and copy files to the
d75626f0952c6152a99acd013a4f127d46f0f9edtrawick# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
ab2053f3cdda69cfa5e4ce0800ea7af203cc6d5ddougminstall :: nlms FORCE
88ecd979f1112454432371f55a1420240fae3743trawick# Any specialized rules here
548e06e26f5377b2efbb7e0dab20f536e5e24160trawick# Include the 'tail' makefile that has targets that depend on variables defined
c02a689f2274966ed5d1c16207f74b5128c35c86trawick# in this makefile
f51dbb1f5b66d94b5c190bfcd444aa73bdc2b176trawickinclude $(APBUILD)/NWGNUtail.inc