NWGNUproxyexpress revision b40d4afa431b31f3ac966f1b539e589c79a06512
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync# Make sure all needed macro's are defined
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync# Get the 'head' of the build environment if necessary. This includes default
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# targets and paths to tools
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsyncifndef EnvironmentDefined
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsyncinclude $(AP_WORK)/build/NWGNUhead.inc
565c6b62913edd14704b060e3172bba10b1fe12evboxsync# These directories will be at the beginning of the include list, followed by
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsyncXINCDIRS += \
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync $(APR)/include \
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync $(APRUTIL)/include \
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsync $(AP_WORK)/include \
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsync# These flags will come after CFLAGS
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsyncXCFLAGS += \
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsync# These defines will come after DEFINES
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsyncXDEFINES += \
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsync# These flags will be added to the link.opt file
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsyncXLFLAGS += \
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsync# These values will be appended to the correct variables based on the value of
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsyncifeq "$(RELEASE)" "debug"
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsyncXINCDIRS += \
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsyncXCFLAGS += \
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsyncXDEFINES += \
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsyncXLFLAGS += \
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncifeq "$(RELEASE)" "noopt"
e7aa635d70dd0cdf083287ec896fe8cca2775466vboxsyncXINCDIRS += \
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncXCFLAGS += \
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncXDEFINES += \
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncXLFLAGS += \
565c6b62913edd14704b060e3172bba10b1fe12evboxsyncifeq "$(RELEASE)" "release"
e7aa635d70dd0cdf083287ec896fe8cca2775466vboxsyncXINCDIRS += \
e7aa635d70dd0cdf083287ec896fe8cca2775466vboxsyncXCFLAGS += \
e7aa635d70dd0cdf083287ec896fe8cca2775466vboxsyncXDEFINES += \
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncXLFLAGS += \
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync# These are used by the link target if an NLM is being generated
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync# This is used by the link 'name' directive to name the nlm. If left blank
6ba8963f8a097b33938cd6fbcd6b63faf6d26889vboxsync# TARGET_nlm (see below) will be used.
9868c07279330f31ed91aa986bec707b7e8635a3vboxsyncNLM_NAME = proxyexpress
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync# This is used by the link '-desc ' directive.
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync# If left blank, NLM_NAME will be used.
9868c07279330f31ed91aa986bec707b7e8635a3vboxsyncNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy Express Module
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync# This is used by the '-threadname' directive. If left blank,
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync# NLM_NAME Thread will be used.
9868c07279330f31ed91aa986bec707b7e8635a3vboxsyncNLM_THREAD_NAME = Prxy Xpress Module
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync# If this is specified, it will override VERSION value in
9868c07279330f31ed91aa986bec707b7e8635a3vboxsyncNLM_VERSION =
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync# If this is specified, it will override the default of 64K
9868c07279330f31ed91aa986bec707b7e8635a3vboxsyncNLM_STACK_SIZE = 8192
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync# If this is specified it will be used by the link '-entry' directive
9868c07279330f31ed91aa986bec707b7e8635a3vboxsyncNLM_ENTRY_SYM =
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync# If this is specified it will be used by the link '-exit' directive
9868c07279330f31ed91aa986bec707b7e8635a3vboxsyncNLM_EXIT_SYM =
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync# If this is specified it will be used by the link '-check' directive
9868c07279330f31ed91aa986bec707b7e8635a3vboxsyncNLM_CHECK_SYM =
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync# If these are specified it will be used by the link '-flags' directive
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync# If this is specified it will be linked in with the XDCData option in the def
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
df409c2a6d13641b0586a36103d015cc8d76da53vboxsync# by setting APACHE_UNIPROC in the environment
df409c2a6d13641b0586a36103d015cc8d76da53vboxsync# If there is an NLM target, put it here
df409c2a6d13641b0586a36103d015cc8d76da53vboxsyncTARGET_nlm = $(OBJDIR)/$(NLM_NAME).nlm
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync# If there is an LIB target, put it here
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncTARGET_lib =
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync# These are the OBJ files needed to create the NLM target above.
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync# Paths must all use the '/' character
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncFILES_nlm_objs = \
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync# These are the LIB files needed to create the NLM target above.
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync# These will be added as a library command in the link.opt file.
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncFILES_nlm_libs = \
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync $(PRELUDE) \
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync# These are the modules that the above NLM target depends on to load.
d2c66e0925a76b3636d86b2afb2487fd6f956aebvboxsync# These will be added as a module command in the link.opt file.
7e7e2d15030a41a97b964b4dff6d61c84395d687vboxsyncFILES_nlm_modules = \
e62e26b69d90d1f29ad146c68606d95cf47340a4vboxsync# If the nlm has a msg file, put it's path here
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncFILE_nlm_msg =
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync# If the nlm has a hlp file put it's path here
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncFILE_nlm_hlp =
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync# If this is specified, it will override $(NWOS)\copyright.txt.
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncFILE_nlm_copyright =
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync# Any additional imports go here
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncFILES_nlm_Ximports = \
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync# Don't link with Winsock if standard sockets are being used
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncifndef USE_STDSOCKETS
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncFILES_nlm_Ximports += @ws2nlm.imp \
b1fd0840de05fc2e189d4ea55ba33c2d6b09a4d8vboxsync# Any symbols exported to here
7a006aff4af0ac1eaed18e272ecc9aeeaf41e4efvboxsyncFILES_nlm_exports = \
7a006aff4af0ac1eaed18e272ecc9aeeaf41e4efvboxsync proxy_express_module \
7a006aff4af0ac1eaed18e272ecc9aeeaf41e4efvboxsync# These are the OBJ files needed to create the LIB target above.
7a006aff4af0ac1eaed18e272ecc9aeeaf41e4efvboxsync# Paths must all use the '/' character
b1fd0840de05fc2e189d4ea55ba33c2d6b09a4d8vboxsyncFILES_lib_objs = \
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync# implement targets and dependancies (leave this section alone)
13fdd42f1fc3e519650037a920e6a54c24973866vboxsynclibs :: $(OBJDIR) $(TARGET_lib)
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncnlms :: libs $(TARGET_nlm)
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync# Updated this target to create necessary directories and copy files to the
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncinstall :: nlms FORCE
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync# Any specialized rules here
include $(APBUILD)/NWGNUtail.inc