NWGNUmakefile revision 0662ed52e814f8f08ef0e09956413a792584eddf
8900b9eb2514c07047541833286428572493a9fdStéphane Graber#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# Define our required macro's if not already done.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiifndef AP_WORK
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiexport AP_WORK = $(CURDIR)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiendif
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiifndef APR_WORK
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiifeq "$(wildcard $(AP_WORK)/srclib/apr)" "$(AP_WORK)/srclib/apr"
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiexport APR_WORK = $(AP_WORK)/srclib/apr
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiendif
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiendif
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiifneq "$(wildcard $(APR_WORK)/include/apr_version.h)" "$(APR_WORK)/include/apr_version.h"
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi$(error APR_WORK does not point to a valid APR source tree)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiendif
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiifndef APU_WORK
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiifeq "$(wildcard $(AP_WORK)/srclib/apr-util)" "$(AP_WORK)/srclib/apr-util"
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiexport APU_WORK = $(AP_WORK)/srclib/apr-util
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiendif
a5ba96715d4ef264c43d4f187251de491ba198c0KATOH Yasufumiendif
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiifndef APU_WORK
8900b9eb2514c07047541833286428572493a9fdStéphane Graberifeq "$(wildcard $(APR_WORK)/include/apu_version.h)" "$(APR_WORK)/include/apu_version.h"
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiexport APU_WORK = $(APR_WORK)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiendif
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiendif
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiifneq "$(wildcard $(APU_WORK)/include/apu_version.h)" "$(APU_WORK)/include/apu_version.h"
faefa7f8584a7d1567df2e6f1f9240a28a6466abStéphane Graber$(error APU_WORK does not point to a valid APU source tree)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiendif
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# Declare the sub-directories to be built here
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiSUBDIRS = \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(APR_WORK) \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi build \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi support \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi modules \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(EOLIST)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# Get the 'head' of the build environment. This includes default targets and
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# paths to tools
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiinclude $(AP_WORK)/build/NWGNUhead.inc
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
6127da6b3f5815028bee187ac98840cd94313841KATOH Yasufumi# build this level's files
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# Make sure all needed macro's are defined
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# These directories will be at the beginning of the include list, followed by
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# INCDIRS
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiXINCDIRS += \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(APR)/include \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(APRUTIL)/include \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(AP_WORK)/include \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(STDMOD)/aaa \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(STDMOD)/core \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(STDMOD)/filters \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(STDMOD)/generators \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(STDMOD)/http \
dc421f3aac1f0e516c763dd156629a8ed2a7b4caKATOH Yasufumi $(STDMOD)/loggers \
dc421f3aac1f0e516c763dd156629a8ed2a7b4caKATOH Yasufumi $(STDMOD)/mappers \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(STDMOD)/proxy \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(STDMOD)/ssl \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(AP_WORK)/server \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(AP_WORK)/server/mpm/netware \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(PCRE) \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(NWOS) \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(EOLIST)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
1bc07a5b8dbaef4b6eb6d30a260e9c2153ed368bKATOH Yasufumi# These flags will come after CFLAGS
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiXCFLAGS += \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi -DHAVE_CONFIG_H \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(EOLIST)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# These defines will come after DEFINES
dc421f3aac1f0e516c763dd156629a8ed2a7b4caKATOH Yasufumi#
dc421f3aac1f0e516c763dd156629a8ed2a7b4caKATOH YasufumiXDEFINES += \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(EOLIST)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# These flags will be added to the link.opt file
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiXLFLAGS += \
1bc07a5b8dbaef4b6eb6d30a260e9c2153ed368bKATOH Yasufumi $(EOLIST)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# These values will be appended to the correct variables based on the value of
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# RELEASE
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiifeq "$(RELEASE)" "debug"
dc421f3aac1f0e516c763dd156629a8ed2a7b4caKATOH YasufumiXINCDIRS += \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(EOLIST)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiXCFLAGS += \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(EOLIST)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiXDEFINES += \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(EOLIST)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiXLFLAGS += \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(EOLIST)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiendif
9a97d4e4bdf331bb2c2b8ed14bcefa53358c288fKATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiifeq "$(RELEASE)" "noopt"
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiXINCDIRS += \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(EOLIST)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiXCFLAGS += \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(EOLIST)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiXDEFINES += \
dc421f3aac1f0e516c763dd156629a8ed2a7b4caKATOH Yasufumi $(EOLIST)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiXLFLAGS += \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(EOLIST)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiendif
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiifeq "$(RELEASE)" "release"
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiXINCDIRS += \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(EOLIST)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiXCFLAGS += \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(EOLIST)
dc421f3aac1f0e516c763dd156629a8ed2a7b4caKATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiXDEFINES += \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(EOLIST)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiXLFLAGS += \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(EOLIST)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiendif
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# These are used by the link target if an NLM is being generated
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# This is used by the link 'name' directive to name the nlm. If left blank
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# TARGET_nlm (see below) will be used.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiNLM_NAME = Apache2
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# This is used by the link '-desc ' directive.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# If left blank, NLM_NAME will be used.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiNLM_DESCRIPTION = Apache Web Server $(VERSION_STR) $(VERSION_SKT)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
dc421f3aac1f0e516c763dd156629a8ed2a7b4caKATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# This is used by the '-threadname' directive. If left blank,
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# NLM_NAME Thread will be used.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiNLM_THREAD_NAME = $(NLM_NAME)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# This is used by the '-screenname' directive. If left blank,
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# 'Apache for NetWare' Thread will be used.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiNLM_SCREEN_NAME = Apache $(VERSION_STR) for NetWare
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# If this is specified, it will override VERSION value in
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# $(AP_WORK)/build/NWGNUenvironment.inc
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiNLM_VERSION =
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# If this is specified, it will override the default of 64K
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiNLM_STACK_SIZE = 65536
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# If this is specified it will be used by the link '-entry' directive
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiNLM_ENTRY_SYM =
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# If this is specified it will be used by the link '-exit' directive
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi#
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiNLM_EXIT_SYM =
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi
#
# If this is specified it will be used by the link '-check' directive
#
NLM_CHECK_SYM = _LibCCheckUnload
#
# If these are specified it will be used by the link '-flags' directive
#
NLM_FLAGS = PSEUDOPREEMPTION
#
# If this is specified it will be linked in with the XDCData option in the def
# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
# by setting APACHE_UNIPROC in the environment
#
XDCDATA =
#
# If there is an NLM target, put it here
#
TARGET_nlm = \
$(OBJDIR)/$(NLM_NAME).nlm \
$(EOLIST)
#
# If there is an LIB target, put it here
#
TARGET_lib = \
$(OBJDIR)/pcre.lib \
$(EOLIST)
#
# These are the OBJ files needed to create the NLM target above.
# Paths must all use the '/' character
#
FILES_nlm_objs = \
$(OBJDIR)/buildmark.o \
$(OBJDIR)/config.o \
$(OBJDIR)/connection.o \
$(OBJDIR)/core.o \
$(OBJDIR)/core_filters.o \
$(OBJDIR)/eoc_bucket.o \
$(OBJDIR)/eor_bucket.o \
$(OBJDIR)/error_bucket.o \
$(OBJDIR)/http_core.o \
$(OBJDIR)/http_protocol.o \
$(OBJDIR)/http_request.o \
$(OBJDIR)/byterange_filter.o \
$(OBJDIR)/chunk_filter.o \
$(OBJDIR)/http_etag.o \
$(OBJDIR)/http_filters.o \
$(OBJDIR)/listen.o \
$(OBJDIR)/log.o \
$(OBJDIR)/main.o \
$(OBJDIR)/mod_authn_core.o \
$(OBJDIR)/mod_authz_core.o \
$(OBJDIR)/mod_authz_host.o \
$(OBJDIR)/mod_alias.o \
$(OBJDIR)/mod_dir.o \
$(OBJDIR)/mod_env.o \
$(OBJDIR)/mod_include.o \
$(OBJDIR)/mod_log_config.o \
$(OBJDIR)/mod_mime.o \
$(OBJDIR)/mod_negotiation.o \
$(OBJDIR)/mod_netware.o \
$(OBJDIR)/mod_setenvif.o \
$(OBJDIR)/mod_so.o \
$(OBJDIR)/mod_watchdog.o \
$(OBJDIR)/modules.o \
$(OBJDIR)/mpm_common.o \
$(OBJDIR)/mpm_netware.o \
$(OBJDIR)/protocol.o \
$(OBJDIR)/provider.o \
$(OBJDIR)/request.o \
$(OBJDIR)/scoreboard.o \
$(OBJDIR)/util.o \
$(OBJDIR)/util_cfgtree.o \
$(OBJDIR)/util_charset.o \
$(OBJDIR)/util_cookies.o \
$(OBJDIR)/util_debug.o \
$(OBJDIR)/util_expr_eval.o \
$(OBJDIR)/util_expr_parse.o \
$(OBJDIR)/util_expr_scan.o \
$(OBJDIR)/util_filter.o \
$(OBJDIR)/util_md5.o \
$(OBJDIR)/util_mutex.o \
$(OBJDIR)/util_nw.o \
$(OBJDIR)/util_pcre.o \
$(OBJDIR)/util_regex.o \
$(OBJDIR)/util_script.o \
$(OBJDIR)/util_time.o \
$(OBJDIR)/util_xml.o \
$(OBJDIR)/vhost.o \
$(EOLIST)
# Build in mod_nw_ssl if Winsock is being used
ifndef USE_STDSOCKETS
FILES_nlm_objs += $(OBJDIR)/mod_nw_ssl.o \
$(EOLIST)
endif
#
# These are the LIB files needed to create the NLM target above.
# These will be added as a library command in the link.opt file.
#
FILES_nlm_libs = \
$(PCRELIB) \
libcpre.o \
$(EOLIST)
#
# These are the modules that the above NLM target depends on to load.
# These will be added as a module command in the link.opt file.
#
FILES_nlm_modules = \
aprlib \
Libc \
$(EOLIST)
#
# If the nlm has a msg file, put it's path here
#
FILE_nlm_msg =
#
# If the nlm has a hlp file put it's path here
#
FILE_nlm_hlp =
#
# If this is specified, it will override $(NWOS)\copyright.txt.
#
FILE_nlm_copyright =
#
# Any additional imports go here
#
FILES_nlm_Ximports = \
@netware.imp \
@$(APR)/aprlib.imp \
@libc.imp \
GetCurrentAddressSpace \
$(EOLIST)
# Don't link with Winsock if standard sockets are being used
ifndef USE_STDSOCKETS
FILES_nlm_Ximports += @ws2nlm.imp \
$(EOLIST)
endif
#
# Any symbols exported to here
#
FILES_nlm_exports = \
@$(NWOS)/httpd.imp \
$(EOLIST)
#
# These are the OBJ files needed to create the LIB target above.
# Paths must all use the '/' character
#
ifeq "$(wildcard $(PCRE)/pcre.c)" "$(PCRE)/pcre.c"
FILES_lib_objs = \
$(OBJDIR)/pcre.o \
$(EOLIST)
else
FILES_lib_objs = \
$(OBJDIR)/pcre_compile.o \
$(OBJDIR)/pcre_exec.o \
$(OBJDIR)/pcre_fullinfo.o \
$(OBJDIR)/pcre_globals.o \
$(OBJDIR)/pcre_info.o \
$(OBJDIR)/pcre_newline.o \
$(OBJDIR)/pcre_tables.o \
$(OBJDIR)/pcre_try_flipped.o \
$(OBJDIR)/pcre_version.o \
$(EOLIST)
endif
FILES_lib_objs += \
$(OBJDIR)/chartables.o \
$(EOLIST)
#
# 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)
#
install :: nlms instscripts FORCE
$(call COPY,$(OBJDIR)/$(NLM_NAME).nlm, $(INSTALL)/$(BASEDIR)/)
$(call COPY,ABOUT_APACHE, $(INSTALL)/$(BASEDIR)/)
$(call COPY,CHANGES, $(INSTALL)/$(BASEDIR)/)
$(call COPY,LICENSE, $(INSTALL)/$(BASEDIR)/)
$(call COPY,README, $(INSTALL)/$(BASEDIR)/)
$(call COPY,VERSIONING, $(INSTALL)/$(BASEDIR)/)
$(call COPY,STATUS, $(INSTALL)/$(BASEDIR)/)
$(call COPY,support/dbmmanage.in, $(INSTALL)/$(BASEDIR)/bin/dbmmanage.pl)
$(call COPY,support/logresolve.pl.in, $(INSTALL)/$(BASEDIR)/bin/logresolve.pl)
$(call COPY,support/split-logfile.in, $(INSTALL)/$(BASEDIR)/bin/split-logfile.pl)
$(call COPY,support/check_forensic, $(INSTALL)/$(BASEDIR)/bin/check_forensic.sh)
$(call COPY,docs/conf/magic, $(INSTALL)/$(BASEDIR)/conf/)
$(call COPY,docs/conf/mime.types, $(INSTALL)/$(BASEDIR)/conf/)
$(call COPY,docs/conf/charset.conv, $(INSTALL)/$(BASEDIR)/conf/)
$(call COPY,docs/cgi-examples/printenv, $(INSTALL)/$(BASEDIR)/cgi-bin/printenv.pl)
-$(AWK) -v BDIR=$(BASEDIR) -v PORT=$(PORT) -v SSLPORT=$(SSLPORT) -v MODSSL=$(WITH_MOD_SSL) -v BSDSKT=$(USE_STDSOCKETS) -f build\mkconfnw.awk docs/conf/httpd.conf.in >$(INSTALL)/$(BASEDIR)/conf\httpd.conf
$(call MKDIR,$(INSTALL)/$(BASEDIR)/conf/extra)
-$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs/conf/extra/httpd-autoindex.conf.in >$(INSTALL)/$(BASEDIR)/conf/extra/httpd-autoindex.conf
-$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs/conf/extra/httpd-dav.conf.in >$(INSTALL)/$(BASEDIR)/conf/extra/httpd-dav.conf
-$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs/conf/extra/httpd-default.conf.in >$(INSTALL)/$(BASEDIR)/conf/extra/httpd-default.conf
-$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs/conf/extra/httpd-info.conf.in >$(INSTALL)/$(BASEDIR)/conf/extra/httpd-info.conf
-$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs/conf/extra/httpd-languages.conf.in >$(INSTALL)/$(BASEDIR)/conf/extra/httpd-languages.conf
-$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs/conf/extra/httpd-manual.conf.in >$(INSTALL)/$(BASEDIR)/conf/extra/httpd-manual.conf
-$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs/conf/extra/httpd-mpm.conf.in >$(INSTALL)/$(BASEDIR)/conf/extra/httpd-mpm.conf
-$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs/conf/extra/httpd-multilang-errordoc.conf.in >$(INSTALL)/$(BASEDIR)/conf/extra/httpd-multilang-errordoc.conf
-$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs/conf/extra/httpd-userdir.conf.in >$(INSTALL)/$(BASEDIR)/conf/extra/httpd-userdir.conf
-$(AWK) -v BDIR=$(BASEDIR) -v PORT=$(PORT) -f build\mkconfnw.awk docs/conf/extra/httpd-vhosts.conf.in >$(INSTALL)/$(BASEDIR)/conf/extra/httpd-vhosts.conf
-$(AWK) -v BDIR=$(BASEDIR) -v SSLPORT=$(SSLPORT) -f build\mkconfnw.awk docs/conf/extra/httpd-ssl.conf.in >$(INSTALL)/$(BASEDIR)/conf/extra/httpd-ssl.conf
$(call COPYR,docs/docroot, $(INSTALL)/$(BASEDIR)/htdocs)
$(call COPYR,docs/error, $(INSTALL)/$(BASEDIR)/)
$(call COPYR,docs/icons, $(INSTALL)/$(BASEDIR)/)
$(call COPYR,docs/man, $(INSTALL)/$(BASEDIR)/)
$(call COPYR,docs/manual, $(INSTALL)/$(BASEDIR)/)
installdev :: FORCE
$(call COPY,$(SRC)/include/*.h, $(INSTALL)/$(BASEDIR)/include/)
$(call COPY,$(NWOS)/*.h, $(INSTALL)/$(BASEDIR)/include/)
$(call COPY,$(APR)/include/*.h, $(INSTALL)/$(BASEDIR)/include/)
$(call COPY,$(APRUTIL)/include/*.h, $(INSTALL)/$(BASEDIR)/include/)
$(call COPY,$(APR)/*.imp, $(INSTALL)/$(BASEDIR)/lib/)
$(call COPY,$(NWOS)/*.imp, $(INSTALL)/$(BASEDIR)/lib/)
$(call COPY,$(NWOS)/*.xdc, $(INSTALL)/$(BASEDIR)/lib/)
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)
#
# Include the 'tail' makefile that has targets that depend on variables defined
# in this makefile
#
include $(APBUILD)/NWGNUtail.inc
include $(APBUILD)/NWGNUscripts.inc