cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Make sure all needed macro's are defined
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Get the 'head' of the build environment if necessary. This includes default
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# targets and paths to tools
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesifndef EnvironmentDefined
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(AP_WORK)/build/NWGNUhead.inc
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# These directories will be at the beginning of the include list, followed by
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesXINCDIRS += \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(APR)/include \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(APRUTIL)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(SRC)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(STDMOD)/http \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# These flags will come after CFLAGS
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# These defines will come after DEFINES
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesXDEFINES += \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# These flags will be added to the link.opt file
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# These values will be appended to the correct variables based on the value of
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesifeq "$(RELEASE)" "debug"
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesXINCDIRS += \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesXDEFINES += \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesifeq "$(RELEASE)" "noopt"
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesXINCDIRS += \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesXDEFINES += \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesifeq "$(RELEASE)" "release"
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesXINCDIRS += \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesXDEFINES += \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# These are used by the link target if an NLM is being generated
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# This is used by the link 'name' directive to name the nlm. If left blank
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# TARGET_nlm (see below) will be used.
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_NAME = proxyhtp
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# This is used by the link '-desc ' directive.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# If left blank, NLM_NAME will be used.
0a39e7683f6611d66c55712f50bb240428d832a1bnicholesNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy HTTP Sub-Module
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# This is used by the '-threadname' directive. If left blank,
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# NLM_NAME Thread will be used.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesNLM_THREAD_NAME = Proxy HTTP Module
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# If this is specified, it will override VERSION value in
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_VERSION =
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# If this is specified, it will override the default of 64K
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesNLM_STACK_SIZE = 8192
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# If this is specified it will be used by the link '-entry' directive
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_ENTRY_SYM =
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# If this is specified it will be used by the link '-exit' directive
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_EXIT_SYM =
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# If this is specified it will be used by the link '-check' directive
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesNLM_CHECK_SYM =
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# If these are specified it will be used by the link '-flags' directive
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# If this is specified it will be linked in with the XDCData option in the def
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# by setting APACHE_UNIPROC in the environment
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# If there is an NLM target, put it here
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesTARGET_nlm = \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# If there is an LIB target, put it here
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesTARGET_lib = \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# These are the OBJ files needed to create the NLM target above.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Paths must all use the '/' character
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesFILES_nlm_objs = \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# These are the LIB files needed to create the NLM target above.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# These will be added as a library command in the link.opt file.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesFILES_nlm_libs = \
cf7ca2f9eaa6523fefcccba4287b91637391fb51fuankg $(PRELUDE) \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# These are the modules that the above NLM target depends on to load.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# These will be added as a module command in the link.opt file.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesFILES_nlm_modules = \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# If the nlm has a msg file, put it's path here
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesFILE_nlm_msg =
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# If the nlm has a hlp file put it's path here
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesFILE_nlm_hlp =
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# If this is specified, it will override $(NWOS)\copyright.txt.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesFILE_nlm_copyright =
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Any additional imports go here
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesFILES_nlm_Ximports = \
609ef720afd62ca63391c9fdb415cd2faf29aa46bnicholes# Don't link with Winsock if standard sockets are being used
609ef720afd62ca63391c9fdb415cd2faf29aa46bnicholesifndef USE_STDSOCKETS
609ef720afd62ca63391c9fdb415cd2faf29aa46bnicholesFILES_nlm_Ximports += @ws2nlm.imp \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Any symbols exported to here
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesFILES_nlm_exports = \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes proxy_http_module \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# These are the OBJ files needed to create the LIB target above.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Paths must all use the '/' character
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesFILES_lib_objs = \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# implement targets and dependancies (leave this section alone)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholeslibs :: $(OBJDIR) $(TARGET_lib)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesnlms :: libs $(TARGET_nlm)
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# Updated this target to create necessary directories and copy files to the
0662ed52e814f8f08ef0e09956413a792584eddffuankg# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesinstall :: nlms FORCE
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Any specialized rules here
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Include the 'tail' makefile that has targets that depend on variables defined
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# in this makefile
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(APBUILD)/NWGNUtail.inc