NWGNUproxy revision cd588d642536b8e9855306eb8b6075602e0707bc
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# Make sure all needed macro's are defined
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# Get the 'head' of the build environment if necessary. This includes default
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# targets and paths to tools
59dfe8e19f0909aa31ff10f1f003344fc620c1c5saschaifndef EnvironmentDefined
59dfe8e19f0909aa31ff10f1f003344fc620c1c5saschainclude $(AP_WORK)\build\NWGNUhead.inc
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# These directories will be at the beginning of the include list, followed by
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaXINCDIRS += \
6ca0e6973c8176100f4a426444823ae5e777e28fsascha $(AP_WORK)/include \
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# These flags will come after CFLAGS
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaXCFLAGS += \
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# These defines will come after DEFINES
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaXDEFINES += \
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# These flags will be added to the link.opt file
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaXLFLAGS += \
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# These values will be appended to the correct variables based on the value of
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaifeq "$(RELEASE)" "debug"
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsaschaXINCDIRS += \
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaXCFLAGS += \
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaXDEFINES += \
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaXLFLAGS += \
12b0070d002520b81a273ae892b9ea08e810b123rbbifeq "$(RELEASE)" "noopt"
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaXINCDIRS += \
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaXCFLAGS += \
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaXDEFINES += \
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaXLFLAGS += \
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaifeq "$(RELEASE)" "release"
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaXINCDIRS += \
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaXCFLAGS += \
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsaschaXDEFINES += \
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsaschaXLFLAGS += \
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# These are used by the link target if an NLM is being generated
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# This is used by the link 'name' directive to name the nlm. If left blank
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj# TARGET_nlm (see below) will be used.
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanojNLM_NAME = proxy
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj# This is used by the link '-desc ' directive.
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj# If left blank, NLM_NAME will be used.
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanojNLM_DESCRIPTION = Proxy Module
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj# This is used by the '-threadname' directive. If left blank,
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj# NLM_NAME Thread will be used.
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanojNLM_THREAD_NAME = Proxy Module
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj# If this is specified, it will override VERSION value in
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj# $(AP_WORK)\build\NWGNUenvironment.inc
aa811cad2eb3fc01d17a5c8eba274b915ab8cd20manojNLM_VERSION =
aa811cad2eb3fc01d17a5c8eba274b915ab8cd20manoj# If this is specified, it will override the default of 64K
aa811cad2eb3fc01d17a5c8eba274b915ab8cd20manojNLM_STACK_SIZE = 8192
5e02b58f37d5dcea1e75f35ed6b14cbb9af31a9amanoj# If this is specified it will be used by the link '-entry' directive
5e02b58f37d5dcea1e75f35ed6b14cbb9af31a9amanojNLM_ENTRY_SYM = _LibCPrelude
b9e4a86f22b3e8666186b9fe08e9241cdaf50d26manoj# If this is specified it will be used by the link '-exit' directive
aa811cad2eb3fc01d17a5c8eba274b915ab8cd20manojNLM_EXIT_SYM = _LibCPostlude
aa811cad2eb3fc01d17a5c8eba274b915ab8cd20manoj# If this is specified it will be used by the link '-check' directive
aa811cad2eb3fc01d17a5c8eba274b915ab8cd20manojNLM_CHECK_SYM =
aa811cad2eb3fc01d17a5c8eba274b915ab8cd20manoj# If these are specified it will be used by the link '-flags' directive
e6b0215ca481b00d658a0adfea378c36a67aa088trawickNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
e6b0215ca481b00d658a0adfea378c36a67aa088trawick# If this is specified it will be linked in with the XDCData option in the def
e6b0215ca481b00d658a0adfea378c36a67aa088trawick# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
aa811cad2eb3fc01d17a5c8eba274b915ab8cd20manoj# by setting APACHE_UNIPROC in the environment
b9e4a86f22b3e8666186b9fe08e9241cdaf50d26manoj# If there is an NLM target, put it here
d6baa4df51dd4759e4a7d26d3c864d7ef20e08bcmanojTARGET_nlm = \
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj# If there is an LIB target, put it here
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanojTARGET_lib = \
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj# These are the OBJ files needed to create the NLM target above.
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj# Paths must all use the '/' character
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanojFILES_nlm_objs = \
0f47ee3ae8ede113e11f21bf34f3b11161d3e61drasmus# These are the LIB files needed to create the NLM target above.
0f47ee3ae8ede113e11f21bf34f3b11161d3e61drasmus# These will be added as a library command in the link.opt file.
0f47ee3ae8ede113e11f21bf34f3b11161d3e61drasmusFILES_nlm_libs = \
561c0e65ea8f64d174139f090516b015ca100f84sascha# These are the modules that the above NLM target depends on to load.
561c0e65ea8f64d174139f090516b015ca100f84sascha# These will be added as a module command in the link.opt file.
0f47ee3ae8ede113e11f21bf34f3b11161d3e61drasmusFILES_nlm_modules = \
0f47ee3ae8ede113e11f21bf34f3b11161d3e61drasmus# If the nlm has a msg file, put it's path here
0f47ee3ae8ede113e11f21bf34f3b11161d3e61drasmusFILE_nlm_msg =
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# If the nlm has a hlp file put it's path here
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaFILE_nlm_hlp =
0f47ee3ae8ede113e11f21bf34f3b11161d3e61drasmus# If this is specified, it will override $(NWOS)\copyright.txt.
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaFILE_nlm_copyright =
24ddb55dbca6d3f51008a93fe976eb72ce8f95edsascha# Any additional imports go here
24ddb55dbca6d3f51008a93fe976eb72ce8f95edsaschaFILES_nlm_Ximports = \
24ddb55dbca6d3f51008a93fe976eb72ce8f95edsascha# Any symbols exported to here
24ddb55dbca6d3f51008a93fe976eb72ce8f95edsaschaFILES_nlm_exports = \
24ddb55dbca6d3f51008a93fe976eb72ce8f95edsascha proxy_module \
24ddb55dbca6d3f51008a93fe976eb72ce8f95edsascha proxy_hook_scheme_handler \
24ddb55dbca6d3f51008a93fe976eb72ce8f95edsascha proxy_hook_canon_handler \
24ddb55dbca6d3f51008a93fe976eb72ce8f95edsascha ap_proxy_ssl_enable \
6ca0e6973c8176100f4a426444823ae5e777e28fsascha ap_proxy_ssl_disable \
6ca0e6973c8176100f4a426444823ae5e777e28fsascha proxy_run_fixups \
7bc4c6186a0708f48fdfe60130f53403e66bd3d6martin# These are the OBJ files needed to create the LIB target above.
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# Paths must all use the '/' character
7bc4c6186a0708f48fdfe60130f53403e66bd3d6martinFILES_lib_objs = \
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# implement targets and dependancies (leave this section alone)
6ca0e6973c8176100f4a426444823ae5e777e28fsaschalibs :: $(OBJDIR) $(TARGET_lib)
6ca0e6973c8176100f4a426444823ae5e777e28fsaschanlms :: libs $(TARGET_nlm)
7bc4c6186a0708f48fdfe60130f53403e66bd3d6martin# Updated this target to create necessary directories and copy files to the
7bc4c6186a0708f48fdfe60130f53403e66bd3d6martin# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
0f47ee3ae8ede113e11f21bf34f3b11161d3e61drasmusinstall :: nlms FORCE
e2f1d8336d48264cf7715e104b1a69bac57bcbfctrawick# Any specialized rules here
e2f1d8336d48264cf7715e104b1a69bac57bcbfctrawick @echo compiling $<
e2f1d8336d48264cf7715e104b1a69bac57bcbfctrawick $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
e2f1d8336d48264cf7715e104b1a69bac57bcbfctrawick# Include the 'tail' makefile that has targets that depend on variables defined
e2f1d8336d48264cf7715e104b1a69bac57bcbfctrawick# in this makefile
e2f1d8336d48264cf7715e104b1a69bac57bcbfctrawickinclude $(AP_WORK)\build\NWGNUtail.inc