96e08422d46465ebd7105bf48e475f77e60250d7wrowe# Make sure all needed macro's are defined
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# Get the 'head' of the build environment if necessary. This includes default
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# targets and paths to tools
96e08422d46465ebd7105bf48e475f77e60250d7wroweifndef EnvironmentDefined
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(AP_WORK)/build/NWGNUhead.inc
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# These directories will be at the beginning of the include list, followed by
96e08422d46465ebd7105bf48e475f77e60250d7wroweXINCDIRS += \
96e08422d46465ebd7105bf48e475f77e60250d7wrowe $(APR)/include \
96e08422d46465ebd7105bf48e475f77e60250d7wrowe $(APRUTIL)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(SRC)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(STDMOD)/http \
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# These flags will come after CFLAGS
96e08422d46465ebd7105bf48e475f77e60250d7wroweXCFLAGS += \
96e08422d46465ebd7105bf48e475f77e60250d7wrowe -relax_pointers \
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# These defines will come after DEFINES
96e08422d46465ebd7105bf48e475f77e60250d7wroweXDEFINES += \
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# These flags will be added to the link.opt file
96e08422d46465ebd7105bf48e475f77e60250d7wroweXLFLAGS += \
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# These values will be appended to the correct variables based on the value of
96e08422d46465ebd7105bf48e475f77e60250d7wroweifeq "$(RELEASE)" "debug"
96e08422d46465ebd7105bf48e475f77e60250d7wroweXINCDIRS += \
96e08422d46465ebd7105bf48e475f77e60250d7wroweXCFLAGS += \
96e08422d46465ebd7105bf48e475f77e60250d7wroweXDEFINES += \
96e08422d46465ebd7105bf48e475f77e60250d7wroweXLFLAGS += \
96e08422d46465ebd7105bf48e475f77e60250d7wroweifeq "$(RELEASE)" "noopt"
96e08422d46465ebd7105bf48e475f77e60250d7wroweXINCDIRS += \
96e08422d46465ebd7105bf48e475f77e60250d7wroweXCFLAGS += \
96e08422d46465ebd7105bf48e475f77e60250d7wroweXDEFINES += \
96e08422d46465ebd7105bf48e475f77e60250d7wroweXLFLAGS += \
96e08422d46465ebd7105bf48e475f77e60250d7wroweifeq "$(RELEASE)" "release"
96e08422d46465ebd7105bf48e475f77e60250d7wroweXINCDIRS += \
96e08422d46465ebd7105bf48e475f77e60250d7wroweXCFLAGS += \
96e08422d46465ebd7105bf48e475f77e60250d7wroweXDEFINES += \
96e08422d46465ebd7105bf48e475f77e60250d7wroweXLFLAGS += \
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# These are used by the link target if an NLM is being generated
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# This is used by the link 'name' directive to name the nlm. If left blank
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# TARGET_nlm (see below) will be used.
96e08422d46465ebd7105bf48e475f77e60250d7wroweNLM_NAME = proxyfcgi
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# This is used by the link '-desc ' directive.
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# If left blank, NLM_NAME will be used.
96e08422d46465ebd7105bf48e475f77e60250d7wroweNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy Fast CGI Sub-Module
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# This is used by the '-threadname' directive. If left blank,
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# NLM_NAME Thread will be used.
96e08422d46465ebd7105bf48e475f77e60250d7wroweNLM_THREAD_NAME = Proxy FCGI Module
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# If this is specified, it will override VERSION value in
96e08422d46465ebd7105bf48e475f77e60250d7wroweNLM_VERSION =
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# If this is specified, it will override the default of 64K
96e08422d46465ebd7105bf48e475f77e60250d7wroweNLM_STACK_SIZE = 8192
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# If this is specified it will be used by the link '-entry' directive
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_ENTRY_SYM =
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# If this is specified it will be used by the link '-exit' directive
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_EXIT_SYM =
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# If this is specified it will be used by the link '-check' directive
96e08422d46465ebd7105bf48e475f77e60250d7wroweNLM_CHECK_SYM =
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# If these are specified it will be used by the link '-flags' directive
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# If this is specified it will be linked in with the XDCData option in the def
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# by setting APACHE_UNIPROC in the environment
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# If there is an NLM target, put it here
96e08422d46465ebd7105bf48e475f77e60250d7wroweTARGET_nlm = \
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# If there is an LIB target, put it here
96e08422d46465ebd7105bf48e475f77e60250d7wroweTARGET_lib = \
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# These are the OBJ files needed to create the NLM target above.
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# Paths must all use the '/' character
96e08422d46465ebd7105bf48e475f77e60250d7wroweFILES_nlm_objs = \
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# These are the LIB files needed to create the NLM target above.
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# These will be added as a library command in the link.opt file.
96e08422d46465ebd7105bf48e475f77e60250d7wroweFILES_nlm_libs = \
cf7ca2f9eaa6523fefcccba4287b91637391fb51fuankg $(PRELUDE) \
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# These are the modules that the above NLM target depends on to load.
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# These will be added as a module command in the link.opt file.
96e08422d46465ebd7105bf48e475f77e60250d7wroweFILES_nlm_modules = \
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# If the nlm has a msg file, put it's path here
96e08422d46465ebd7105bf48e475f77e60250d7wroweFILE_nlm_msg =
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# If the nlm has a hlp file put it's path here
96e08422d46465ebd7105bf48e475f77e60250d7wroweFILE_nlm_hlp =
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# If this is specified, it will override $(NWOS)\copyright.txt.
96e08422d46465ebd7105bf48e475f77e60250d7wroweFILE_nlm_copyright =
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# Any additional imports go here
96e08422d46465ebd7105bf48e475f77e60250d7wroweFILES_nlm_Ximports = \
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# Don't link with Winsock if standard sockets are being used
96e08422d46465ebd7105bf48e475f77e60250d7wroweifndef USE_STDSOCKETS
96e08422d46465ebd7105bf48e475f77e60250d7wroweFILES_nlm_Ximports += @ws2nlm.imp \
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# Any symbols exported to here
96e08422d46465ebd7105bf48e475f77e60250d7wroweFILES_nlm_exports = \
96e08422d46465ebd7105bf48e475f77e60250d7wrowe proxy_fcgi_module \
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# These are the OBJ files needed to create the LIB target above.
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# Paths must all use the '/' character
96e08422d46465ebd7105bf48e475f77e60250d7wroweFILES_lib_objs = \
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# implement targets and dependancies (leave this section alone)
96e08422d46465ebd7105bf48e475f77e60250d7wrowelibs :: $(OBJDIR) $(TARGET_lib)
96e08422d46465ebd7105bf48e475f77e60250d7wrowenlms :: libs $(TARGET_nlm)
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# Updated this target to create necessary directories and copy files to the
0662ed52e814f8f08ef0e09956413a792584eddffuankg# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
96e08422d46465ebd7105bf48e475f77e60250d7wroweinstall :: nlms FORCE
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# Any specialized rules here
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# Include the 'tail' makefile that has targets that depend on variables defined
96e08422d46465ebd7105bf48e475f77e60250d7wrowe# in this makefile
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(APBUILD)/NWGNUtail.inc