NWGNUproxyhtp revision 8ffac2c334103c0336602aaede650cb578611151
73d62a89f1493865c33c689b3ee3de91c74ad58eDavid Lawrence# Make sure all needed macro's are defined
73d62a89f1493865c33c689b3ee3de91c74ad58eDavid Lawrence# Get the 'head' of the build environment if necessary. This includes default
73d62a89f1493865c33c689b3ee3de91c74ad58eDavid Lawrence# targets and paths to tools
73d62a89f1493865c33c689b3ee3de91c74ad58eDavid Lawrenceifndef EnvironmentDefined
73d62a89f1493865c33c689b3ee3de91c74ad58eDavid Lawrence# These directories will be at the beginning of the include list, followed by
ad883ba085bb02d6a05512e6ef89b638e0e77509Mark AndrewsXINCDIRS += \
ad883ba085bb02d6a05512e6ef89b638e0e77509Mark Andrews $(APR)/include \
904a5734375869ffb504ed8cde6b68cafadb6d64Bob Halley $(APRUTIL)/include \
904a5734375869ffb504ed8cde6b68cafadb6d64Bob Halley $(AP_WORK)/include \
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence# These flags will come after CFLAGS
92712379fc48fbfdb699b19db5322d56b7caa3b0David Lawrence# These defines will come after DEFINES
1630fce031f7a3e33f0579e477a3e17d1993e1f9Bob Halley# These flags will be added to the link.opt file
587fc7b519b0fed4e3dd234527edba1ca9334757David Lawrence# These values will be appended to the correct variables based on the value of
f036af2c718147408d738081cdb0a564b981b4cdDavid Lawrenceifeq "$(RELEASE)" "debug"
da1eb108c623ef351c4275251e8a906138da85b9David Lawrenceifeq "$(RELEASE)" "noopt"
5f50687f61057f7f0acb161d5803f4a48e40b3a8David Lawrenceifeq "$(RELEASE)" "release"
6d74580f08bfeaa8131421e641e371b014c7f10dDavid Lawrence# These are used by the link target if an NLM is being generated
6d74580f08bfeaa8131421e641e371b014c7f10dDavid Lawrence# This is used by the link 'name' directive to name the nlm. If left blank
6d74580f08bfeaa8131421e641e371b014c7f10dDavid Lawrence# TARGET_nlm (see below) will be used.
6d74580f08bfeaa8131421e641e371b014c7f10dDavid LawrenceNLM_NAME = proxyhtp
92712379fc48fbfdb699b19db5322d56b7caa3b0David Lawrence# This is used by the link '-desc ' directive.
92712379fc48fbfdb699b19db5322d56b7caa3b0David Lawrence# If left blank, NLM_NAME will be used.
92712379fc48fbfdb699b19db5322d56b7caa3b0David LawrenceNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy HTTP Sub-Module
92712379fc48fbfdb699b19db5322d56b7caa3b0David Lawrence# This is used by the '-threadname' directive. If left blank,
92712379fc48fbfdb699b19db5322d56b7caa3b0David Lawrence# NLM_NAME Thread will be used.
92712379fc48fbfdb699b19db5322d56b7caa3b0David LawrenceNLM_THREAD_NAME = Proxy HTTP Module
5f50687f61057f7f0acb161d5803f4a48e40b3a8David Lawrence# If this is specified, it will override VERSION value in
5f50687f61057f7f0acb161d5803f4a48e40b3a8David Lawrence# If this is specified, it will override the default of 64K
5f50687f61057f7f0acb161d5803f4a48e40b3a8David LawrenceNLM_STACK_SIZE = 8192
a7b730b8e957ad20410bdb1bcdae7a2330d1e917David Lawrence# If this is specified it will be used by the link '-entry' directive
a7b730b8e957ad20410bdb1bcdae7a2330d1e917David LawrenceNLM_ENTRY_SYM =
a7b730b8e957ad20410bdb1bcdae7a2330d1e917David Lawrence# If this is specified it will be used by the link '-exit' directive
5f50687f61057f7f0acb161d5803f4a48e40b3a8David LawrenceNLM_EXIT_SYM =
33950f0a0262f4d49528c4adcf8be42807fa2576David Lawrence# If this is specified it will be used by the link '-check' directive
92712379fc48fbfdb699b19db5322d56b7caa3b0David LawrenceNLM_CHECK_SYM =
92712379fc48fbfdb699b19db5322d56b7caa3b0David Lawrence# If these are specified it will be used by the link '-flags' directive
5f50687f61057f7f0acb161d5803f4a48e40b3a8David Lawrence# If this is specified it will be linked in with the XDCData option in the def
5f50687f61057f7f0acb161d5803f4a48e40b3a8David Lawrence# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
5f50687f61057f7f0acb161d5803f4a48e40b3a8David Lawrence# by setting APACHE_UNIPROC in the environment
5f50687f61057f7f0acb161d5803f4a48e40b3a8David Lawrence# If there is an NLM target, put it here
5f50687f61057f7f0acb161d5803f4a48e40b3a8David LawrenceTARGET_nlm = \
5f50687f61057f7f0acb161d5803f4a48e40b3a8David Lawrence# If there is an LIB target, put it here
a7b730b8e957ad20410bdb1bcdae7a2330d1e917David LawrenceTARGET_lib = \
92712379fc48fbfdb699b19db5322d56b7caa3b0David Lawrence# These are the OBJ files needed to create the NLM target above.
92712379fc48fbfdb699b19db5322d56b7caa3b0David Lawrence# Paths must all use the '/' character
a7b730b8e957ad20410bdb1bcdae7a2330d1e917David LawrenceFILES_nlm_objs = \
92712379fc48fbfdb699b19db5322d56b7caa3b0David Lawrence# These are the LIB files needed to create the NLM target above.
a7b730b8e957ad20410bdb1bcdae7a2330d1e917David Lawrence# These will be added as a library command in the link.opt file.
5f50687f61057f7f0acb161d5803f4a48e40b3a8David LawrenceFILES_nlm_libs = \
8d320be20ddb38e69d75d9a9486b0c7a80f18de7David Lawrence# These are the modules that the above NLM target depends on to load.
6d74580f08bfeaa8131421e641e371b014c7f10dDavid Lawrence# These will be added as a module command in the link.opt file.
6d74580f08bfeaa8131421e641e371b014c7f10dDavid LawrenceFILES_nlm_modules = \
cdd824cc88b48168a5c79ec9d3883df8fed074a6David Lawrence# If the nlm has a msg file, put it's path here
cdd824cc88b48168a5c79ec9d3883df8fed074a6David LawrenceFILE_nlm_msg =
cdd824cc88b48168a5c79ec9d3883df8fed074a6David Lawrence# If the nlm has a hlp file put it's path here
cdd824cc88b48168a5c79ec9d3883df8fed074a6David LawrenceFILE_nlm_hlp =
cdd824cc88b48168a5c79ec9d3883df8fed074a6David Lawrence# If this is specified, it will override $(NWOS)\copyright.txt.
cdd824cc88b48168a5c79ec9d3883df8fed074a6David LawrenceFILE_nlm_copyright =
cdd824cc88b48168a5c79ec9d3883df8fed074a6David Lawrence# Any additional imports go here
cdd824cc88b48168a5c79ec9d3883df8fed074a6David LawrenceFILES_nlm_Ximports = \
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence# Don't link with Winsock if standard sockets are being used
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrenceifndef USE_STDSOCKETS
f389bc2c9e9e434380e10221778b7b548612a67fDavid LawrenceFILES_nlm_Ximports += @ws2nlm.imp \
cdd824cc88b48168a5c79ec9d3883df8fed074a6David Lawrence# Any symbols exported to here
f389bc2c9e9e434380e10221778b7b548612a67fDavid LawrenceFILES_nlm_exports = \
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence proxy_http_module \
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence# These are the OBJ files needed to create the LIB target above.
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence# Paths must all use the '/' character
cdd824cc88b48168a5c79ec9d3883df8fed074a6David LawrenceFILES_lib_objs = \
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence# implement targets and dependancies (leave this section alone)
cdd824cc88b48168a5c79ec9d3883df8fed074a6David Lawrencelibs :: $(OBJDIR) $(TARGET_lib)
cdd824cc88b48168a5c79ec9d3883df8fed074a6David Lawrencenlms :: libs $(TARGET_nlm)
cdd824cc88b48168a5c79ec9d3883df8fed074a6David Lawrence# Updated this target to create necessary directories and copy files to the
cdd824cc88b48168a5c79ec9d3883df8fed074a6David Lawrence# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
cdd824cc88b48168a5c79ec9d3883df8fed074a6David Lawrenceinstall :: nlms FORCE
cdd824cc88b48168a5c79ec9d3883df8fed074a6David Lawrence# Any specialized rules here
8d320be20ddb38e69d75d9a9486b0c7a80f18de7David Lawrence# Include the 'tail' makefile that has targets that depend on variables defined
cdd824cc88b48168a5c79ec9d3883df8fed074a6David Lawrence# in this makefile
8d320be20ddb38e69d75d9a9486b0c7a80f18de7David Lawrenceinclude $(APBUILD)/NWGNUtail.inc