NWGNUmakefile revision 8209b79780530f392dee6e459468d5e9eb0a4299
d943f5870debf69f3186f2666221abefc22a2d6drbb# Define our required macro's if not already done.
8ddfe3a457c91c8e7d48134398fb178b091366d7rbbifndef AP_WORK
8ddfe3a457c91c8e7d48134398fb178b091366d7rbbexport AP_WORK = $(CURDIR)
d943f5870debf69f3186f2666221abefc22a2d6drbbifndef APR_WORK
d943f5870debf69f3186f2666221abefc22a2d6drbbifeq "$(wildcard $(AP_WORK)/srclib/apr)" "$(AP_WORK)/srclib/apr"
d943f5870debf69f3186f2666221abefc22a2d6drbbexport APR_WORK = $(AP_WORK)/srclib/apr
8ddfe3a457c91c8e7d48134398fb178b091366d7rbbifneq "$(wildcard $(APR_WORK)/include/apr_version.h)" "$(APR_WORK)/include/apr_version.h"
8ddfe3a457c91c8e7d48134398fb178b091366d7rbb$(error APR_WORK does not point to a valid APR source tree)
8ddfe3a457c91c8e7d48134398fb178b091366d7rbbifndef APU_WORK
8ddfe3a457c91c8e7d48134398fb178b091366d7rbbifeq "$(wildcard $(AP_WORK)/srclib/apr-util)" "$(AP_WORK)/srclib/apr-util"
8ddfe3a457c91c8e7d48134398fb178b091366d7rbbexport APU_WORK = $(AP_WORK)/srclib/apr-util
8ddfe3a457c91c8e7d48134398fb178b091366d7rbbifndef APU_WORK
8ddfe3a457c91c8e7d48134398fb178b091366d7rbbifeq "$(wildcard $(APR_WORK)/include/apu_version.h)" "$(APR_WORK)/include/apu_version.h"
d943f5870debf69f3186f2666221abefc22a2d6drbbexport APU_WORK = $(APR_WORK)
8ddfe3a457c91c8e7d48134398fb178b091366d7rbbifneq "$(wildcard $(APU_WORK)/include/apu_version.h)" "$(APU_WORK)/include/apu_version.h"
8ddfe3a457c91c8e7d48134398fb178b091366d7rbb$(error APU_WORK does not point to a valid APU source tree)
8ddfe3a457c91c8e7d48134398fb178b091366d7rbb# Declare the sub-directories to be built here
8ddfe3a457c91c8e7d48134398fb178b091366d7rbbSUBDIRS = \
8ddfe3a457c91c8e7d48134398fb178b091366d7rbb $(APR_WORK) \
806f87e03cc4ddead00f23ce96c27e75f32f0744slive# Get the 'head' of the build environment. This includes default targets and
806f87e03cc4ddead00f23ce96c27e75f32f0744slive# paths to tools
806f87e03cc4ddead00f23ce96c27e75f32f0744sliveinclude $(AP_WORK)\build\NWGNUhead.inc
806f87e03cc4ddead00f23ce96c27e75f32f0744slive# build this level's files
806f87e03cc4ddead00f23ce96c27e75f32f0744slive# Make sure all needed macro's are defined
806f87e03cc4ddead00f23ce96c27e75f32f0744slive# These directories will be at the beginning of the include list, followed by
806f87e03cc4ddead00f23ce96c27e75f32f0744sliveXINCDIRS += \
806f87e03cc4ddead00f23ce96c27e75f32f0744slive $(APR)/include \
806f87e03cc4ddead00f23ce96c27e75f32f0744slive $(APRUTIL)/include \
e60a4dc5bad9da4e835be390de54053c9d696918slive $(AP_WORK)/include \
8ddfe3a457c91c8e7d48134398fb178b091366d7rbb $(AP_WORK)/modules/http/ \
8ddfe3a457c91c8e7d48134398fb178b091366d7rbb $(AP_WORK)/modules/ssl/ \
8ddfe3a457c91c8e7d48134398fb178b091366d7rbb# These flags will come after CFLAGS
60ed053fe71b1e3cfab8c4ed37afde30a6db4841rbbXCFLAGS += \
60ed053fe71b1e3cfab8c4ed37afde30a6db4841rbb -DHAVE_CONFIG_H \
8ddfe3a457c91c8e7d48134398fb178b091366d7rbb# These defines will come after DEFINES
# These flags will be added to the link.opt file
# $(AP_WORK)\build\NWGNUenvironment.inc
# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
$(OBJDIR)/Apache2.nlm \
$(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.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)
-copy support\check_forensic $(INSTALL)\$(BASEDIR)\bin\check_forensic.sh
-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
-$(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
$(MAKE) -C srclib/pcre -f NWGNUmakefile
include $(AP_WORK)\build\NWGNUtail.inc
include $(AP_WORK)\build\NWGNUscripts.inc