NWGNUmakefile revision 5716f9c6daa92dde5f2f9d11ed63f7c9549c223a
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye#
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye# Define our required macro's if not already done.
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye#
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbyeifndef AP_WORK
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbyeexport AP_WORK = $(CURDIR)
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbyeendif
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbyeifndef APR_WORK
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbyeifeq "$(wildcard $(AP_WORK)/srclib/apr)" "$(AP_WORK)/srclib/apr"
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbyeexport APR_WORK = $(AP_WORK)/srclib/apr
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbyeendif
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbyeendif
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbyeifneq "$(wildcard $(APR_WORK)/include/apr_version.h)" "$(APR_WORK)/include/apr_version.h"
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye$(error APR_WORK does not point to a valid APR source tree)
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbyeendif
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbyeifndef APU_WORK
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbyeifeq "$(wildcard $(AP_WORK)/srclib/apr-util)" "$(AP_WORK)/srclib/apr-util"
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbyeexport APU_WORK = $(AP_WORK)/srclib/apr-util
01f9a93a99959e8614f8ac3e0f41e17ce84184a7Knut Anders Hatlenendif
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbyeendif
01f9a93a99959e8614f8ac3e0f41e17ce84184a7Knut Anders Hatlenifndef APU_WORK
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbyeifeq "$(wildcard $(APR_WORK)/include/apu_version.h)" "$(APR_WORK)/include/apu_version.h"
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbyeexport APU_WORK = $(APR_WORK)
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbyeendif
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbyeendif
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbyeifneq "$(wildcard $(APU_WORK)/include/apu_version.h)" "$(APU_WORK)/include/apu_version.h"
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye$(error APU_WORK does not point to a valid APU source tree)
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbyeendif
8739a8f4d16d06ac76f16ec8b80837cfd2448490Trond Norbye
854585887bca366ee433303cae0e99572240a568Trond Norbye#
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner# Declare the sub-directories to be built here
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye#
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye
20a0bde399487a651cdeb66fc8b44b2212036355Trond NorbyeSUBDIRS = \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(APR_WORK) \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye build \
854585887bca366ee433303cae0e99572240a568Trond Norbye support \
8739a8f4d16d06ac76f16ec8b80837cfd2448490Trond Norbye modules \
bfb054a567cb4af250de4c052934c9541b1cd7faTrond Norbye $(EOLIST)
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye#
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye# Get the 'head' of the build environment. This includes default targets and
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye# paths to tools
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye#
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbyeinclude $(AP_WORK)/build/NWGNUhead.inc
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye#
ef04451832b2553303ae511b4c09ed332eb4c06aKnut Anders Hatlen# build this level's files
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye#
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye# Make sure all needed macro's are defined
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye#
e372bd6df6fcf2bc7f7c925fe702a9e62fd7c466Trond Norbye
2aef10a5d2ebeaeb6b9cb6fed41933d19a76292fTrond Norbye#
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner# These directories will be at the beginning of the include list, followed by
ff5eba819da0cf7964d884630fb13262ef12c505Trond Norbye# INCDIRS
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner#
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens ElknerXINCDIRS += \
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner $(APR)/include \
8247ba75ae77540a334b19527df7d963265c590bTrond Norbye $(APRUTIL)/include \
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner $(SRC)/include \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(STDMOD)/core \
f60d84bfe9ece4779c642dfe4849acd35ade9388Trond Norbye $(STDMOD)/filters \
f60d84bfe9ece4779c642dfe4849acd35ade9388Trond Norbye $(STDMOD)/generators \
3bd91b9bbb9915421b772c357165fbc6fdeaf286Trond Norbye $(STDMOD)/proxy \
f60d84bfe9ece4779c642dfe4849acd35ade9388Trond Norbye $(NWOS) \
f60d84bfe9ece4779c642dfe4849acd35ade9388Trond Norbye $(EOLIST)
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye
bd4999e099547832430739402d07284e957f32ddTrond Norbye#
bd4999e099547832430739402d07284e957f32ddTrond Norbye# These flags will come after CFLAGS
bd4999e099547832430739402d07284e957f32ddTrond Norbye#
20a0bde399487a651cdeb66fc8b44b2212036355Trond NorbyeXCFLAGS += \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye -DHAVE_CONFIG_H \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(EOLIST)
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye#
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye# These defines will come after DEFINES
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye#
20a0bde399487a651cdeb66fc8b44b2212036355Trond NorbyeXDEFINES += \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(EOLIST)
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye
8247ba75ae77540a334b19527df7d963265c590bTrond Norbye#
8247ba75ae77540a334b19527df7d963265c590bTrond Norbye# These flags will be added to the link.opt file
cfb5c66ccd74f4bcab7168acea8daec98f1b39e7Jorgen Austvik#
cfb5c66ccd74f4bcab7168acea8daec98f1b39e7Jorgen AustvikXLFLAGS += \
cfb5c66ccd74f4bcab7168acea8daec98f1b39e7Jorgen Austvik $(EOLIST)
8247ba75ae77540a334b19527df7d963265c590bTrond Norbye
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner#
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner# These values will be appended to the correct variables based on the value of
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner# RELEASE
01f9a93a99959e8614f8ac3e0f41e17ce84184a7Knut Anders Hatlen#
bd4999e099547832430739402d07284e957f32ddTrond Norbyeifeq "$(RELEASE)" "debug"
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens ElknerXINCDIRS += \
bd4999e099547832430739402d07284e957f32ddTrond Norbye $(EOLIST)
bd4999e099547832430739402d07284e957f32ddTrond Norbye
20a0bde399487a651cdeb66fc8b44b2212036355Trond NorbyeXCFLAGS += \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(EOLIST)
bd4999e099547832430739402d07284e957f32ddTrond Norbye
bd4999e099547832430739402d07284e957f32ddTrond NorbyeXDEFINES += \
bd4999e099547832430739402d07284e957f32ddTrond Norbye $(EOLIST)
bd4999e099547832430739402d07284e957f32ddTrond Norbye
bd4999e099547832430739402d07284e957f32ddTrond NorbyeXLFLAGS += \
bd4999e099547832430739402d07284e957f32ddTrond Norbye $(EOLIST)
bd4999e099547832430739402d07284e957f32ddTrond Norbyeendif
ff5eba819da0cf7964d884630fb13262ef12c505Trond Norbye
829364a12c7569fb058d84e5dbe0feabd1936212Jens Elknerifeq "$(RELEASE)" "noopt"
2d88edb5c825cab31add43e4ab3bea7a8f27500eJorgen AustvikXINCDIRS += \
829364a12c7569fb058d84e5dbe0feabd1936212Jens Elkner $(EOLIST)
829364a12c7569fb058d84e5dbe0feabd1936212Jens Elkner
ff5eba819da0cf7964d884630fb13262ef12c505Trond NorbyeXCFLAGS += \
829364a12c7569fb058d84e5dbe0feabd1936212Jens Elkner $(EOLIST)
bd4999e099547832430739402d07284e957f32ddTrond Norbye
2d88edb5c825cab31add43e4ab3bea7a8f27500eJorgen AustvikXDEFINES += \
2d88edb5c825cab31add43e4ab3bea7a8f27500eJorgen Austvik $(EOLIST)
2d88edb5c825cab31add43e4ab3bea7a8f27500eJorgen Austvik
2d88edb5c825cab31add43e4ab3bea7a8f27500eJorgen AustvikXLFLAGS += \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(EOLIST)
ff5eba819da0cf7964d884630fb13262ef12c505Trond Norbyeendif
829364a12c7569fb058d84e5dbe0feabd1936212Jens Elkner
bd4999e099547832430739402d07284e957f32ddTrond Norbyeifeq "$(RELEASE)" "release"
bd4999e099547832430739402d07284e957f32ddTrond NorbyeXINCDIRS += \
829364a12c7569fb058d84e5dbe0feabd1936212Jens Elkner $(EOLIST)
ff5eba819da0cf7964d884630fb13262ef12c505Trond Norbye
bd4999e099547832430739402d07284e957f32ddTrond NorbyeXCFLAGS += \
ff5eba819da0cf7964d884630fb13262ef12c505Trond Norbye $(EOLIST)
829364a12c7569fb058d84e5dbe0feabd1936212Jens Elkner
bd4999e099547832430739402d07284e957f32ddTrond NorbyeXDEFINES += \
ff5eba819da0cf7964d884630fb13262ef12c505Trond Norbye $(EOLIST)
829364a12c7569fb058d84e5dbe0feabd1936212Jens Elkner
bd4999e099547832430739402d07284e957f32ddTrond NorbyeXLFLAGS += \
ff5eba819da0cf7964d884630fb13262ef12c505Trond Norbye $(EOLIST)
829364a12c7569fb058d84e5dbe0feabd1936212Jens Elknerendif
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye
bd4999e099547832430739402d07284e957f32ddTrond Norbye#
829364a12c7569fb058d84e5dbe0feabd1936212Jens Elkner# These are used by the link target if an NLM is being generated
829364a12c7569fb058d84e5dbe0feabd1936212Jens Elkner# This is used by the link 'name' directive to name the nlm. If left blank
829364a12c7569fb058d84e5dbe0feabd1936212Jens Elkner# TARGET_nlm (see below) will be used.
8247ba75ae77540a334b19527df7d963265c590bTrond Norbye#
01f9a93a99959e8614f8ac3e0f41e17ce84184a7Knut Anders HatlenNLM_NAME = Apache2
295cb3c51b4c633bd2d600d387237be51c11375aTrond Norbye
8247ba75ae77540a334b19527df7d963265c590bTrond Norbye#
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye# This is used by the link '-desc ' directive.
8247ba75ae77540a334b19527df7d963265c590bTrond Norbye# If left blank, NLM_NAME will be used.
bd4999e099547832430739402d07284e957f32ddTrond Norbye#
68a986af15f28e9fd0bdcac5af761097740b21aaJorgen AustvikNLM_DESCRIPTION = Apache Web Server $(VERSION_STR) $(VERSION_SKT)
68a986af15f28e9fd0bdcac5af761097740b21aaJorgen Austvik
ff5eba819da0cf7964d884630fb13262ef12c505Trond Norbye#
68a986af15f28e9fd0bdcac5af761097740b21aaJorgen Austvik# This is used by the '-threadname' directive. If left blank,
d5892f6c63fd9586a79b0d75228e5cbcf1dfd8c4Knut Anders Hatlen# NLM_NAME Thread will be used.
d5892f6c63fd9586a79b0d75228e5cbcf1dfd8c4Knut Anders Hatlen#
68a986af15f28e9fd0bdcac5af761097740b21aaJorgen AustvikNLM_THREAD_NAME = $(NLM_NAME)
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye
d5892f6c63fd9586a79b0d75228e5cbcf1dfd8c4Knut Anders Hatlen#
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye# This is used by the '-screenname' directive. If left blank,
68a986af15f28e9fd0bdcac5af761097740b21aaJorgen Austvik# 'Apache for NetWare' Thread will be used.
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye#
20a0bde399487a651cdeb66fc8b44b2212036355Trond NorbyeNLM_SCREEN_NAME = Apache $(VERSION_STR) for NetWare
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye
bd4999e099547832430739402d07284e957f32ddTrond Norbye
68a986af15f28e9fd0bdcac5af761097740b21aaJorgen Austvik#
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner# If this is specified, it will override VERSION value in
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner# $(AP_WORK)/build/NWGNUenvironment.inc
68a986af15f28e9fd0bdcac5af761097740b21aaJorgen Austvik#
7b03878fed77297f29a4744cff129e11f7053681Trond NorbyeNLM_VERSION =
7b03878fed77297f29a4744cff129e11f7053681Trond Norbye
68a986af15f28e9fd0bdcac5af761097740b21aaJorgen Austvik#
68a986af15f28e9fd0bdcac5af761097740b21aaJorgen Austvik# If this is specified, it will override the default of 64K
d5892f6c63fd9586a79b0d75228e5cbcf1dfd8c4Knut Anders Hatlen#
d5892f6c63fd9586a79b0d75228e5cbcf1dfd8c4Knut Anders HatlenNLM_STACK_SIZE = 65536
d5892f6c63fd9586a79b0d75228e5cbcf1dfd8c4Knut Anders Hatlen
d5892f6c63fd9586a79b0d75228e5cbcf1dfd8c4Knut Anders Hatlen
d5892f6c63fd9586a79b0d75228e5cbcf1dfd8c4Knut Anders Hatlen#
d5892f6c63fd9586a79b0d75228e5cbcf1dfd8c4Knut Anders Hatlen# If this is specified it will be used by the link '-entry' directive
d5892f6c63fd9586a79b0d75228e5cbcf1dfd8c4Knut Anders Hatlen#
d5892f6c63fd9586a79b0d75228e5cbcf1dfd8c4Knut Anders HatlenNLM_ENTRY_SYM =
53d97c6b486ac2333d564e7497bf1f420f349168Trond Norbye
68a986af15f28e9fd0bdcac5af761097740b21aaJorgen Austvik#
bd4999e099547832430739402d07284e957f32ddTrond Norbye# If this is specified it will be used by the link '-exit' directive
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye#
8247ba75ae77540a334b19527df7d963265c590bTrond NorbyeNLM_EXIT_SYM =
2aef10a5d2ebeaeb6b9cb6fed41933d19a76292fTrond Norbye
829364a12c7569fb058d84e5dbe0feabd1936212Jens Elkner#
829364a12c7569fb058d84e5dbe0feabd1936212Jens Elkner# If this is specified it will be used by the link '-check' directive
f047d5a360b7e2a2d0f3f72611a1cee970baa6fcTrond Norbye#
f047d5a360b7e2a2d0f3f72611a1cee970baa6fcTrond NorbyeNLM_CHECK_SYM = _LibCCheckUnload
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye#
829364a12c7569fb058d84e5dbe0feabd1936212Jens Elkner# If these are specified it will be used by the link '-flags' directive
829364a12c7569fb058d84e5dbe0feabd1936212Jens Elkner#
f047d5a360b7e2a2d0f3f72611a1cee970baa6fcTrond NorbyeNLM_FLAGS = PSEUDOPREEMPTION
bd4999e099547832430739402d07284e957f32ddTrond Norbye
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner#
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner# If this is specified it will be linked in with the XDCData option in the def
bd4999e099547832430739402d07284e957f32ddTrond Norbye# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
bd4999e099547832430739402d07284e957f32ddTrond Norbye# by setting APACHE_UNIPROC in the environment
bd4999e099547832430739402d07284e957f32ddTrond Norbye#
53d97c6b486ac2333d564e7497bf1f420f349168Trond NorbyeXDCDATA =
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye
bd4999e099547832430739402d07284e957f32ddTrond Norbye#
bd4999e099547832430739402d07284e957f32ddTrond Norbye# If there is an NLM target, put it here
bd4999e099547832430739402d07284e957f32ddTrond Norbye#
20a0bde399487a651cdeb66fc8b44b2212036355Trond NorbyeTARGET_nlm = \
f047d5a360b7e2a2d0f3f72611a1cee970baa6fcTrond Norbye $(OBJDIR)/$(NLM_NAME).nlm \
f047d5a360b7e2a2d0f3f72611a1cee970baa6fcTrond Norbye $(EOLIST)
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye
8247ba75ae77540a334b19527df7d963265c590bTrond Norbye#
998bdbc74fee32f35e3130fe3dbc332b06865b80Knut Anders Hatlen# If there is an LIB target, put it here
998bdbc74fee32f35e3130fe3dbc332b06865b80Knut Anders Hatlen#
998bdbc74fee32f35e3130fe3dbc332b06865b80Knut Anders HatlenTARGET_lib = \
998bdbc74fee32f35e3130fe3dbc332b06865b80Knut Anders Hatlen $(PCRELIB) \
998bdbc74fee32f35e3130fe3dbc332b06865b80Knut Anders Hatlen $(EOLIST)
998bdbc74fee32f35e3130fe3dbc332b06865b80Knut Anders Hatlen
998bdbc74fee32f35e3130fe3dbc332b06865b80Knut Anders Hatlen#
d5892f6c63fd9586a79b0d75228e5cbcf1dfd8c4Knut Anders Hatlen# These are the OBJ files needed to create the NLM target above.
d5892f6c63fd9586a79b0d75228e5cbcf1dfd8c4Knut Anders Hatlen# Paths must all use the '/' character
d5892f6c63fd9586a79b0d75228e5cbcf1dfd8c4Knut Anders Hatlen#
d5892f6c63fd9586a79b0d75228e5cbcf1dfd8c4Knut Anders HatlenFILES_nlm_objs = \
d5892f6c63fd9586a79b0d75228e5cbcf1dfd8c4Knut Anders Hatlen $(OBJDIR)/apreq_cookie.o \
d5892f6c63fd9586a79b0d75228e5cbcf1dfd8c4Knut Anders Hatlen $(OBJDIR)/apreq_error.o \
d5892f6c63fd9586a79b0d75228e5cbcf1dfd8c4Knut Anders Hatlen $(OBJDIR)/apreq_module.o \
998bdbc74fee32f35e3130fe3dbc332b06865b80Knut Anders Hatlen $(OBJDIR)/apreq_module_cgi.o \
998bdbc74fee32f35e3130fe3dbc332b06865b80Knut Anders Hatlen $(OBJDIR)/apreq_module_custom.o \
53d97c6b486ac2333d564e7497bf1f420f349168Trond Norbye $(OBJDIR)/apreq_param.o \
1f2d6fc11f9b8f8abfd17f019c9a5d7eacdade6fTrond Norbye $(OBJDIR)/apreq_parser.o \
1f2d6fc11f9b8f8abfd17f019c9a5d7eacdade6fTrond Norbye $(OBJDIR)/apreq_parser_header.o \
1f2d6fc11f9b8f8abfd17f019c9a5d7eacdade6fTrond Norbye $(OBJDIR)/apreq_parser_multipart.o \
53d97c6b486ac2333d564e7497bf1f420f349168Trond Norbye $(OBJDIR)/apreq_parser_urlencoded.o \
53d97c6b486ac2333d564e7497bf1f420f349168Trond Norbye $(OBJDIR)/apreq_util.o \
53d97c6b486ac2333d564e7497bf1f420f349168Trond Norbye $(OBJDIR)/buildmark.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/config.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/connection.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/core.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/core_filters.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/eoc_bucket.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/eor_bucket.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/error_bucket.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/http_core.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/http_protocol.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/http_request.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/byterange_filter.o \
8247ba75ae77540a334b19527df7d963265c590bTrond Norbye $(OBJDIR)/chunk_filter.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/http_etag.o \
ff5eba819da0cf7964d884630fb13262ef12c505Trond Norbye $(OBJDIR)/http_filters.o \
829364a12c7569fb058d84e5dbe0feabd1936212Jens Elkner $(OBJDIR)/listen.o \
829364a12c7569fb058d84e5dbe0feabd1936212Jens Elkner $(OBJDIR)/log.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/main.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/mod_authn_core.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/mod_authz_core.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/mod_authz_host.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/mod_alias.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/mod_dir.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/mod_env.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/mod_include.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/mod_log_config.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/mod_mime.o \
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner $(OBJDIR)/mod_negotiation.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/mod_netware.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/mod_setenvif.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/mod_so.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/mod_watchdog.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/modules.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/mpm_common.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/mpm_netware.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/protocol.o \
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner $(OBJDIR)/provider.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/request.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/scoreboard.o \
8247ba75ae77540a334b19527df7d963265c590bTrond Norbye $(OBJDIR)/util.o \
8247ba75ae77540a334b19527df7d963265c590bTrond Norbye $(OBJDIR)/util_cfgtree.o \
2aef10a5d2ebeaeb6b9cb6fed41933d19a76292fTrond Norbye $(OBJDIR)/util_charset.o \
5bb5351df1d00de040b15f5361d91b4e2c0bbde2Jorgen Austvik $(OBJDIR)/util_cookies.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/util_debug.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/util_expr_eval.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/util_expr_parse.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/util_expr_scan.o \
eb80c2082e2c8f61acc964d2b09e53e1efec2f0dTrond Norbye $(OBJDIR)/util_fcgi.o \
eb80c2082e2c8f61acc964d2b09e53e1efec2f0dTrond Norbye $(OBJDIR)/util_filter.o \
eb80c2082e2c8f61acc964d2b09e53e1efec2f0dTrond Norbye $(OBJDIR)/util_md5.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/util_mutex.o \
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye $(OBJDIR)/util_nw.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/util_pcre.o \
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner $(OBJDIR)/util_regex.o \
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner $(OBJDIR)/util_script.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/util_time.o \
7b03878fed77297f29a4744cff129e11f7053681Trond Norbye $(OBJDIR)/util_xml.o \
7b03878fed77297f29a4744cff129e11f7053681Trond Norbye $(OBJDIR)/vhost.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(EOLIST)
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye# Build in mod_nw_ssl if Winsock is being used
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbyeifndef USE_STDSOCKETS
20a0bde399487a651cdeb66fc8b44b2212036355Trond NorbyeFILES_nlm_objs += $(OBJDIR)/mod_nw_ssl.o \
53d97c6b486ac2333d564e7497bf1f420f349168Trond Norbye $(EOLIST)
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbyeendif
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye#
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye# These are the LIB files needed to create the NLM target above.
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye# These will be added as a library command in the link.opt file.
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye#
20a0bde399487a651cdeb66fc8b44b2212036355Trond NorbyeFILES_nlm_libs = \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(PCRELIB) \
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye $(PRELUDE) \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(EOLIST)
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye#
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye# These are the modules that the above NLM target depends on to load.
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye# These will be added as a module command in the link.opt file.
ff5eba819da0cf7964d884630fb13262ef12c505Trond Norbye#
829364a12c7569fb058d84e5dbe0feabd1936212Jens ElknerFILES_nlm_modules = \
8247ba75ae77540a334b19527df7d963265c590bTrond Norbye aprlib \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye Libc \
bfb054a567cb4af250de4c052934c9541b1cd7faTrond Norbye $(EOLIST)
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye#
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye# If the nlm has a msg file, put it's path here
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye#
20a0bde399487a651cdeb66fc8b44b2212036355Trond NorbyeFILE_nlm_msg =
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye#
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye# If the nlm has a hlp file put it's path here
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye#
20a0bde399487a651cdeb66fc8b44b2212036355Trond NorbyeFILE_nlm_hlp =
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye#
2aef10a5d2ebeaeb6b9cb6fed41933d19a76292fTrond Norbye# If this is specified, it will override $(NWOS)\copyright.txt.
de2f9abe4afc7a653423d6d072b7c6a68b16fe1fPeter Bray#
f75cb11e9d95b4d9ec959f890eeab3c442215b24Trond NorbyeFILE_nlm_copyright =
f75cb11e9d95b4d9ec959f890eeab3c442215b24Trond Norbye
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye#
2aef10a5d2ebeaeb6b9cb6fed41933d19a76292fTrond Norbye# Any additional imports go here
1088c21d4f10d85cf7094adbd80c4b9697e833a9Dan Price#
61910105f4f96902cf0a54ce28e84dc034c611f6Jorgen AustvikFILES_nlm_Ximports = \
1088c21d4f10d85cf7094adbd80c4b9697e833a9Dan Price @aprlib.imp \
1088c21d4f10d85cf7094adbd80c4b9697e833a9Dan Price @libc.imp \
1088c21d4f10d85cf7094adbd80c4b9697e833a9Dan Price @netware.imp \
1088c21d4f10d85cf7094adbd80c4b9697e833a9Dan Price GetCurrentAddressSpace \
f48d6dd4aa39d11c2b9b52806cdd731fba8a1778Trond Norbye $(EOLIST)
2aef10a5d2ebeaeb6b9cb6fed41933d19a76292fTrond Norbye
5bb5351df1d00de040b15f5361d91b4e2c0bbde2Jorgen Austvik# Don't link with Winsock if standard sockets are being used
8739a8f4d16d06ac76f16ec8b80837cfd2448490Trond Norbyeifndef USE_STDSOCKETS
20a0bde399487a651cdeb66fc8b44b2212036355Trond NorbyeFILES_nlm_Ximports += @ws2nlm.imp \
8739a8f4d16d06ac76f16ec8b80837cfd2448490Trond Norbye $(EOLIST)
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elknerendif
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner
8739a8f4d16d06ac76f16ec8b80837cfd2448490Trond Norbye#
7b03878fed77297f29a4744cff129e11f7053681Trond Norbye# Any symbols exported to here
7b03878fed77297f29a4744cff129e11f7053681Trond Norbye#
8739a8f4d16d06ac76f16ec8b80837cfd2448490Trond NorbyeFILES_nlm_exports = \
8739a8f4d16d06ac76f16ec8b80837cfd2448490Trond Norbye @httpd.imp \
8739a8f4d16d06ac76f16ec8b80837cfd2448490Trond Norbye $(EOLIST)
f48d6dd4aa39d11c2b9b52806cdd731fba8a1778Trond Norbye
f48d6dd4aa39d11c2b9b52806cdd731fba8a1778Trond Norbye#
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye# These are the OBJ files needed to create the LIB target above.
cfb5c66ccd74f4bcab7168acea8daec98f1b39e7Jorgen Austvik# Paths must all use the '/' character
bd4999e099547832430739402d07284e957f32ddTrond Norbye#
9088add4cb246b415c19479e94c10f0281d6c92fLubos Koscoifeq "$(wildcard $(PCRE)/pcre.c)" "$(PCRE)/pcre.c"
cfb5c66ccd74f4bcab7168acea8daec98f1b39e7Jorgen Austvik
cfb5c66ccd74f4bcab7168acea8daec98f1b39e7Jorgen AustvikFILES_lib_objs = \
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner $(OBJDIR)/pcre.o \
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner $(EOLIST)
cfb5c66ccd74f4bcab7168acea8daec98f1b39e7Jorgen Austvik
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbyeelse
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye
084d8d9422752d25f3cb527fa8fcf226cc004bc3Trond NorbyeFILES_lib_objs = \
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner $(OBJDIR)/chartables.o \
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner $(OBJDIR)/pcre_compile.o \
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner $(OBJDIR)/pcre_exec.o \
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner $(OBJDIR)/pcre_fullinfo.o \
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner $(OBJDIR)/pcre_globals.o \
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye $(OBJDIR)/pcre_newline.o \
f75cb11e9d95b4d9ec959f890eeab3c442215b24Trond Norbye $(OBJDIR)/pcre_tables.o \
$(OBJDIR)/pcre_version.o \
$(EOLIST)
ifeq "$(wildcard $(PCRE)/pcre_try_flipped.c)" "$(PCRE)/pcre_try_flipped.c"
FILES_lib_objs += \
$(OBJDIR)/pcre_try_flipped.o \
$(EOLIST)
endif
endif
#
# implement targets and dependancies (leave this section alone)
#
libs :: $(OBJDIR) $(TARGET_lib)
nlms :: libs $(TARGET_nlm)
#
# Updated this target to create necessary directories and copy files to the
# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
#
MKCNF = $(AWK) -v BDIR=$(BASEDIR) -v PORT=$(PORT) -v SSLPORT=$(SSLPORT) -v MODSSL=$(WITH_SSL) -v BSDSKT=$(USE_STDSOCKETS) -f build/mkconfNW.awk $1 > $2
install :: nlms instscripts FORCE
$(call COPY,$(OBJDIR)/$(NLM_NAME).nlm, $(INSTALLBASE)/)
$(call COPY,ABOUT_APACHE, $(INSTALLBASE)/)
$(call COPY,CHANGES, $(INSTALLBASE)/)
$(call COPY,LICENSE, $(INSTALLBASE)/)
$(call COPY,README, $(INSTALLBASE)/)
$(call COPY,VERSIONING, $(INSTALLBASE)/)
$(call COPY,STATUS, $(INSTALLBASE)/)
$(call COPY,support/dbmmanage.in, $(INSTALLBASE)/bin/dbmmanage.pl)
$(call COPY,support/logresolve.pl.in, $(INSTALLBASE)/bin/logresolve.pl)
$(call COPY,support/split-logfile.in, $(INSTALLBASE)/bin/split-logfile.pl)
$(call COPY,support/check_forensic, $(INSTALLBASE)/bin/check_forensic.sh)
$(call COPY,docs/conf/magic, $(INSTALLBASE)/conf/)
$(call COPY,docs/conf/mime.types, $(INSTALLBASE)/conf/)
$(call COPY,docs/conf/charset.conv, $(INSTALLBASE)/conf/)
$(call COPY,docs/cgi-examples/printenv, $(INSTALLBASE)/cgi-bin/printenv.pl)
$(call MKCNF,docs/conf/httpd.conf.in, $(INSTALLBASE)/conf/httpd.conf)
$(call MKCNF,docs/conf/extra/httpd-autoindex.conf.in, $(INSTALLBASE)/conf/extra/httpd-autoindex.conf)
$(call MKCNF,docs/conf/extra/httpd-dav.conf.in, $(INSTALLBASE)/conf/extra/httpd-dav.conf)
$(call MKCNF,docs/conf/extra/httpd-default.conf.in, $(INSTALLBASE)/conf/extra/httpd-default.conf)
$(call MKCNF,docs/conf/extra/httpd-info.conf.in, $(INSTALLBASE)/conf/extra/httpd-info.conf)
$(call MKCNF,docs/conf/extra/httpd-languages.conf.in, $(INSTALLBASE)/conf/extra/httpd-languages.conf)
$(call MKCNF,docs/conf/extra/httpd-macro.conf.in, $(INSTALLBASE)/conf/extra/httpd-macro.conf)
$(call MKCNF,docs/conf/extra/httpd-manual.conf.in, $(INSTALLBASE)/conf/extra/httpd-manual.conf)
$(call MKCNF,docs/conf/extra/httpd-mpm.conf.in, $(INSTALLBASE)/conf/extra/httpd-mpm.conf)
$(call MKCNF,docs/conf/extra/httpd-multilang-errordoc.conf.in, $(INSTALLBASE)/conf/extra/httpd-multilang-errordoc.conf)
$(call MKCNF,docs/conf/extra/httpd-userdir.conf.in, $(INSTALLBASE)/conf/extra/httpd-userdir.conf)
$(call MKCNF,docs/conf/extra/httpd-vhosts.conf.in, $(INSTALLBASE)/conf/extra/httpd-vhosts.conf)
$(call MKCNF,docs/conf/extra/httpd-policy.conf.in, $(INSTALLBASE)/conf/extra/httpd-policy.conf)
$(call MKCNF,docs/conf/extra/httpd-ssl.conf.in, $(INSTALLBASE)/conf/extra/httpd-ssl.conf)
$(call MKCNF,docs/conf/extra/proxy-html.conf.in, $(INSTALLBASE)/conf/extra/proxy-html.conf)
$(call COPYR,docs/docroot, $(INSTALLBASE)/htdocs)
$(call COPYR,docs/error, $(INSTALLBASE)/error)
$(call COPYR,docs/icons, $(INSTALLBASE)/icons)
$(call COPYR,docs/man, $(INSTALLBASE)/man)
$(call COPYR,docs/manual, $(INSTALLBASE)/manual)
installdev :: FORCE
$(call COPY,$(SRC)/include/*.h, $(INSTALLBASE)/include/)
$(call COPY,$(NWOS)/*.h, $(INSTALLBASE)/include/)
$(call COPY,$(APR)/include/*.h, $(INSTALLBASE)/include/)
$(call COPY,$(APRUTIL)/include/*.h, $(INSTALLBASE)/include/)
$(call COPY,$(STDMOD)/core/mod_so.h, $(INSTALLBASE)/include/)
$(call COPY,$(STDMOD)/core/mod_watchdog.h, $(INSTALLBASE)/include/)
$(call COPY,$(STDMOD)/cache/mod_cache.h, $(INSTALLBASE)/include/)
$(call COPY,$(STDMOD)/cache/cache_common.h, $(INSTALLBASE)/include/)
$(call COPY,$(STDMOD)/database/mod_dbd.h, $(INSTALLBASE)/include/)
$(call COPY,$(STDMOD)/dav/main/mod_dav.h, $(INSTALLBASE)/include/)
$(call COPY,$(STDMOD)/filters/mod_include.h, $(INSTALLBASE)/include/)
$(call COPY,$(STDMOD)/generators/mod_cgi.h, $(INSTALLBASE)/include/)
$(call COPY,$(STDMOD)/generators/mod_status.h, $(INSTALLBASE)/include/)
$(call COPY,$(STDMOD)/loggers/mod_log_config.h, $(INSTALLBASE)/include/)
$(call COPY,$(STDMOD)/mappers/mod_rewrite.h, $(INSTALLBASE)/include/)
$(call COPY,$(STDMOD)/proxy/mod_proxy.h, $(INSTALLBASE)/include/)
$(call COPY,$(STDMOD)/proxy/mod_serf.h, $(INSTALLBASE)/include/)
$(call COPY,$(STDMOD)/session/mod_session.h, $(INSTALLBASE)/include/)
$(call COPY,$(STDMOD)/ssl/mod_ssl.h, $(INSTALLBASE)/include/)
$(call COPY,$(STDMOD)/ssl/mod_ssl_openssl.h, $(INSTALLBASE)/include/)
$(call COPY,$(APR)/*.imp, $(INSTALLBASE)/lib/)
$(call COPY,$(NWOS)/*.imp, $(INSTALLBASE)/lib/)
$(call COPY,$(NWOS)/*.xdc, $(INSTALLBASE)/lib/)
$(call COPY,$(APBUILD)/NWGNU*.inc, $(INSTALLBASE)/build/)
prebuild :: FORCE
$(MAKE) -C $(SERVER) -f NWGNUmakefile
$(MAKE) -C $(PCRE) -f NWGNUmakefile
$(call MKDIR,$(PREBUILD_INST))
$(call COPY,$(SERVER)/$(OBJDIR)/*.nlm, $(PREBUILD_INST)/)
$(call COPY,$(PCRE)/$(OBJDIR)/*.nlm, $(PREBUILD_INST)/)
#
# Any specialized rules here
#
vpath %.c server:modules/arch/netware:modules/http:modules/aaa:modules/mappers
vpath %.c modules/generators:modules/metadata:modules/filters:modules/loggers
vpath %.c modules/core:os/netware:server/mpm/netware:$(PCRE)
$(OBJDIR)/chartables.o: os/netware/chartables.c
#
# Include the 'tail' makefile that has targets that depend on variables defined
# in this makefile
#
include $(APBUILD)/NWGNUtail.inc
include $(APBUILD)/NWGNUscripts.inc