842ae4bd224140319ae7feec1872b93dfd491143fielding# Make sure all needed macro's are defined
842ae4bd224140319ae7feec1872b93dfd491143fielding# Get the 'head' of the build environment if necessary. This includes default
2d2eda71267231c2526be701fe655db125852c1ffielding# targets and paths to tools
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcndifndef EnvironmentDefined
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcndinclude $(AP_WORK)/build/NWGNUhead.inc
2d2eda71267231c2526be701fe655db125852c1ffielding# These directories will be at the beginning of the include list, followed by
0432a26b69eedfb9ca5f34fba590236378a24851benXINCDIRS += \
0432a26b69eedfb9ca5f34fba590236378a24851ben $(APR)/include \
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh $(APRUTIL)/include \
bf6b5eb3bf3c4a71e6146d4bcd07cf1749dc6d70jorton $(SRC)/include \
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh $(STDMOD)/http \
bf6b5eb3bf3c4a71e6146d4bcd07cf1749dc6d70jorton# These flags will come after CFLAGS
bf6b5eb3bf3c4a71e6146d4bcd07cf1749dc6d70jortonXCFLAGS += \
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh -relax_pointers \
2d2eda71267231c2526be701fe655db125852c1ffielding# These defines will come after DEFINES
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianhXDEFINES += \
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb# These flags will be added to the link.opt file
2d2eda71267231c2526be701fe655db125852c1ffieldingXLFLAGS += \
cd39d2139743ca0ef899953c6496dcf99e9c791atrawick# These values will be appended to the correct variables based on the value of
b627048681b27fe30f979ba471b523be3a6a22adrbbifeq "$(RELEASE)" "debug"
cccd31fa4a72fe23cc3249c06db181b274a55a69gsteinXINCDIRS += \
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbbXCFLAGS += \
cdccf2ac94172d1a4a54bc2e17324e1ef682ccf3pquernaXDEFINES += \
9cfc48b742c224c1fbc2c26a4119a3266192c7d2wroweXLFLAGS += \
a261b81a1044c0e2ea3f21cf9b7019297bad16aajortonifeq "$(RELEASE)" "noopt"
a261b81a1044c0e2ea3f21cf9b7019297bad16aajortonXINCDIRS += \
7c7372abe2484e7fcf81937b93496d1246e5b816gsteinXCFLAGS += \
7c7372abe2484e7fcf81937b93496d1246e5b816gsteinXDEFINES += \
2d2eda71267231c2526be701fe655db125852c1ffieldingXLFLAGS += \
2d2eda71267231c2526be701fe655db125852c1ffieldingifeq "$(RELEASE)" "release"
4a13940dc2990df0a798718d3a3f9cf1566c2217bjhXINCDIRS += \
4a13940dc2990df0a798718d3a3f9cf1566c2217bjhXCFLAGS += \
dd5cbadf2df719db2f3c769d03ec847da25854e6bnicholesXDEFINES += \
2d2eda71267231c2526be701fe655db125852c1ffieldingXLFLAGS += \
2d2eda71267231c2526be701fe655db125852c1ffielding# These are used by the link target if an NLM is being generated
742318b93e89c311f66b55f426c4d9cf2c14628bjim# This is used by the link 'name' directive to name the nlm. If left blank
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb# TARGET_nlm (see below) will be used.
742318b93e89c311f66b55f426c4d9cf2c14628bjimNLM_NAME = proxyfcgi
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb# This is used by the link '-desc ' directive.
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb# If left blank, NLM_NAME will be used.
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianhNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy Fast CGI Sub-Module
2d2eda71267231c2526be701fe655db125852c1ffielding# This is used by the '-threadname' directive. If left blank,
4a13940dc2990df0a798718d3a3f9cf1566c2217bjh# NLM_NAME Thread will be used.
4a13940dc2990df0a798718d3a3f9cf1566c2217bjhNLM_THREAD_NAME = Proxy FCGI Module
2d2eda71267231c2526be701fe655db125852c1ffielding# If this is specified, it will override VERSION value in
2d2eda71267231c2526be701fe655db125852c1ffieldingNLM_VERSION =
a0bd5cdd79004f4b7b1b441e38133519d3e20a1fsf# If this is specified, it will override the default of 64K
2d2eda71267231c2526be701fe655db125852c1ffieldingNLM_STACK_SIZE = 8192
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh# If this is specified it will be used by the link '-entry' directive
4a13940dc2990df0a798718d3a3f9cf1566c2217bjhNLM_ENTRY_SYM =
2d2eda71267231c2526be701fe655db125852c1ffielding# If this is specified it will be used by the link '-exit' directive
2d2eda71267231c2526be701fe655db125852c1ffieldingNLM_EXIT_SYM =
2d2eda71267231c2526be701fe655db125852c1ffielding# If this is specified it will be used by the link '-check' directive
4a13940dc2990df0a798718d3a3f9cf1566c2217bjhNLM_CHECK_SYM =
2d2eda71267231c2526be701fe655db125852c1ffielding# If these are specified it will be used by the link '-flags' directive
2d2eda71267231c2526be701fe655db125852c1ffielding# If this is specified it will be linked in with the XDCData option in the def
2d2eda71267231c2526be701fe655db125852c1ffielding# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
2d2eda71267231c2526be701fe655db125852c1ffielding# by setting APACHE_UNIPROC in the environment
2d2eda71267231c2526be701fe655db125852c1ffielding# If there is an NLM target, put it here
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianhTARGET_nlm = \
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh# If there is an LIB target, put it here
e9a0000eb55887c0278a9184d501812f5e056dbfjimTARGET_lib = \
2d2eda71267231c2526be701fe655db125852c1ffielding# These are the OBJ files needed to create the NLM target above.
ee1af2aeb57527f33baa4737aa431e4aef997855rbowen# Paths must all use the '/' character
2d2eda71267231c2526be701fe655db125852c1ffieldingFILES_nlm_objs = \
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh# These are the LIB files needed to create the NLM target above.
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh# These will be added as a library command in the link.opt file.
2d2eda71267231c2526be701fe655db125852c1ffieldingFILES_nlm_libs = \
2d2eda71267231c2526be701fe655db125852c1ffielding $(PRELUDE) \
2d2eda71267231c2526be701fe655db125852c1ffielding# These are the modules that the above NLM target depends on to load.
2d2eda71267231c2526be701fe655db125852c1ffielding# These will be added as a module command in the link.opt file.
ee7882748b83255e50ea6bc3b3fdc8ee0949e2e3jortonFILES_nlm_modules = \
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh# If the nlm has a msg file, put it's path here
2d2eda71267231c2526be701fe655db125852c1ffieldingFILE_nlm_msg =
2d2eda71267231c2526be701fe655db125852c1ffielding# If the nlm has a hlp file put it's path here
742318b93e89c311f66b55f426c4d9cf2c14628bjimFILE_nlm_hlp =
2d2eda71267231c2526be701fe655db125852c1ffielding# If this is specified, it will override $(NWOS)\copyright.txt.
2efb935ae8fe12d5192a3bf2c52c28461b6c68afdgaudetFILE_nlm_copyright =
2efb935ae8fe12d5192a3bf2c52c28461b6c68afdgaudet# Any additional imports go here
2efb935ae8fe12d5192a3bf2c52c28461b6c68afdgaudetFILES_nlm_Ximports = \
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb @$(OBJDIR)/mod_proxy.imp \
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb# Don't link with Winsock if standard sockets are being used
3d0bdf16bc410722e6c42aa2ceb0677b0ae29b90ianhifndef USE_STDSOCKETS
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbbFILES_nlm_Ximports += @ws2nlm.imp \
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb# Any symbols exported to here
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbbFILES_nlm_exports = \
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb proxy_fcgi_module \
3d0bdf16bc410722e6c42aa2ceb0677b0ae29b90ianh# These are the OBJ files needed to create the LIB target above.
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb# Paths must all use the '/' character
3d0bdf16bc410722e6c42aa2ceb0677b0ae29b90ianhFILES_lib_objs = \
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb# implement targets and dependancies (leave this section alone)
3d0bdf16bc410722e6c42aa2ceb0677b0ae29b90ianhlibs :: $(OBJDIR) $(TARGET_lib)
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbbnlms :: libs $(TARGET_nlm)
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb# Updated this target to create necessary directories and copy files to the
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
99d6d3207e24ba1f8eba77ef903948d738886cf5ndinstall :: nlms FORCE
99d6d3207e24ba1f8eba77ef903948d738886cf5nd# Any specialized rules here
99d6d3207e24ba1f8eba77ef903948d738886cf5nd# Include the 'tail' makefile that has targets that depend on variables defined
99d6d3207e24ba1f8eba77ef903948d738886cf5nd# in this makefile
99d6d3207e24ba1f8eba77ef903948d738886cf5ndinclude $(APBUILD)/NWGNUtail.inc