NWGNUmakefile revision 78a20a6e7ad3a0229900ee54c7d11a65f647b663
2605N/A#
2605N/A# Declare the sub-directories to be built here
2605N/A#
2605N/A
2605N/ASUBDIRS = \
2605N/A $(APR_WORK) \
2605N/A build \
2605N/A support \
2605N/A modules \
2605N/A $(EOLIST)
2605N/A
2605N/A#
2605N/A# Get the 'head' of the build environment. This includes default targets and
2605N/A# paths to tools
2605N/A#
2605N/A
2605N/Ainclude $(AP_WORK)\build\NWGNUhead.inc
2605N/A
2605N/A#
2605N/A# build this level's files
2605N/A
2605N/A#
3704N/A# Make sure all needed macro's are defined
2605N/A#
2605N/A
2605N/A#
2605N/A# These directories will be at the beginning of the include list, followed by
2971N/A# INCDIRS
2605N/A#
2605N/AXINCDIRS += \
2900N/A $(APR)/include \
2605N/A $(APRUTIL)/include \
2605N/A $(AP_WORK)/include \
3661N/A $(AP_WORK)/modules/aaa/ \
2605N/A $(AP_WORK)/modules/filters/ \
2605N/A $(AP_WORK)/modules/generators/ \
2605N/A $(AP_WORK)/modules/http/ \
2605N/A $(AP_WORK)/modules/loggers/ \
2605N/A $(AP_WORK)/modules/mappers/ \
2605N/A $(AP_WORK)/modules/proxy/ \
2605N/A $(AP_WORK)/os/NetWare \
2605N/A $(AP_WORK)/server/mpm/NetWare \
2900N/A $(AP_WORK)/srclib/pcre \
2900N/A $(NWOS) \
2605N/A $(AP_WORK)/modules/ssl \
2605N/A $(EOLIST)
2605N/A
2900N/A#
2900N/A# These flags will come after CFLAGS
2900N/A#
2605N/AXCFLAGS += \
2900N/A $(EOLIST)
2605N/A
2900N/A#
2605N/A# These defines will come after DEFINES
2900N/A#
2900N/AXDEFINES += \
2900N/A $(EOLIST)
2900N/A
2900N/A#
2900N/A# These flags will be added to the link.opt file
2900N/A#
2900N/AXLFLAGS += \
2900N/A $(EOLIST)
2605N/A
2605N/A#
2605N/A# These values will be appended to the correct variables based on the value of
2605N/A# RELEASE
2605N/A#
2605N/Aifeq "$(RELEASE)" "debug"
2605N/AXINCDIRS += \
2605N/A $(EOLIST)
2605N/A
2605N/AXCFLAGS += \
2605N/A $(EOLIST)
2605N/A
2605N/AXDEFINES += \
2605N/A $(EOLIST)
2900N/A
2900N/AXLFLAGS += \
2900N/A $(EOLIST)
2900N/Aendif
2900N/A
2900N/Aifeq "$(RELEASE)" "noopt"
2605N/AXINCDIRS += \
2605N/A $(EOLIST)
2605N/A
2605N/AXCFLAGS += \
2900N/A $(EOLIST)
2900N/A
2605N/AXDEFINES += \
2605N/A $(EOLIST)
2605N/A
2605N/AXLFLAGS += \
2605N/A $(EOLIST)
2605N/Aendif
2605N/A
2605N/Aifeq "$(RELEASE)" "release"
2605N/AXINCDIRS += \
2605N/A $(EOLIST)
2605N/A
2605N/AXCFLAGS += \
2605N/A $(EOLIST)
2605N/A
2900N/AXDEFINES += \
2900N/A $(EOLIST)
2900N/A
2900N/AXLFLAGS += \
2605N/A $(EOLIST)
2605N/Aendif
2605N/A
2605N/A#
2900N/A# These are used by the link target if an NLM is being generated
2900N/A# This is used by the link 'name' directive to name the nlm. If left blank
2900N/A# TARGET_nlm (see below) will be used.
2605N/A#
2605N/ANLM_NAME = Apache2
2605N/A
2605N/A#
2605N/A# This is used by the link '-desc ' directive.
2605N/A# If left blank, NLM_NAME will be used.
2605N/A#
2605N/ANLM_DESCRIPTION = Apache Web Server $(VERSION_STR) $(VERSION_SKT)
2605N/A
2605N/A#
2605N/A# This is used by the '-threadname' directive. If left blank,
2605N/A# NLM_NAME Thread will be used.
2605N/A#
2605N/ANLM_THREAD_NAME = Apache
2605N/A
2605N/A#
2605N/A# This is used by the '-screenname' directive. If left blank,
2605N/A# 'Apache for NetWare' Thread will be used.
2605N/A#
2605N/ANLM_SCREEN_NAME = Apache $(VERSION_STR) for NetWare
2605N/A
2605N/A
2605N/A#
2605N/A# If this is specified, it will override VERSION value in
2605N/A# $(AP_WORK)\build\NWGNUenvironment.inc
2605N/A#
2605N/ANLM_VERSION =
2605N/A
2605N/A#
2605N/A# If this is specified, it will override the default of 64K
2605N/A#
2605N/ANLM_STACK_SIZE = 65536
2605N/A
2605N/A
2605N/A#
2605N/A# If this is specified it will be used by the link '-entry' directive
2605N/A#
2605N/ANLM_ENTRY_SYM = _LibCPrelude
2605N/A
2605N/A#
2900N/A# If this is specified it will be used by the link '-exit' directive
2900N/A#
2900N/ANLM_EXIT_SYM = _LibCPostlude
2900N/A
2900N/A#
2900N/A# If this is specified it will be used by the link '-check' directive
2900N/A#
2900N/ANLM_CHECK_SYM = _LibCCheckUnload
2900N/A
2900N/A#
2900N/A# If these are specified it will be used by the link '-flags' directive
2900N/A#
2900N/ANLM_FLAGS = PSEUDOPREEMPTION
2900N/A
2605N/A#
2605N/A# If this is specified it will be linked in with the XDCData option in the def
2900N/A# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
2605N/A# by setting APACHE_UNIPROC in the environment
2605N/A#
2605N/AXDCDATA =
2605N/A
2605N/A#
2605N/A# If there is an NLM target, put it here
2605N/A#
2605N/ATARGET_nlm = \
2605N/A $(OBJDIR)/Apache2.nlm \
2605N/A $(EOLIST)
2900N/A
2605N/A#
2900N/A# If there is an LIB target, put it here
2900N/A#
2900N/ATARGET_lib = \
2900N/A $(EOLIST)
2900N/A
2900N/A#
2900N/A# These are the OBJ files needed to create the NLM target above.
2900N/A# Paths must all use the '/' character
2900N/A#
2900N/AFILES_nlm_objs = \
2900N/A $(OBJDIR)/buildmark.o \
2900N/A $(OBJDIR)/config.o \
2900N/A $(OBJDIR)/connection.o \
2900N/A $(OBJDIR)/core.o \
2900N/A $(OBJDIR)/core_filters.o \
2900N/A $(OBJDIR)/eoc_bucket.o \
2900N/A $(OBJDIR)/eor_bucket.o \
2900N/A $(OBJDIR)/error_bucket.o \
2900N/A $(OBJDIR)/http_core.o \
2900N/A $(OBJDIR)/http_protocol.o \
2900N/A $(OBJDIR)/http_request.o \
2900N/A $(OBJDIR)/byterange_filter.o \
2900N/A $(OBJDIR)/chunk_filter.o \
2900N/A $(OBJDIR)/http_etag.o \
2900N/A $(OBJDIR)/http_filters.o \
2900N/A $(OBJDIR)/listen.o \
2900N/A $(OBJDIR)/log.o \
2900N/A $(OBJDIR)/main.o \
2900N/A $(OBJDIR)/mod_authn_core.o \
2900N/A $(OBJDIR)/mod_authn_default.o \
2900N/A $(OBJDIR)/mod_authz_core.o \
2605N/A $(OBJDIR)/mod_authz_default.o \
2605N/A $(OBJDIR)/mod_authz_host.o \
2605N/A $(OBJDIR)/mod_alias.o \
2605N/A $(OBJDIR)/mod_dir.o \
2605N/A $(OBJDIR)/mod_env.o \
2605N/A $(OBJDIR)/mod_include.o \
2605N/A $(OBJDIR)/mod_log_config.o \
2605N/A $(OBJDIR)/mod_mime.o \
2605N/A $(OBJDIR)/mod_negotiation.o \
2900N/A $(OBJDIR)/mod_netware.o \
2900N/A $(OBJDIR)/mod_setenvif.o \
2900N/A $(OBJDIR)/mod_so.o \
2900N/A $(OBJDIR)/modules.o \
2900N/A $(OBJDIR)/mpm_common.o \
2900N/A $(OBJDIR)/mpm_netware.o \
2605N/A $(OBJDIR)/pcre.o \
2605N/A $(OBJDIR)/protocol.o \
2605N/A $(OBJDIR)/provider.o \
2605N/A $(OBJDIR)/request.o \
2900N/A $(OBJDIR)/scoreboard.o \
2605N/A $(OBJDIR)/util.o \
2605N/A $(OBJDIR)/util_cfgtree.o \
2605N/A $(OBJDIR)/util_charset.o \
2605N/A $(OBJDIR)/util_debug.o \
2605N/A $(OBJDIR)/util_expr.o \
2900N/A $(OBJDIR)/util_filter.o \
2900N/A $(OBJDIR)/util_md5.o \
2900N/A $(OBJDIR)/util_mutex.o \
2605N/A $(OBJDIR)/util_nw.o \
2900N/A $(OBJDIR)/util_pcre.o \
2900N/A $(OBJDIR)/util_script.o \
2900N/A $(OBJDIR)/util_time.o \
2900N/A $(OBJDIR)/util_xml.o \
2900N/A $(OBJDIR)/vhost.o \
2900N/A $(EOLIST)
2900N/A
2900N/A# Build in mod_nw_ssl if Winsock is being used
2900N/Aifndef USE_STDSOCKETS
2900N/AFILES_nlm_objs += $(OBJDIR)/mod_nw_ssl.o \
2900N/A $(EOLIST)
2900N/Aendif
2900N/A
2605N/A#
2900N/A# These are the LIB files needed to create the NLM target above.
2900N/A# These will be added as a library command in the link.opt file.
2900N/A#
2605N/AFILES_nlm_libs = \
2900N/A libcpre.o \
2900N/A $(EOLIST)
2900N/A
2900N/A#
2900N/A# These are the modules that the above NLM target depends on to load.
2900N/A# These will be added as a module command in the link.opt file.
2900N/A#
2900N/AFILES_nlm_modules = \
2900N/A aprlib \
2900N/A Libc \
2900N/A $(EOLIST)
2900N/A
2900N/A#
2900N/A# If the nlm has a msg file, put it's path here
2900N/A#
2900N/AFILE_nlm_msg =
2900N/A
2900N/A#
2900N/A# If the nlm has a hlp file put it's path here
2900N/A#
2900N/AFILE_nlm_hlp =
2900N/A
2900N/A#
2900N/A# If this is specified, it will override $(NWOS)\copyright.txt.
2900N/A#
2605N/AFILE_nlm_copyright =
2605N/A
2605N/A#
2605N/A# Any additional imports go here
2605N/A#
2900N/AFILES_nlm_Ximports = \
2605N/A @netware.imp \
2605N/A @$(APR)/aprlib.imp \
2605N/A @libc.imp \
2900N/A GetCurrentAddressSpace \
2900N/A $(EOLIST)
2900N/A
2900N/A# Don't link with Winsock if standard sockets are being used
2900N/Aifndef USE_STDSOCKETS
2900N/AFILES_nlm_Ximports += @ws2nlm.imp \
2900N/A $(EOLIST)
2900N/Aendif
2900N/A
2900N/A#
2900N/A# Any symbols exported to here
2900N/A#
2900N/AFILES_nlm_exports = \
2900N/A @$(NWOS)/httpd.imp \
2900N/A $(EOLIST)
2900N/A
2900N/A#
2900N/A# These are the OBJ files needed to create the LIB target above.
2900N/A# Paths must all use the '/' character
2900N/A#
2900N/AFILES_lib_objs = \
2605N/A $(EOLIST)
2605N/A
2605N/A#
2900N/A# implement targets and dependancies (leave this section alone)
2900N/A#
2900N/A
2900N/Alibs :: $(OBJDIR) $(TARGET_lib)
2900N/A
2900N/Anlms :: libs $(TARGET_nlm)
2900N/A
2900N/A#
2900N/A# Updated this target to create necessary directories and copy files to the
2900N/A# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
2900N/A#
2900N/Ainstall :: nlms FORCE
2900N/A -copy $(OBJDIR)\Apache2.nlm $(INSTALL)\$(BASEDIR)\*.*
2605N/A -copy ABOUT_APACHE $(INSTALL)\$(BASEDIR)\*.*
2900N/A -copy README $(INSTALL)\$(BASEDIR)\*.*
2900N/A -copy STATUS $(INSTALL)\$(BASEDIR)\*.*
2900N/A -copy LICENSE $(INSTALL)\$(BASEDIR)\*.*
2900N/A -copy CHANGES $(INSTALL)\$(BASEDIR)\*.*
2900N/A -copy VERSIONING $(INSTALL)\$(BASEDIR)\*.*
2900N/A -copy support\dbmmanage.in $(INSTALL)\$(BASEDIR)\bin\dbmmanage.pl
2900N/A -copy support\logresolve.pl.in $(INSTALL)\$(BASEDIR)\bin\logresolve.pl
2900N/A -copy support\split-logfile.in $(INSTALL)\$(BASEDIR)\bin\split-logfile.pl
2900N/A -$(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
2900N/A $(CHKNOT) $(INSTALL)\$(BASEDIR)\conf\extra\nul mkdir $(INSTALL)\$(BASEDIR)\conf\extra
2900N/A -$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs\conf\extra\httpd-autoindex.conf.in >$(INSTALL)\$(BASEDIR)\conf\extra\httpd-autoindex.conf
2900N/A -$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs\conf\extra\httpd-dav.conf.in >$(INSTALL)\$(BASEDIR)\conf\extra\httpd-dav.conf
2900N/A -$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs\conf\extra\httpd-default.conf.in >$(INSTALL)\$(BASEDIR)\conf\extra\httpd-default.conf
2900N/A -$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs\conf\extra\httpd-info.conf.in >$(INSTALL)\$(BASEDIR)\conf\extra\httpd-info.conf
2900N/A -$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs\conf\extra\httpd-languages.conf.in >$(INSTALL)\$(BASEDIR)\conf\extra\httpd-languages.conf
2900N/A -$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs\conf\extra\httpd-manual.conf.in >$(INSTALL)\$(BASEDIR)\conf\extra\httpd-manual.conf
2900N/A -$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs\conf\extra\httpd-mpm.conf.in >$(INSTALL)\$(BASEDIR)\conf\extra\httpd-mpm.conf
2900N/A -$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs\conf\extra\httpd-multilang-errordoc.conf.in >$(INSTALL)\$(BASEDIR)\conf\extra\httpd-multilang-errordoc.conf
2900N/A -$(AWK) -v BDIR=$(BASEDIR) -f build\mkconfnw.awk docs\conf\extra\httpd-userdir.conf.in >$(INSTALL)\$(BASEDIR)\conf\extra\httpd-userdir.conf
2900N/A -$(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
2605N/A -$(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
2900N/A -copy docs\conf\magic $(INSTALL)\$(BASEDIR)\conf\magic
2605N/A -copy docs\conf\mime.types $(INSTALL)\$(BASEDIR)\conf\mime.types
2605N/A -copy docs\conf\charset.conv $(INSTALL)\$(BASEDIR)\conf\charset.conv
2605N/A -copy docs\cgi-examples\printenv $(INSTALL)\$(BASEDIR)\cgi-bin\printenv.pl
2605N/A @xcopy $(XCOPYSW) docs\error $(INSTALL)\$(BASEDIR)\error
2605N/A @xcopy $(XCOPYSW) docs\docroot $(INSTALL)\$(BASEDIR)\htdocs
2605N/A @xcopy $(XCOPYSW) docs\icons $(INSTALL)\$(BASEDIR)\icons
2605N/A @xcopy $(XCOPYSW) docs\man $(INSTALL)\$(BASEDIR)\man
2605N/A @xcopy $(XCOPYSW) docs\manual $(INSTALL)\$(BASEDIR)\manual
2605N/A
2605N/Ainstalldev :: FORCE
2605N/A -copy $(subst /,\,$(AP_WORK))\include\*.h $(INSTALL)\$(BASEDIR)\include\*.*
2605N/A -copy $(subst /,\,$(AP_WORK))\os\netware\*.h $(INSTALL)\$(BASEDIR)\include\*.*
2605N/A -copy $(subst /,\,$(NWOS))\*.imp $(INSTALL)\$(BASEDIR)\lib\*.*
2605N/A -copy $(subst /,\,$(APR))\include\*.h $(INSTALL)\$(BASEDIR)\include\*.*
2605N/A -copy $(subst /,\,$(APRUTIL))\include\*.h $(INSTALL)\$(BASEDIR)\include\*.*
2605N/A -copy $(subst /,\,$(APR))\*.imp $(INSTALL)\$(BASEDIR)\lib\*.*
2900N/A -copy $(subst /,\,$(NWOS))\*.xdc $(INSTALL)\$(BASEDIR)\lib\*.*
2900N/A
2900N/Aprebuild :: FORCE
2900N/A $(MAKE) -C server -f NWGNUMakefile
2605N/A $(MAKE) -C srclib/pcre -f NWGNUMakefile
2605N/A $(CHKNOT) $(PREBUILD_INST)\nul mkdir $(PREBUILD_INST)
2605N/A -copy $(AP_WORK)\server\$(OBJDIR)\*.nlm $(PREBUILD_INST)\*.*
2605N/A -copy $(AP_WORK)\srclib\pcre\$(basename $(OBJDIR))\*.nlm $(PREBUILD_INST)\*.*
2605N/A
2605N/A#
2605N/A# Any specialized rules here
2605N/A#
2605N/A
2605N/Avpath %.c server:modules/arch/netware:modules/http:modules/aaa:modules/mappers
2605N/Avpath %.c modules/generators:modules/metadata:modules/filters:modules/loggers
2605N/Avpath %.c os/netware:server/mpm/netware:srclib/pcre
2605N/A
2605N/A#
2605N/A# Include the 'tail' makefile that has targets that depend on variables defined
2605N/A# in this makefile
2605N/A#
3704N/A
2605N/Ainclude $(AP_WORK)\build\NWGNUtail.inc
2900N/A
3704N/A
2605N/A