0c04407550130c0ea040b5675f2c214426b27718fuankg# Make sure all needed macro's are defined
0c04407550130c0ea040b5675f2c214426b27718fuankg# Get the 'head' of the build environment if necessary. This includes default
0c04407550130c0ea040b5675f2c214426b27718fuankg# targets and paths to tools
0c04407550130c0ea040b5675f2c214426b27718fuankgifndef EnvironmentDefined
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(AP_WORK)/build/NWGNUhead.inc
0c04407550130c0ea040b5675f2c214426b27718fuankg# These directories will be at the beginning of the include list, followed by
0c04407550130c0ea040b5675f2c214426b27718fuankgXINCDIRS += \
0c04407550130c0ea040b5675f2c214426b27718fuankg $(APR)/include \
0c04407550130c0ea040b5675f2c214426b27718fuankg $(APRUTIL)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(SRC)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(STDMOD)/http \
0c04407550130c0ea040b5675f2c214426b27718fuankg# These flags will come after CFLAGS
0c04407550130c0ea040b5675f2c214426b27718fuankgXCFLAGS += \
0c04407550130c0ea040b5675f2c214426b27718fuankg# These defines will come after DEFINES
0c04407550130c0ea040b5675f2c214426b27718fuankgXDEFINES += \
0c04407550130c0ea040b5675f2c214426b27718fuankg# These flags will be added to the link.opt file
0c04407550130c0ea040b5675f2c214426b27718fuankgXLFLAGS += \
0c04407550130c0ea040b5675f2c214426b27718fuankg# These values will be appended to the correct variables based on the value of
0c04407550130c0ea040b5675f2c214426b27718fuankgifeq "$(RELEASE)" "debug"
0c04407550130c0ea040b5675f2c214426b27718fuankgXINCDIRS += \
0c04407550130c0ea040b5675f2c214426b27718fuankgXCFLAGS += \
0c04407550130c0ea040b5675f2c214426b27718fuankgXDEFINES += \
0c04407550130c0ea040b5675f2c214426b27718fuankgXLFLAGS += \
0c04407550130c0ea040b5675f2c214426b27718fuankgifeq "$(RELEASE)" "noopt"
0c04407550130c0ea040b5675f2c214426b27718fuankgXINCDIRS += \
0c04407550130c0ea040b5675f2c214426b27718fuankgXCFLAGS += \
0c04407550130c0ea040b5675f2c214426b27718fuankgXDEFINES += \
0c04407550130c0ea040b5675f2c214426b27718fuankgXLFLAGS += \
0c04407550130c0ea040b5675f2c214426b27718fuankgifeq "$(RELEASE)" "release"
0c04407550130c0ea040b5675f2c214426b27718fuankgXINCDIRS += \
0c04407550130c0ea040b5675f2c214426b27718fuankgXCFLAGS += \
0c04407550130c0ea040b5675f2c214426b27718fuankgXDEFINES += \
0c04407550130c0ea040b5675f2c214426b27718fuankgXLFLAGS += \
0c04407550130c0ea040b5675f2c214426b27718fuankg# These are used by the link target if an NLM is being generated
0c04407550130c0ea040b5675f2c214426b27718fuankg# This is used by the link 'name' directive to name the nlm. If left blank
0c04407550130c0ea040b5675f2c214426b27718fuankg# TARGET_nlm (see below) will be used.
ea1b70b7a14558cc058b9a1fc31d78afb093f529fuankgNLM_NAME = proxyscgi
0c04407550130c0ea040b5675f2c214426b27718fuankg# This is used by the link '-desc ' directive.
0c04407550130c0ea040b5675f2c214426b27718fuankg# If left blank, NLM_NAME will be used.
0c04407550130c0ea040b5675f2c214426b27718fuankgNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy SCGI Sub-Module
0c04407550130c0ea040b5675f2c214426b27718fuankg# This is used by the '-threadname' directive. If left blank,
0c04407550130c0ea040b5675f2c214426b27718fuankg# NLM_NAME Thread will be used.
0c04407550130c0ea040b5675f2c214426b27718fuankgNLM_THREAD_NAME = Proxy SCGI Module
0c04407550130c0ea040b5675f2c214426b27718fuankg# If this is specified, it will override VERSION value in
0c04407550130c0ea040b5675f2c214426b27718fuankgNLM_VERSION =
0c04407550130c0ea040b5675f2c214426b27718fuankg# If this is specified, it will override the default of 64K
0c04407550130c0ea040b5675f2c214426b27718fuankgNLM_STACK_SIZE = 8192
0c04407550130c0ea040b5675f2c214426b27718fuankg# If this is specified it will be used by the link '-entry' directive
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_ENTRY_SYM =
0c04407550130c0ea040b5675f2c214426b27718fuankg# If this is specified it will be used by the link '-exit' directive
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_EXIT_SYM =
0c04407550130c0ea040b5675f2c214426b27718fuankg# If this is specified it will be used by the link '-check' directive
0c04407550130c0ea040b5675f2c214426b27718fuankgNLM_CHECK_SYM =
0c04407550130c0ea040b5675f2c214426b27718fuankg# If these are specified it will be used by the link '-flags' directive
0c04407550130c0ea040b5675f2c214426b27718fuankg# If this is specified it will be linked in with the XDCData option in the def
0c04407550130c0ea040b5675f2c214426b27718fuankg# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
0c04407550130c0ea040b5675f2c214426b27718fuankg# by setting APACHE_UNIPROC in the environment
0c04407550130c0ea040b5675f2c214426b27718fuankg# If there is an NLM target, put it here
0c04407550130c0ea040b5675f2c214426b27718fuankgTARGET_nlm = \
0c04407550130c0ea040b5675f2c214426b27718fuankg# If there is an LIB target, put it here
0c04407550130c0ea040b5675f2c214426b27718fuankgTARGET_lib = \
0c04407550130c0ea040b5675f2c214426b27718fuankg# These are the OBJ files needed to create the NLM target above.
0c04407550130c0ea040b5675f2c214426b27718fuankg# Paths must all use the '/' character
0c04407550130c0ea040b5675f2c214426b27718fuankgFILES_nlm_objs = \
0c04407550130c0ea040b5675f2c214426b27718fuankg# These are the LIB files needed to create the NLM target above.
0c04407550130c0ea040b5675f2c214426b27718fuankg# These will be added as a library command in the link.opt file.
0c04407550130c0ea040b5675f2c214426b27718fuankgFILES_nlm_libs = \
cf7ca2f9eaa6523fefcccba4287b91637391fb51fuankg $(PRELUDE) \
0c04407550130c0ea040b5675f2c214426b27718fuankg# These are the modules that the above NLM target depends on to load.
0c04407550130c0ea040b5675f2c214426b27718fuankg# These will be added as a module command in the link.opt file.
0c04407550130c0ea040b5675f2c214426b27718fuankgFILES_nlm_modules = \
0c04407550130c0ea040b5675f2c214426b27718fuankg# If the nlm has a msg file, put it's path here
0c04407550130c0ea040b5675f2c214426b27718fuankgFILE_nlm_msg =
0c04407550130c0ea040b5675f2c214426b27718fuankg# If the nlm has a hlp file put it's path here
0c04407550130c0ea040b5675f2c214426b27718fuankgFILE_nlm_hlp =
0c04407550130c0ea040b5675f2c214426b27718fuankg# If this is specified, it will override $(NWOS)\copyright.txt.
0c04407550130c0ea040b5675f2c214426b27718fuankgFILE_nlm_copyright =
0c04407550130c0ea040b5675f2c214426b27718fuankg# Any additional imports go here
0c04407550130c0ea040b5675f2c214426b27718fuankgFILES_nlm_Ximports = \
0c04407550130c0ea040b5675f2c214426b27718fuankg# Don't link with Winsock if standard sockets are being used
0c04407550130c0ea040b5675f2c214426b27718fuankgifndef USE_STDSOCKETS
0c04407550130c0ea040b5675f2c214426b27718fuankgFILES_nlm_Ximports += @ws2nlm.imp \
0c04407550130c0ea040b5675f2c214426b27718fuankg# Any symbols exported to here
0c04407550130c0ea040b5675f2c214426b27718fuankgFILES_nlm_exports = \
0c04407550130c0ea040b5675f2c214426b27718fuankg proxy_scgi_module \
0c04407550130c0ea040b5675f2c214426b27718fuankg# These are the OBJ files needed to create the LIB target above.
0c04407550130c0ea040b5675f2c214426b27718fuankg# Paths must all use the '/' character
0c04407550130c0ea040b5675f2c214426b27718fuankgFILES_lib_objs = \
0c04407550130c0ea040b5675f2c214426b27718fuankg# implement targets and dependancies (leave this section alone)
0c04407550130c0ea040b5675f2c214426b27718fuankglibs :: $(OBJDIR) $(TARGET_lib)
0c04407550130c0ea040b5675f2c214426b27718fuankgnlms :: libs $(TARGET_nlm)
0c04407550130c0ea040b5675f2c214426b27718fuankg# Updated this target to create necessary directories and copy files to the
0662ed52e814f8f08ef0e09956413a792584eddffuankg# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
0c04407550130c0ea040b5675f2c214426b27718fuankginstall :: nlms FORCE
0c04407550130c0ea040b5675f2c214426b27718fuankg# Any specialized rules here
0c04407550130c0ea040b5675f2c214426b27718fuankg# Include the 'tail' makefile that has targets that depend on variables defined
0c04407550130c0ea040b5675f2c214426b27718fuankg# in this makefile
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(APBUILD)/NWGNUtail.inc