NWGNUproxy revision 2a3d4464b68bcf6173f675479b4ec681a83f4bd9
c80e152862cc3e3207dc837fde7116bd4c0e4b9dTinderbox User# Make sure all needed macro's are defined
d77cb075aae5595e460e3299bfc1e8ea5d42b560Evan Hunt# Get the 'head' of the build environment if necessary. This includes default
d77cb075aae5595e460e3299bfc1e8ea5d42b560Evan Hunt# targets and paths to tools
30ca20f720ad0887772a79e7abb25b4fa0e4b5b0Mark Andrewsifndef EnvironmentDefined
30ca20f720ad0887772a79e7abb25b4fa0e4b5b0Mark Andrewsinclude $(AP_WORK)/build/NWGNUhead.inc
701a93f5a592e4652343e049aa495d409c3ee133Mark Andrews# These directories will be at the beginning of the include list, followed by
002f1373374a0b72fc0329baa682917929bef168Tony FinchXINCDIRS += \
8f1ed05dc0aae7ae6c3da6ec6d405df61257a61eMark Andrews $(APR)/include \
8f1ed05dc0aae7ae6c3da6ec6d405df61257a61eMark Andrews $(APRUTIL)/include \
8f1ed05dc0aae7ae6c3da6ec6d405df61257a61eMark Andrews $(AP_WORK)/include \
d8351dfc9b725b0d727be7acab6247d7d501d9a0Mark Andrews# These flags will come after CFLAGS
f1740da065d4555039fe8bb53beb4153e3f94de3Mark Andrews# These defines will come after DEFINES
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark AndrewsXDEFINES += \
ad309e8dfa0601d6053aaa12770a98a6940f89deEvan Hunt# These flags will be added to the link.opt file
7cbac360bf98c0a52b2d6866ad887616c32d4d3aMark Andrews# These values will be appended to the correct variables based on the value of
1cf118a656f5fd210787908b845362077fc507f8Evan Huntifeq "$(RELEASE)" "debug"
1cf118a656f5fd210787908b845362077fc507f8Evan HuntXINCDIRS += \
1cf118a656f5fd210787908b845362077fc507f8Evan HuntXDEFINES += \
fd82c70695888c134287b8018296028c252d100eMukund Sivaramanifeq "$(RELEASE)" "noopt"
4a53e3c2b83c476a93148eaee0272649beb221caMark AndrewsXINCDIRS += \
2cf0fe3b8092f64f8f68ae3693fe2e73e90ad1a4Mark AndrewsXDEFINES += \
f9c410d93711fbf312a0162f1e2d3f2a5ede69afFrancis Dupontifeq "$(RELEASE)" "release"
afefd754734f896bf3e0590177fff83e7cdfdf35Mark Andrews# These are used by the link target if an NLM is being generated
f0353a586c2bfbae999193cb644b6bc94c7944d8Mark Andrews# This is used by the link 'name' directive to name the nlm. If left blank
f0353a586c2bfbae999193cb644b6bc94c7944d8Mark Andrews# TARGET_nlm (see below) will be used.
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan HuntNLM_NAME = proxy
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt# This is used by the link '-desc ' directive.
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt# If left blank, NLM_NAME will be used.
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan HuntNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy Module
cad79077bd5b2616bc4a7a6b3cbc0953bef8917fMark Andrews# This is used by the '-threadname' directive. If left blank,
cad79077bd5b2616bc4a7a6b3cbc0953bef8917fMark Andrews# NLM_NAME Thread will be used.
cad79077bd5b2616bc4a7a6b3cbc0953bef8917fMark AndrewsNLM_THREAD_NAME = Proxy Module
adfe58e8e5cd1890585e92b67f1fd01989a1fa7dMark Andrews# If this is specified, it will override VERSION value in
c3237dec879f82855403ff7e3ba87b298172efd5Mark AndrewsNLM_VERSION =
cb616c6d5c2ece1fac37fa6e0bca2b53d4043098Mark Andrews# If this is specified, it will override the default of 64K
cb616c6d5c2ece1fac37fa6e0bca2b53d4043098Mark AndrewsNLM_STACK_SIZE = 8192
534057c9f91a3eb6e0541f3526459c716239b337Mark Andrews# If this is specified it will be used by the link '-entry' directive
534057c9f91a3eb6e0541f3526459c716239b337Mark AndrewsNLM_ENTRY_SYM =
0f14b041328c062b1fa391887376388dfc8b2fe5Mark Andrews# If this is specified it will be used by the link '-exit' directive
f7f4730e563a2749629fe7fef4cd9513cd2bfab7Mark AndrewsNLM_EXIT_SYM =
1848d38f441ebf70ab21f6151bc3487a92d25b63Mark Andrews# If this is specified it will be used by the link '-check' directive
2d82ed9456e72dc4373bea19d63411afe1c48962Mark AndrewsNLM_CHECK_SYM =
a5a1cbece45e6ca68aafe3b9b995eac6b0f45dd2Mark Andrews# If these are specified it will be used by the link '-flags' directive
677f507de7c546c187c1505c48bc7b440545485cMark Andrews# If this is specified it will be linked in with the XDCData option in the def
677f507de7c546c187c1505c48bc7b440545485cMark Andrews# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
677f507de7c546c187c1505c48bc7b440545485cMark Andrews# by setting APACHE_UNIPROC in the environment
677f507de7c546c187c1505c48bc7b440545485cMark Andrews# If there is an NLM target, put it here
677f507de7c546c187c1505c48bc7b440545485cMark AndrewsTARGET_nlm = \
677f507de7c546c187c1505c48bc7b440545485cMark Andrews# If there is an LIB target, put it here
677f507de7c546c187c1505c48bc7b440545485cMark AndrewsTARGET_lib = \
f53e0bda467d96dfeeba1b4da30c37b37766bb75Evan Hunt# These are the OBJ files needed to create the NLM target above.
f53e0bda467d96dfeeba1b4da30c37b37766bb75Evan Hunt# Paths must all use the '/' character
81e3e3084980afcd61416f572c6e72d38a3808abMichał KępieńFILES_nlm_objs = \
64d7fa3ec4785b390665860aa6bdae304b3c1d24Mark Andrews# These are the LIB files needed to create the NLM target above.
64d7fa3ec4785b390665860aa6bdae304b3c1d24Mark Andrews# These will be added as a library command in the link.opt file.
75505befa93c993aa5d2df24a2b64eac0c34cbffMark AndrewsFILES_nlm_libs = \
a38f07c73790170842e4523b4a474d01ca0dede1Michał Kępień# These are the modules that the above NLM target depends on to load.
39d5523a8afc73cbdb4fa426de2ce071267a5d6fMark Andrews# These will be added as a module command in the link.opt file.
39d5523a8afc73cbdb4fa426de2ce071267a5d6fMark AndrewsFILES_nlm_modules = \
91827e6fd3851a5fe129ef5409ff45833ca01a0eMark Andrews# If the nlm has a msg file, put it's path here
35aae5884f410180706a89a9715bf9a85eeeb4b7Michał KępieńFILE_nlm_msg =
57b1d64d9ae12d56973716e96f9743a00d47af4aMichał Kępień# If the nlm has a hlp file put it's path here
57b1d64d9ae12d56973716e96f9743a00d47af4aMichał KępieńFILE_nlm_hlp =
2d517e233ff3b3fcd272eb5b2e2d3db6d31a1681Michał Kępień# If this is specified, it will override $(NWOS)\copyright.txt.
09c3efda414314d7edcfb2aed9463fb935fc95a6Mark AndrewsFILE_nlm_copyright =
86d2f9abc8493321aacb0d540485de4d562fb734Mark Andrews# Any additional imports go here
86d2f9abc8493321aacb0d540485de4d562fb734Mark AndrewsFILES_nlm_Ximports = \
c7e57ce1b0bca9bc7da14bec485f7a7e3e4c761fMichał Kępień# Don't link with Winsock if standard sockets are being used
c7e57ce1b0bca9bc7da14bec485f7a7e3e4c761fMichał Kępieńifndef USE_STDSOCKETS
c7e57ce1b0bca9bc7da14bec485f7a7e3e4c761fMichał KępieńFILES_nlm_Ximports += @ws2nlm.imp \
14d8a144779b54b103d2da741a2242bf5f9052f7Mark Andrews# Any symbols exported to here
70e041bea19b6ad9522b89c2299ad315a2deaafdMark AndrewsFILES_nlm_exports = \
eeb919b6f572e033d97cf001e4cd44aaff54e5dcMichał Kępień# These are the OBJ files needed to create the LIB target above.
eeb919b6f572e033d97cf001e4cd44aaff54e5dcMichał Kępień# Paths must all use the '/' character
a55438eda32ecebf43ead45b216662b7923a465fMark AndrewsFILES_lib_objs = \
8de17f83cafa91a5720dd0b8c1aee5f47f6d7f09Evan Hunt# implement targets and dependancies (leave this section alone)
9789e54e55b61b669fb31a8b70e9655e8357dda2Mark Andrewslibs :: $(OBJDIR) $(TARGET_lib)
f8362536c647625e602c8450a778a2b7ba90c9f4Mark Andrewsnlms :: libs $(OBJDIR)/mod_proxy.imp $(TARGET_nlm)
24231e53a5c3079431f84dcddfee1e761fec7329Mark Andrews# Updated this target to create necessary directories and copy files to the
24231e53a5c3079431f84dcddfee1e761fec7329Mark Andrews# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
4b669b69bae7dedda2faa09a7ade247499c1d49cMichał Kępieńinstall :: nlms FORCE
4b669b69bae7dedda2faa09a7ade247499c1d49cMichał Kępień# Any specialized rules here
e7c0f978425f45731b08be1363f20626b0344f23Evan Hunt @echo $(DL)GEN $@$(DL)
e7c0f978425f45731b08be1363f20626b0344f23Evan Hunt @echo $(DL)# Exports of mod_proxy$(DL)> $@
01967d183990e44752fe61f193dab9c04c3afd9cEvan Hunt @echo $(DL) (AP$(VERSION_MAJMIN))$(DL)>> $@
01967d183990e44752fe61f193dab9c04c3afd9cEvan Hunt @echo $(DL) proxy_module,$(DL)>> $@
01967d183990e44752fe61f193dab9c04c3afd9cEvan Hunt @echo $(DL) proxy_hook_canon_handler,$(DL)>> $@
575e9d9e4b6beaae688f107814a320b91243a4b2Mark Andrews @echo $(DL) proxy_hook_post_request,$(DL)>> $@
575e9d9e4b6beaae688f107814a320b91243a4b2Mark Andrews @echo $(DL) proxy_hook_pre_request,$(DL)>> $@
575e9d9e4b6beaae688f107814a320b91243a4b2Mark Andrews @echo $(DL) proxy_hook_scheme_handler,$(DL)>> $@
575e9d9e4b6beaae688f107814a320b91243a4b2Mark Andrews @echo $(DL) proxy_run_fixups,$(DL)>> $@
7c442d7fe06bc95432af7513764e5cc85e133648Evan Hunt @echo $(DL) ap_proxy_conn_is_https,$(DL)>> $@
7c442d7fe06bc95432af7513764e5cc85e133648Evan Hunt @echo $(DL) ap_proxy_ssl_enable,$(DL)>> $@
7c442d7fe06bc95432af7513764e5cc85e133648Evan Hunt @echo $(DL) ap_proxy_ssl_disable,$(DL)>> $@
7c442d7fe06bc95432af7513764e5cc85e133648Evan Hunt @echo $(DL) ap_proxy_ssl_val$(DL)>> $@
5e1ca7a326741a8f74e6f2b907c7e1fbf428bf80Michał Kępień# Include the 'tail' makefile that has targets that depend on variables defined
5e1ca7a326741a8f74e6f2b907c7e1fbf428bf80Michał Kępień# in this makefile
8ed107eab48687887d45a1ceb18b712bc7209dbaTinderbox Userinclude $(APBUILD)/NWGNUtail.inc