NWGNUmakefile revision 0662ed52e814f8f08ef0e09956413a792584eddf
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# Define our required macro's if not already done.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiifndef AP_WORK
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiexport AP_WORK = $(CURDIR)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiifndef APR_WORK
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiifeq "$(wildcard $(AP_WORK)/srclib/apr)" "$(AP_WORK)/srclib/apr"
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiexport APR_WORK = $(AP_WORK)/srclib/apr
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 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 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 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 Yasufumi# Declare the sub-directories to be built here
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi $(APR_WORK) \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# Get the 'head' of the build environment. This includes default targets and
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# paths to tools
6127da6b3f5815028bee187ac98840cd94313841KATOH Yasufumi# build this level's files
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# Make sure all needed macro's are defined
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# These directories will be at the beginning of the include list, followed by
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 \
1bc07a5b8dbaef4b6eb6d30a260e9c2153ed368bKATOH Yasufumi# These flags will come after CFLAGS
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi -DHAVE_CONFIG_H \
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# These defines will come after DEFINES
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# These flags will be added to the link.opt file
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# These values will be appended to the correct variables based on the value of
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiifeq "$(RELEASE)" "debug"
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiifeq "$(RELEASE)" "noopt"
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumiifeq "$(RELEASE)" "release"
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 YasufumiNLM_NAME = Apache2
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# This is used by the link '-desc ' directive.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# If left blank, NLM_NAME will be used.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiNLM_DESCRIPTION = Apache Web Server $(VERSION_STR) $(VERSION_SKT)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# This is used by the '-threadname' directive. If left blank,
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# NLM_NAME Thread will be used.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiNLM_THREAD_NAME = $(NLM_NAME)
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# This is used by the '-screenname' directive. If left blank,
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# 'Apache for NetWare' Thread will be used.
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiNLM_SCREEN_NAME = Apache $(VERSION_STR) for NetWare
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# If this is specified, it will override VERSION value in
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# If this is specified, it will override the default of 64K
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiNLM_STACK_SIZE = 65536
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# If this is specified it will be used by the link '-entry' directive
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiNLM_ENTRY_SYM =
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi# If this is specified it will be used by the link '-exit' directive
57da8c32f85c0255efa61ee32e260068afdaa565KATOH YasufumiNLM_EXIT_SYM =
# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
$(OBJDIR)/pcre.lib \
$(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 \
FILES_nlm_objs += $(OBJDIR)/mod_nw_ssl.o \
# These will be added as a library command in the link.opt file.
# These will be added as a module command in the link.opt file.
# If this is specified, it will override $(NWOS)\copyright.txt.
@netware.imp \
@$(APR)/aprlib.imp \
@libc.imp \
FILES_nlm_Ximports += @ws2nlm.imp \
@$(NWOS)/httpd.imp \
$(OBJDIR)/pcre.o \
$(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 \
$(OBJDIR)/chartables.o \
# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
$(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/)
-$(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)/)
include $(APBUILD)/NWGNUtail.inc
include $(APBUILD)/NWGNUscripts.inc