842ae4bd224140319ae7feec1872b93dfd491143fielding#
842ae4bd224140319ae7feec1872b93dfd491143fielding# Make sure all needed macro's are defined
842ae4bd224140319ae7feec1872b93dfd491143fielding#
842ae4bd224140319ae7feec1872b93dfd491143fielding
842ae4bd224140319ae7feec1872b93dfd491143fielding#
842ae4bd224140319ae7feec1872b93dfd491143fielding# Get the 'head' of the build environment if necessary. This includes default
2d2eda71267231c2526be701fe655db125852c1ffielding# targets and paths to tools
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd#
2d2eda71267231c2526be701fe655db125852c1ffielding
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcndifndef EnvironmentDefined
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcndinclude $(AP_WORK)/build/NWGNUhead.inc
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcndendif
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd#
2d2eda71267231c2526be701fe655db125852c1ffielding# These directories will be at the beginning of the include list, followed by
2d2eda71267231c2526be701fe655db125852c1ffielding# INCDIRS
759f4a24d09e28c4eaca9f97311b497fc15cb5c7ben#
0432a26b69eedfb9ca5f34fba590236378a24851benXINCDIRS += \
0432a26b69eedfb9ca5f34fba590236378a24851ben $(APR)/include \
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh $(APRUTIL)/include \
bf6b5eb3bf3c4a71e6146d4bcd07cf1749dc6d70jorton $(SRC)/include \
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh $(STDMOD)/http \
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh $(NWOS) \
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh $(EOLIST)
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh
bf6b5eb3bf3c4a71e6146d4bcd07cf1749dc6d70jorton#
bf6b5eb3bf3c4a71e6146d4bcd07cf1749dc6d70jorton# These flags will come after CFLAGS
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh#
bf6b5eb3bf3c4a71e6146d4bcd07cf1749dc6d70jortonXCFLAGS += \
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh -relax_pointers \
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh $(EOLIST)
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh
2d2eda71267231c2526be701fe655db125852c1ffielding#
2d2eda71267231c2526be701fe655db125852c1ffielding# These defines will come after DEFINES
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh#
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianhXDEFINES += \
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh $(EOLIST)
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb#
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb# These flags will be added to the link.opt file
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb#
2d2eda71267231c2526be701fe655db125852c1ffieldingXLFLAGS += \
30c289e6bc6d28d210b21edd800ab2cfc78a8381wrowe $(EOLIST)
cccd31fa4a72fe23cc3249c06db181b274a55a69gstein
cccd31fa4a72fe23cc3249c06db181b274a55a69gstein#
cd39d2139743ca0ef899953c6496dcf99e9c791atrawick# These values will be appended to the correct variables based on the value of
cccd31fa4a72fe23cc3249c06db181b274a55a69gstein# RELEASE
a261b81a1044c0e2ea3f21cf9b7019297bad16aajorton#
b627048681b27fe30f979ba471b523be3a6a22adrbbifeq "$(RELEASE)" "debug"
cccd31fa4a72fe23cc3249c06db181b274a55a69gsteinXINCDIRS += \
cccd31fa4a72fe23cc3249c06db181b274a55a69gstein $(EOLIST)
44c46ef733836b32585d135d2d90856e7cfd9929rbb
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbbXCFLAGS += \
e6cc28a5eb3371ba0c38e941855e71ff0054f50erbb $(EOLIST)
d9039a9aaeaa1359c1147af66c09aeac56ae3ee0pquerna
cdccf2ac94172d1a4a54bc2e17324e1ef682ccf3pquernaXDEFINES += \
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb $(EOLIST)
9cfc48b742c224c1fbc2c26a4119a3266192c7d2wrowe
9cfc48b742c224c1fbc2c26a4119a3266192c7d2wroweXLFLAGS += \
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton $(EOLIST)
7c7372abe2484e7fcf81937b93496d1246e5b816gsteinendif
a261b81a1044c0e2ea3f21cf9b7019297bad16aajorton
a261b81a1044c0e2ea3f21cf9b7019297bad16aajortonifeq "$(RELEASE)" "noopt"
a261b81a1044c0e2ea3f21cf9b7019297bad16aajortonXINCDIRS += \
a261b81a1044c0e2ea3f21cf9b7019297bad16aajorton $(EOLIST)
d71fd7cd9c4815d0647425f21ba3a803919a9148jorton
7c7372abe2484e7fcf81937b93496d1246e5b816gsteinXCFLAGS += \
7c7372abe2484e7fcf81937b93496d1246e5b816gstein $(EOLIST)
7c7372abe2484e7fcf81937b93496d1246e5b816gstein
7c7372abe2484e7fcf81937b93496d1246e5b816gsteinXDEFINES += \
7c7372abe2484e7fcf81937b93496d1246e5b816gstein $(EOLIST)
2d2eda71267231c2526be701fe655db125852c1ffielding
2d2eda71267231c2526be701fe655db125852c1ffieldingXLFLAGS += \
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh $(EOLIST)
2d2eda71267231c2526be701fe655db125852c1ffieldingendif
2d2eda71267231c2526be701fe655db125852c1ffielding
2d2eda71267231c2526be701fe655db125852c1ffieldingifeq "$(RELEASE)" "release"
4a13940dc2990df0a798718d3a3f9cf1566c2217bjhXINCDIRS += \
4a13940dc2990df0a798718d3a3f9cf1566c2217bjh $(EOLIST)
4a13940dc2990df0a798718d3a3f9cf1566c2217bjh
4a13940dc2990df0a798718d3a3f9cf1566c2217bjhXCFLAGS += \
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh $(EOLIST)
2d2eda71267231c2526be701fe655db125852c1ffielding
dd5cbadf2df719db2f3c769d03ec847da25854e6bnicholesXDEFINES += \
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh $(EOLIST)
dd5cbadf2df719db2f3c769d03ec847da25854e6bnicholes
2d2eda71267231c2526be701fe655db125852c1ffieldingXLFLAGS += \
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh $(EOLIST)
2d2eda71267231c2526be701fe655db125852c1ffieldingendif
2d2eda71267231c2526be701fe655db125852c1ffielding
2d2eda71267231c2526be701fe655db125852c1ffielding#
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.
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb#
742318b93e89c311f66b55f426c4d9cf2c14628bjimNLM_NAME = proxyfcgi
742318b93e89c311f66b55f426c4d9cf2c14628bjim
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb#
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb# This is used by the link '-desc ' directive.
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb# If left blank, NLM_NAME will be used.
742318b93e89c311f66b55f426c4d9cf2c14628bjim#
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianhNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy Fast CGI Sub-Module
2d2eda71267231c2526be701fe655db125852c1ffielding
2d2eda71267231c2526be701fe655db125852c1ffielding#
2d2eda71267231c2526be701fe655db125852c1ffielding# This is used by the '-threadname' directive. If left blank,
4a13940dc2990df0a798718d3a3f9cf1566c2217bjh# NLM_NAME Thread will be used.
4a13940dc2990df0a798718d3a3f9cf1566c2217bjh#
4a13940dc2990df0a798718d3a3f9cf1566c2217bjhNLM_THREAD_NAME = Proxy FCGI Module
4a13940dc2990df0a798718d3a3f9cf1566c2217bjh
4a13940dc2990df0a798718d3a3f9cf1566c2217bjh#
2d2eda71267231c2526be701fe655db125852c1ffielding# If this is specified, it will override VERSION value in
4a13940dc2990df0a798718d3a3f9cf1566c2217bjh# $(AP_WORK)/build/NWGNUenvironment.inc
2d2eda71267231c2526be701fe655db125852c1ffielding#
2d2eda71267231c2526be701fe655db125852c1ffieldingNLM_VERSION =
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh
2d2eda71267231c2526be701fe655db125852c1ffielding#
a0bd5cdd79004f4b7b1b441e38133519d3e20a1fsf# If this is specified, it will override the default of 64K
2d2eda71267231c2526be701fe655db125852c1ffielding#
2d2eda71267231c2526be701fe655db125852c1ffieldingNLM_STACK_SIZE = 8192
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh
2d2eda71267231c2526be701fe655db125852c1ffielding
2d2eda71267231c2526be701fe655db125852c1ffielding#
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh# If this is specified it will be used by the link '-entry' directive
2d2eda71267231c2526be701fe655db125852c1ffielding#
4a13940dc2990df0a798718d3a3f9cf1566c2217bjhNLM_ENTRY_SYM =
2d2eda71267231c2526be701fe655db125852c1ffielding
2d2eda71267231c2526be701fe655db125852c1ffielding#
2d2eda71267231c2526be701fe655db125852c1ffielding# If this is specified it will be used by the link '-exit' directive
2d2eda71267231c2526be701fe655db125852c1ffielding#
2d2eda71267231c2526be701fe655db125852c1ffieldingNLM_EXIT_SYM =
2d2eda71267231c2526be701fe655db125852c1ffielding
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh#
2d2eda71267231c2526be701fe655db125852c1ffielding# If this is specified it will be used by the link '-check' directive
4a13940dc2990df0a798718d3a3f9cf1566c2217bjh#
4a13940dc2990df0a798718d3a3f9cf1566c2217bjhNLM_CHECK_SYM =
4a13940dc2990df0a798718d3a3f9cf1566c2217bjh
4a13940dc2990df0a798718d3a3f9cf1566c2217bjh#
2d2eda71267231c2526be701fe655db125852c1ffielding# If these are specified it will be used by the link '-flags' directive
4a13940dc2990df0a798718d3a3f9cf1566c2217bjh#
2d2eda71267231c2526be701fe655db125852c1ffieldingNLM_FLAGS =
2d2eda71267231c2526be701fe655db125852c1ffielding
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh#
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#
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianhXDCDATA =
2d2eda71267231c2526be701fe655db125852c1ffielding
2d2eda71267231c2526be701fe655db125852c1ffielding#
2d2eda71267231c2526be701fe655db125852c1ffielding# If there is an NLM target, put it here
2d2eda71267231c2526be701fe655db125852c1ffielding#
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianhTARGET_nlm = \
2d2eda71267231c2526be701fe655db125852c1ffielding $(OBJDIR)/proxyfcgi.nlm \
dbbf1b4183ae16353011a5269b37899f02b97d81gregames $(EOLIST)
2d2eda71267231c2526be701fe655db125852c1ffielding
2d2eda71267231c2526be701fe655db125852c1ffielding#
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh# If there is an LIB target, put it here
2d2eda71267231c2526be701fe655db125852c1ffielding#
e9a0000eb55887c0278a9184d501812f5e056dbfjimTARGET_lib = \
2d2eda71267231c2526be701fe655db125852c1ffielding $(EOLIST)
2d2eda71267231c2526be701fe655db125852c1ffielding
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh#
2d2eda71267231c2526be701fe655db125852c1ffielding# These are the OBJ files needed to create the NLM target above.
ee1af2aeb57527f33baa4737aa431e4aef997855rbowen# Paths must all use the '/' character
2d2eda71267231c2526be701fe655db125852c1ffielding#
2d2eda71267231c2526be701fe655db125852c1ffieldingFILES_nlm_objs = \
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh $(OBJDIR)/mod_proxy_fcgi.o \
2d2eda71267231c2526be701fe655db125852c1ffielding $(OBJDIR)/libprews.o \
2d2eda71267231c2526be701fe655db125852c1ffielding $(EOLIST)
2d2eda71267231c2526be701fe655db125852c1ffielding
2d2eda71267231c2526be701fe655db125852c1ffielding#
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.
2d2eda71267231c2526be701fe655db125852c1ffielding#
2d2eda71267231c2526be701fe655db125852c1ffieldingFILES_nlm_libs = \
2d2eda71267231c2526be701fe655db125852c1ffielding $(PRELUDE) \
2d2eda71267231c2526be701fe655db125852c1ffielding $(EOLIST)
2d2eda71267231c2526be701fe655db125852c1ffielding
2d2eda71267231c2526be701fe655db125852c1ffielding#
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.
2d2eda71267231c2526be701fe655db125852c1ffielding#
ee7882748b83255e50ea6bc3b3fdc8ee0949e2e3jortonFILES_nlm_modules = \
2d2eda71267231c2526be701fe655db125852c1ffielding aprlib \
2d2eda71267231c2526be701fe655db125852c1ffielding libc \
2d2eda71267231c2526be701fe655db125852c1ffielding proxy \
2d2eda71267231c2526be701fe655db125852c1ffielding $(EOLIST)
2d2eda71267231c2526be701fe655db125852c1ffielding
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh#
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh# If the nlm has a msg file, put it's path here
2d2eda71267231c2526be701fe655db125852c1ffielding#
2d2eda71267231c2526be701fe655db125852c1ffieldingFILE_nlm_msg =
742318b93e89c311f66b55f426c4d9cf2c14628bjim
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh#
2d2eda71267231c2526be701fe655db125852c1ffielding# If the nlm has a hlp file put it's path here
2d2eda71267231c2526be701fe655db125852c1ffielding#
742318b93e89c311f66b55f426c4d9cf2c14628bjimFILE_nlm_hlp =
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh
2d2eda71267231c2526be701fe655db125852c1ffielding#
2d2eda71267231c2526be701fe655db125852c1ffielding# If this is specified, it will override $(NWOS)\copyright.txt.
742318b93e89c311f66b55f426c4d9cf2c14628bjim#
2efb935ae8fe12d5192a3bf2c52c28461b6c68afdgaudetFILE_nlm_copyright =
3d0bdf16bc410722e6c42aa2ceb0677b0ae29b90ianh
2efb935ae8fe12d5192a3bf2c52c28461b6c68afdgaudet#
2efb935ae8fe12d5192a3bf2c52c28461b6c68afdgaudet# Any additional imports go here
2efb935ae8fe12d5192a3bf2c52c28461b6c68afdgaudet#
2efb935ae8fe12d5192a3bf2c52c28461b6c68afdgaudetFILES_nlm_Ximports = \
2efb935ae8fe12d5192a3bf2c52c28461b6c68afdgaudet @aprlib.imp \
3d0bdf16bc410722e6c42aa2ceb0677b0ae29b90ianh @httpd.imp \
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb @$(OBJDIR)/mod_proxy.imp \
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb @libc.imp \
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb $(EOLIST)
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb# Don't link with Winsock if standard sockets are being used
3d0bdf16bc410722e6c42aa2ceb0677b0ae29b90ianhifndef USE_STDSOCKETS
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbbFILES_nlm_Ximports += @ws2nlm.imp \
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb $(EOLIST)
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbbendif
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb
3d0bdf16bc410722e6c42aa2ceb0677b0ae29b90ianh#
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb# Any symbols exported to here
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb#
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbbFILES_nlm_exports = \
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb proxy_fcgi_module \
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb $(EOLIST)
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb#
3d0bdf16bc410722e6c42aa2ceb0677b0ae29b90ianh# These are the OBJ files needed to create the LIB target above.
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb# Paths must all use the '/' character
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb#
3d0bdf16bc410722e6c42aa2ceb0677b0ae29b90ianhFILES_lib_objs = \
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb $(EOLIST)
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb
3d0bdf16bc410722e6c42aa2ceb0677b0ae29b90ianh#
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb# implement targets and dependancies (leave this section alone)
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb#
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb
3d0bdf16bc410722e6c42aa2ceb0677b0ae29b90ianhlibs :: $(OBJDIR) $(TARGET_lib)
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbbnlms :: libs $(TARGET_nlm)
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb
3d0bdf16bc410722e6c42aa2ceb0677b0ae29b90ianh#
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb# Updated this target to create necessary directories and copy files to the
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb#
99d6d3207e24ba1f8eba77ef903948d738886cf5ndinstall :: nlms FORCE
99d6d3207e24ba1f8eba77ef903948d738886cf5nd
99d6d3207e24ba1f8eba77ef903948d738886cf5nd#
99d6d3207e24ba1f8eba77ef903948d738886cf5nd# Any specialized rules here
99d6d3207e24ba1f8eba77ef903948d738886cf5nd#
99d6d3207e24ba1f8eba77ef903948d738886cf5nd
99d6d3207e24ba1f8eba77ef903948d738886cf5ndvpath %.c ../arch/netware
99d6d3207e24ba1f8eba77ef903948d738886cf5nd
99d6d3207e24ba1f8eba77ef903948d738886cf5nd#
99d6d3207e24ba1f8eba77ef903948d738886cf5nd# Include the 'tail' makefile that has targets that depend on variables defined
99d6d3207e24ba1f8eba77ef903948d738886cf5nd# in this makefile
99d6d3207e24ba1f8eba77ef903948d738886cf5nd#
99d6d3207e24ba1f8eba77ef903948d738886cf5nd
99d6d3207e24ba1f8eba77ef903948d738886cf5ndinclude $(APBUILD)/NWGNUtail.inc
99d6d3207e24ba1f8eba77ef903948d738886cf5nd
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44crbb
3d0bdf16bc410722e6c42aa2ceb0677b0ae29b90ianh