NWGNUproxyhtp revision 44f575c8cb19a7a5cd61664a7848be6bc197df02
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# Make sure all needed macro's are defined
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# Get the 'head' of the build environment if necessary. This includes default
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# targets and paths to tools
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignacifndef EnvironmentDefined
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckinclude $(AP_WORK)/build/NWGNUhead.inc
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac# These directories will be at the beginning of the include list, followed by
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignacXINCDIRS += \
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck $(APR)/include \
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck $(APRUTIL)/include \
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck $(SRC)/include \
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck $(STDMOD)/http \
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# These flags will come after CFLAGS
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckXCFLAGS += \
420ea9457b4a14a03eeb67a9a7025f97d1141c4dcoulbeck# These defines will come after DEFINES
420ea9457b4a14a03eeb67a9a7025f97d1141c4dcoulbeckXDEFINES += \
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# These flags will be added to the link.opt file
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckXLFLAGS += \
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# These values will be appended to the correct variables based on the value of
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckifeq "$(RELEASE)" "debug"
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckXINCDIRS += \
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckXCFLAGS += \
420ea9457b4a14a03eeb67a9a7025f97d1141c4dcoulbeckXDEFINES += \
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckXLFLAGS += \
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckifeq "$(RELEASE)" "noopt"
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckXINCDIRS += \
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckXCFLAGS += \
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckXDEFINES += \
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckXLFLAGS += \
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckifeq "$(RELEASE)" "release"
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckXINCDIRS += \
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckXCFLAGS += \
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckXDEFINES += \
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckXLFLAGS += \
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# These are used by the link target if an NLM is being generated
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# This is used by the link 'name' directive to name the nlm. If left blank
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# TARGET_nlm (see below) will be used.
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckNLM_NAME = proxyhtp
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# This is used by the link '-desc ' directive.
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# If left blank, NLM_NAME will be used.
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy HTTP Sub-Module
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# This is used by the '-threadname' directive. If left blank,
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# NLM_NAME Thread will be used.
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckNLM_THREAD_NAME = Proxy HTTP Module
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# If this is specified, it will override VERSION value in
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckNLM_VERSION =
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# If this is specified, it will override the default of 64K
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckNLM_STACK_SIZE = 8192
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# If this is specified it will be used by the link '-entry' directive
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckNLM_ENTRY_SYM =
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# If this is specified it will be used by the link '-exit' directive
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckNLM_EXIT_SYM =
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# If this is specified it will be used by the link '-check' directive
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckNLM_CHECK_SYM =
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# If these are specified it will be used by the link '-flags' directive
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# If this is specified it will be linked in with the XDCData option in the def
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# by setting APACHE_UNIPROC in the environment
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# If there is an NLM target, put it here
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckTARGET_nlm = \
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# If there is an LIB target, put it here
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckTARGET_lib = \
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# These are the OBJ files needed to create the NLM target above.
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# Paths must all use the '/' character
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckFILES_nlm_objs = \
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# These are the LIB files needed to create the NLM target above.
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# These will be added as a library command in the link.opt file.
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeckFILES_nlm_libs = \
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck $(PRELUDE) \
8efe23947954bf9ecb2c7aac46e8b195fcbe425bcoulbeck# These are the modules that the above NLM target depends on to load.
420ea9457b4a14a03eeb67a9a7025f97d1141c4dcoulbeck# These will be added as a module command in the link.opt file.
420ea9457b4a14a03eeb67a9a7025f97d1141c4dcoulbeckFILES_nlm_modules = \
420ea9457b4a14a03eeb67a9a7025f97d1141c4dcoulbeck# If the nlm has a msg file, put it's path here
420ea9457b4a14a03eeb67a9a7025f97d1141c4dcoulbeckFILE_nlm_msg =
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift# If the nlm has a hlp file put it's path here
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swiftFILE_nlm_hlp =
420ea9457b4a14a03eeb67a9a7025f97d1141c4dcoulbeck# If this is specified, it will override $(NWOS)\copyright.txt.
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swiftFILE_nlm_copyright =
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift# Any additional imports go here
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swiftFILES_nlm_Ximports = \
420ea9457b4a14a03eeb67a9a7025f97d1141c4dcoulbeck# Don't link with Winsock if standard sockets are being used
420ea9457b4a14a03eeb67a9a7025f97d1141c4dcoulbeckifndef USE_STDSOCKETS
420ea9457b4a14a03eeb67a9a7025f97d1141c4dcoulbeckFILES_nlm_Ximports += @ws2nlm.imp \
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift# Any symbols exported to here
420ea9457b4a14a03eeb67a9a7025f97d1141c4dcoulbeckFILES_nlm_exports = \
420ea9457b4a14a03eeb67a9a7025f97d1141c4dcoulbeck proxy_http_module \
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift# These are the OBJ files needed to create the LIB target above.
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift# Paths must all use the '/' character
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swiftFILES_lib_objs = \
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift# implement targets and dependancies (leave this section alone)
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swiftlibs :: $(OBJDIR) $(TARGET_lib)
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swiftnlms :: libs $(TARGET_nlm)
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift# Updated this target to create necessary directories and copy files to the
420ea9457b4a14a03eeb67a9a7025f97d1141c4dcoulbeck# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
420ea9457b4a14a03eeb67a9a7025f97d1141c4dcoulbeckinstall :: nlms FORCE
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift# Any specialized rules here
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift# Include the 'tail' makefile that has targets that depend on variables defined
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swift# in this makefile
7185b49f58c4cdb16d035ecc45e38ec9b1cd9bd0matthew_swiftinclude $(APBUILD)/NWGNUtail.inc