NWGNUproxyajp revision cf7ca2f9eaa6523fefcccba4287b91637391fb51
898720b7e9cf3bdf7a93e435cbed5dd6942ecf9bHarald Hoyer# Make sure all needed macro's are defined
898720b7e9cf3bdf7a93e435cbed5dd6942ecf9bHarald Hoyer# Get the 'head' of the build environment if necessary. This includes default
0fe15dc8ddddeb39a5cad1f4f4afa25fa074a5d1Evgeny Vereshchagin# targets and paths to tools
898720b7e9cf3bdf7a93e435cbed5dd6942ecf9bHarald Hoyerifndef EnvironmentDefined
3486cb6cfa3d32a95c0daf02c7510fdf372507bfMartin Pittinclude $(AP_WORK)/build/NWGNUhead.inc
3486cb6cfa3d32a95c0daf02c7510fdf372507bfMartin Pitt# These directories will be at the beginning of the include list, followed by
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier $(APR)/include \
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier $(APRUTIL)/include \
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier $(AP_WORK)/include \
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier# These flags will come after CFLAGS
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier# These defines will come after DEFINES
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalier# These flags will be added to the link.opt file
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# These values will be appended to the correct variables based on the value of
b6f0c419e38a960873fe68bf8f89bbb0268eed02Harald Hoyerifeq "$(RELEASE)" "debug"
b6f0c419e38a960873fe68bf8f89bbb0268eed02Harald HoyerXINCDIRS += \
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalierifeq "$(RELEASE)" "noopt"
c6a77179a4097df355f0f04b8f3260c76b5e515cRonny Chevalierifeq "$(RELEASE)" "release"
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# These are used by the link target if an NLM is being generated
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# This is used by the link 'name' directive to name the nlm. If left blank
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# TARGET_nlm (see below) will be used.
889a90422dd47284dffa32b9234a6e58991b000cRonny ChevalierNLM_NAME = proxyajp
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# This is used by the link '-desc ' directive.
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# If left blank, NLM_NAME will be used.
889a90422dd47284dffa32b9234a6e58991b000cRonny ChevalierNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy AJP Sub-Module
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# This is used by the '-threadname' directive. If left blank,
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# NLM_NAME Thread will be used.
889a90422dd47284dffa32b9234a6e58991b000cRonny ChevalierNLM_THREAD_NAME = Proxy AJP Module
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# If this is specified, it will override VERSION value in
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# If this is specified, it will override the default of 64K
889a90422dd47284dffa32b9234a6e58991b000cRonny ChevalierNLM_STACK_SIZE = 8192
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# If this is specified it will be used by the link '-entry' directive
889a90422dd47284dffa32b9234a6e58991b000cRonny ChevalierNLM_ENTRY_SYM =
8a8332f77e61d41f3bb28b8f929ed41e0ffaf721Zbigniew Jędrzejewski-Szmek# If this is specified it will be used by the link '-exit' directive
2375607039517c88df51ef16ddbb624ec1c10654Kay SieversNLM_EXIT_SYM =
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# If this is specified it will be used by the link '-check' directive
889a90422dd47284dffa32b9234a6e58991b000cRonny ChevalierNLM_CHECK_SYM =
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# If these are specified it will be used by the link '-flags' directive
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# If this is specified it will be linked in with the XDCData option in the def
739d81ddd005fae2bb82edce5b8a6173c7c48b34Zbigniew Jędrzejewski-Szmek# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# by setting APACHE_UNIPROC in the environment
edbced8a151c1b7ded685e2ec644950d2adec5f5Harald Hoyer# If there is an NLM target, put it here
889a90422dd47284dffa32b9234a6e58991b000cRonny ChevalierTARGET_nlm = \
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# If there is an LIB target, put it here
889a90422dd47284dffa32b9234a6e58991b000cRonny ChevalierTARGET_lib = \
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# These are the OBJ files needed to create the NLM target above.
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# Paths must all use the '/' character
889a90422dd47284dffa32b9234a6e58991b000cRonny ChevalierFILES_nlm_objs = \
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# These are the LIB files needed to create the NLM target above.
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# These will be added as a library command in the link.opt file.
889a90422dd47284dffa32b9234a6e58991b000cRonny ChevalierFILES_nlm_libs = \
c7eda0133b6bf13a182337cbe8a61bf2faf9b32eEvgeny Vereshchagin# These are the modules that the above NLM target depends on to load.
c7eda0133b6bf13a182337cbe8a61bf2faf9b32eEvgeny Vereshchagin# These will be added as a module command in the link.opt file.
c7eda0133b6bf13a182337cbe8a61bf2faf9b32eEvgeny VereshchaginFILES_nlm_modules = \
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# If the nlm has a msg file, put it's path here
889a90422dd47284dffa32b9234a6e58991b000cRonny ChevalierFILE_nlm_msg =
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# If the nlm has a hlp file put it's path here
889a90422dd47284dffa32b9234a6e58991b000cRonny ChevalierFILE_nlm_hlp =
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# If this is specified, it will override $(NWOS)\copyright.txt.
889a90422dd47284dffa32b9234a6e58991b000cRonny ChevalierFILE_nlm_copyright =
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# Any additional imports go here
889a90422dd47284dffa32b9234a6e58991b000cRonny ChevalierFILES_nlm_Ximports = \
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# Don't link with Winsock if standard sockets are being used
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalierifndef USE_STDSOCKETS
889a90422dd47284dffa32b9234a6e58991b000cRonny ChevalierFILES_nlm_Ximports += @ws2nlm.imp \
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# Any symbols exported to here
889a90422dd47284dffa32b9234a6e58991b000cRonny ChevalierFILES_nlm_exports = \
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier proxy_ajp_module \
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# These are the OBJ files needed to create the LIB target above.
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# Paths must all use the '/' character
889a90422dd47284dffa32b9234a6e58991b000cRonny ChevalierFILES_lib_objs = \
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# implement targets and dependancies (leave this section alone)
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalierlibs :: $(OBJDIR) $(TARGET_lib)
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevaliernlms :: libs $(TARGET_nlm)
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# Updated this target to create necessary directories and copy files to the
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
4be4833ece2856e0cacc09f8f8b2c02b320751faMartin Pittinstall :: nlms FORCE
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# Any specialized rules here
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# Include the 'tail' makefile that has targets that depend on variables defined
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalier# in this makefile
889a90422dd47284dffa32b9234a6e58991b000cRonny Chevalierinclude $(APBUILD)/NWGNUtail.inc