NWGNUmakefile revision 892aaf5c314ef8e7b3ba53b5c5259b729f014bc1
4623N/A#
3809N/A# Declare the sub-directories to be built here
4070N/A#
4070N/A
4070N/ASUBDIRS = \
4070N/A srclib\apr \
4070N/A build \
4070N/A support \
4070N/A modules \
4070N/A $(EOLIST)
4070N/A
4070N/A#
4070N/A# Get the 'head' of the build environment. This includes default targets and
4070N/A# paths to tools
4070N/A#
4070N/A
4626N/Ainclude $(AP_WORK)\build\NWGNUhead.inc
4626N/A
3809N/A#
4626N/A# build this level's files
3809N/A
3809N/A#
3809N/A# Make sure all needed macro's are defined
4626N/A#
3809N/A
3809N/A#
4626N/A# These directories will be at the beginning of the include list, followed by
4070N/A# INCDIRS
3809N/A#
4626N/AXINCDIRS += \
3809N/A $(AP_WORK)/srclib/apr/include \
4070N/A $(AP_WORK)/srclib/include/arch/NetWare \
4626N/A $(AP_WORK)/srclib/apr-util/include \
3809N/A $(AP_WORK)/include \
3809N/A $(AP_WORK)/modules/filters/ \
3809N/A $(AP_WORK)/modules/generators/ \
4070N/A $(AP_WORK)/modules/http/ \
4626N/A $(AP_WORK)/modules/loggers/ \
3809N/A $(AP_WORK)/modules/mappers/ \
3809N/A $(AP_WORK)/modules/proxy/ \
4070N/A $(AP_WORK)/os/NetWare \
3809N/A $(AP_WORK)/server/mpm/NetWare \
4070N/A $(AP_WORK)/srclib/pcre \
4070N/A $(NWOS) \
4070N/A $(EOLIST)
4070N/A
4070N/A#
4626N/A# These flags will come after CFLAGS
4626N/A#
4626N/AXCFLAGS += \
4626N/A $(EOLIST)
4626N/A
4626N/A#
3809N/A# These defines will come after DEFINES
3809N/A#
4070N/AXDEFINES += \
3809N/A $(EOLIST)
4626N/A
4626N/A#
4626N/A# These flags will be added to the link.opt file
3809N/A#
3809N/AXLFLAGS += \
4626N/A $(EOLIST)
4626N/A
4626N/A#
4626N/A# These values will be appended to the correct variables based on the value of
4626N/A# RELEASE
4626N/A#
4626N/Aifeq "$(RELEASE)" "debug"
4626N/AXINCDIRS += \
4626N/A $(EOLIST)
4626N/A
4626N/AXCFLAGS += \
4626N/A $(EOLIST)
4626N/A
4626N/AXDEFINES += \
4626N/A $(EOLIST)
4626N/A
4626N/AXLFLAGS += \
4626N/A $(EOLIST)
4626N/Aendif
3809N/A
3809N/Aifeq "$(RELEASE)" "noopt"
3809N/AXINCDIRS += \
3809N/A $(EOLIST)
3809N/A
3809N/AXCFLAGS += \
4626N/A $(EOLIST)
4626N/A
3809N/AXDEFINES += \
3809N/A $(EOLIST)
3809N/A
3809N/AXLFLAGS += \
3809N/A $(EOLIST)
4626N/Aendif
4626N/A
4626N/Aifeq "$(RELEASE)" "release"
4626N/AXINCDIRS += \
4626N/A $(EOLIST)
4626N/A
4626N/AXCFLAGS += \
4626N/A $(EOLIST)
4626N/A
4626N/AXDEFINES += \
4626N/A $(EOLIST)
4626N/A
4626N/AXLFLAGS += \
4626N/A $(EOLIST)
4626N/Aendif
4626N/A
4626N/A#
4626N/A# These are used by the link target if an NLM is being generated
4626N/A# This is used by the link 'name' directive to name the nlm. If left blank
4626N/A# TARGET_nlm (see below) will be used.
4626N/A#
4626N/ANLM_NAME = Apache2
4626N/A
4626N/A#
4626N/A# This is used by the link '-desc ' directive.
4626N/A# If left blank, NLM_NAME will be used.
4626N/A#
3809N/ANLM_DESCRIPTION = Apache Web Server $(VERSION_STR)
3809N/A
3809N/A#
3809N/A# This is used by the '-threadname' directive. If left blank,
3809N/A# NLM_NAME Thread will be used.
3809N/A#
3809N/ANLM_THREAD_NAME = Apache
4626N/A
4626N/A#
4626N/A# This is used by the '-screenname' directive. If left blank,
3809N/A# 'Apache for NetWare' Thread will be used.
4626N/A#
4626N/ANLM_SCREEN_NAME = Apache $(VERSION_STR) for NetWare
4626N/A
4626N/A
4626N/A#
4626N/A# If this is specified, it will override VERSION value in
4626N/A# $(AP_WORK)\build\NWGNUenvironment.inc
4070N/A#
4070N/ANLM_VERSION =
3809N/A
3809N/A#
3809N/A# If this is specified, it will override the default of 64K
3809N/A#
3809N/ANLM_STACK_SIZE = 65536
3809N/A
4626N/A
4626N/A#
3809N/A# If this is specified it will be used by the link '-entry' directive
3809N/A#
3809N/ANLM_ENTRY_SYM = _LibCPrelude
3809N/A
3809N/A#
3809N/A# If this is specified it will be used by the link '-exit' directive
3809N/A#
3809N/ANLM_EXIT_SYM = _LibCPostlude
3809N/A
3809N/A#
3809N/A# If this is specified it will be used by the link '-check' directive
3809N/A#
3809N/ANLM_CHECK_SYM = _LibCCheckUnload
3809N/A
3809N/A#
3809N/A# If these are specified it will be used by the link '-flags' directive
3809N/A#
3809N/ANLM_FLAGS = PSEUDOPREEMPTION
3809N/A
3809N/A#
3809N/A# If this is specified it will be linked in with the XDCData option in the def
3809N/A# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
3809N/A# by setting APACHE_UNIPROC in the environment
3809N/A#
3809N/AXDCDATA =
3809N/A
3809N/A#
3809N/A# If there is an NLM target, put it here
3809N/A#
3809N/ATARGET_nlm = \
3809N/A $(OBJDIR)/Apache2.nlm \
3809N/A $(EOLIST)
3809N/A
3809N/A#
3809N/A# If there is an LIB target, put it here
3809N/A#
3809N/ATARGET_lib = \
3809N/A $(EOLIST)
3809N/A
3809N/A#
3809N/A# These are the OBJ files needed to create the NLM target above.
3809N/A# Paths must all use the '/' character
3809N/A#
3809N/AFILES_nlm_objs = \
3809N/A $(OBJDIR)/buildmark.o \
3809N/A $(OBJDIR)/config.o \
3809N/A $(OBJDIR)/connection.o \
3809N/A $(OBJDIR)/core.o \
4626N/A $(OBJDIR)/eoc_bucket.o \
3809N/A $(OBJDIR)/error_bucket.o \
3809N/A $(OBJDIR)/http_core.o \
3809N/A $(OBJDIR)/http_protocol.o \
3809N/A $(OBJDIR)/http_request.o \
3809N/A $(OBJDIR)/listen.o \
3809N/A $(OBJDIR)/log.o \
4070N/A $(OBJDIR)/main.o \
4070N/A $(OBJDIR)/mod_authz_host.o \
4070N/A $(OBJDIR)/mod_actions.o \
4070N/A $(OBJDIR)/mod_alias.o \
4070N/A $(OBJDIR)/mod_asis.o \
4070N/A $(OBJDIR)/mod_autoindex.o \
4070N/A $(OBJDIR)/mod_cgi.o \
4070N/A $(OBJDIR)/mod_dir.o \
4070N/A $(OBJDIR)/mod_env.o \
4070N/A $(OBJDIR)/mod_imap.o \
4070N/A $(OBJDIR)/mod_include.o \
4070N/A $(OBJDIR)/mod_log_config.o \
4070N/A $(OBJDIR)/mod_mime.o \
4070N/A $(OBJDIR)/mod_negotiation.o \
4070N/A $(OBJDIR)/mod_netware.o \
4070N/A $(OBJDIR)/mod_nw_ssl.o \
4070N/A $(OBJDIR)/mod_setenvif.o \
4070N/A $(OBJDIR)/mod_so.o \
4070N/A $(OBJDIR)/mod_userdir.o \
4070N/A $(OBJDIR)/modules.o \
4070N/A $(OBJDIR)/mpm_common.o \
4070N/A $(OBJDIR)/mpm_netware.o \
4070N/A $(OBJDIR)/pcre.o \
4070N/A $(OBJDIR)/pcreposix.o \
4070N/A $(OBJDIR)/protocol.o \
4070N/A $(OBJDIR)/provider.o \
4070N/A $(OBJDIR)/request.o \
4070N/A $(OBJDIR)/scoreboard.o \
4070N/A $(OBJDIR)/util.o \
4070N/A $(OBJDIR)/util_cfgtree.o \
4070N/A $(OBJDIR)/util_charset.o \
4070N/A $(OBJDIR)/util_debug.o \
4070N/A $(OBJDIR)/util_filter.o \
4070N/A $(OBJDIR)/util_md5.o \
4070N/A $(OBJDIR)/util_nw.o \
4070N/A $(OBJDIR)/util_script.o \
4070N/A $(OBJDIR)/util_time.o \
4070N/A $(OBJDIR)/util_xml.o \
4070N/A $(OBJDIR)/vhost.o \
4070N/A $(EOLIST)
4070N/A
4070N/A#
4070N/A# These are the LIB files needed to create the NLM target above.
4070N/A# These will be added as a library command in the link.opt file.
4070N/A#
4070N/AFILES_nlm_libs = \
4070N/A libcpre.o \
4070N/A $(EOLIST)
4070N/A
4070N/A#
4070N/A# These are the modules that the above NLM target depends on to load.
4070N/A# These will be added as a module command in the link.opt file.
4070N/A#
4070N/AFILES_nlm_modules = \
4070N/A aprlib \
4070N/A Libc \
4070N/A $(EOLIST)
4070N/A
4070N/A#
4070N/A# If the nlm has a msg file, put it's path here
4070N/A#
4070N/AFILE_nlm_msg =
4070N/A
4070N/A#
4070N/A# If the nlm has a hlp file put it's path here
4070N/A#
4070N/AFILE_nlm_hlp =
4070N/A
4070N/A#
4070N/A# If this is specified, it will override $(NWOS)\copyright.txt.
4070N/A#
4070N/AFILE_nlm_copyright =
4070N/A
4070N/A#
4070N/A# Any additional imports go here
4070N/A#
4070N/AFILES_nlm_Ximports = \
4070N/A @netware.imp \
4070N/A @$(APR)/aprlib.imp \
4070N/A @libc.imp \
4070N/A @ws2nlm.imp \
4070N/A GetCurrentAddressSpace \
4070N/A $(EOLIST)
4070N/A
4070N/A#
4070N/A# Any symbols exported to here
4070N/A#
4070N/AFILES_nlm_exports = \
4070N/A @$(NWOS)/httpd.imp \
4070N/A $(EOLIST)
4070N/A
4070N/A#
4070N/A# These are the OBJ files needed to create the LIB target above.
4070N/A# Paths must all use the '/' character
4070N/A#
4070N/AFILES_lib_objs = \
4070N/A $(EOLIST)
4070N/A
4070N/A#
4070N/A# implement targets and dependancies (leave this section alone)
4070N/A#
4070N/A
4070N/Alibs :: $(OBJDIR) $(TARGET_lib)
4070N/A
4070N/Anlms :: libs $(TARGET_nlm)
4070N/A
4070N/A#
4070N/A# Updated this target to create necessary directories and copy files to the
4070N/A# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
4070N/A#
4070N/Ainstall :: nlms FORCE
4070N/A -copy $(OBJDIR)\Apache2.nlm $(INSTALL)\Apache2\*.*
4070N/A -copy ABOUT_APACHE $(INSTALL)\Apache2\*.*
4070N/A -copy README $(INSTALL)\Apache2\*.*
4070N/A -copy STATUS $(INSTALL)\Apache2\*.*
4070N/A -copy LICENSE $(INSTALL)\Apache2\*.*
4070N/A -copy CHANGES $(INSTALL)\Apache2\*.*
4070N/A -copy support\dbmmanage.in $(INSTALL)\Apache2\bin\dbmmanage.pl
4070N/A -copy support\logresolve.pl.in $(INSTALL)\Apache2\bin\logresolve.pl
4070N/A -awk -f build\mkconfnw.awk docs\conf\httpd-std.conf.in >$(INSTALL)\Apache2\conf\httpd.conf
4070N/A -copy docs\conf\magic $(INSTALL)\Apache2\conf\magic
4070N/A -copy docs\conf\mime.types $(INSTALL)\Apache2\conf\mime.types
4070N/A -copy docs\cgi-examples\printenv $(INSTALL)\Apache2\cgi-bin\printenv.pl
4070N/A @echo rem copying the docs directories > xc.bat
4070N/A @echo xcopy docs\error $(INSTALL)\Apache2\error /E /Y >> xc.bat
4070N/A @echo xcopy docs\docroot $(INSTALL)\Apache2\htdocs /E /Y >> xc.bat
4070N/A @echo xcopy docs\icons $(INSTALL)\Apache2\icons /E /Y >> xc.bat
4070N/A @echo xcopy docs\man $(INSTALL)\Apache2\man /E /Y >> xc.bat
4070N/A @echo xcopy docs\manual $(INSTALL)\Apache2\manual /E /Y >> xc.bat
4070N/A $(CMD) xc.bat
4070N/A
4070N/A
4070N/A
4070N/Ainstalldev :: FORCE
4070N/A -copy $(subst /,\,$(AP_WORK))\include\*.h $(INSTALL)\Apache2\include\*.*
4626N/A -copy $(subst /,\,$(AP_WORK))\os\netware\*.h $(INSTALL)\Apache2\include\*.*
4626N/A -copy $(subst /,\,$(NWOS))\*.imp $(INSTALL)\Apache2\lib\*.*
4626N/A -copy $(subst /,\,$(APR))\include\*.h $(INSTALL)\Apache2\include\*.*
4626N/A -copy $(subst /,\,$(APRUTIL))\include\*.h $(INSTALL)\Apache2\include\*.*
4626N/A -copy $(subst /,\,$(APR))\*.imp $(INSTALL)\Apache2\lib\*.*
4626N/A -copy $(subst /,\,$(NWOS))\*.xdc $(INSTALL)\Apache2\lib\*.*
4626N/A
4626N/A#
4626N/A# Any specialized rules here
4626N/A#
4626N/A
4626N/A$(OBJDIR)/%.o: server/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
4626N/A @echo compiling $<
4626N/A $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
4626N/A
4626N/A$(OBJDIR)/%.o: modules/arch/netware/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
4626N/A @echo compiling $<
4626N/A $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
4626N/A
4626N/A$(OBJDIR)/%.o: modules/http/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
4626N/A @echo compiling $<
4626N/A $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
4626N/A
4626N/A$(OBJDIR)/%.o: modules/aaa/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
4626N/A @echo compiling $<
4626N/A $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
4626N/A
4626N/A$(OBJDIR)/%.o: modules/mappers/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
4626N/A @echo compiling $<
4626N/A $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
4626N/A
4626N/A$(OBJDIR)/%.o: modules/generators/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
4626N/A @echo compiling $<
4626N/A $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
4626N/A
4626N/A$(OBJDIR)/%.o: modules/metadata/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
4626N/A @echo compiling $<
4626N/A $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
4626N/A
4626N/A$(OBJDIR)/%.o: modules/filters/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
4626N/A @echo compiling $<
4626N/A $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
4626N/A
4626N/A$(OBJDIR)/%.o: modules/loggers/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
4626N/A @echo compiling $<
4626N/A $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
4626N/A
4626N/A$(OBJDIR)/%.o: os/netware/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
4626N/A @echo compiling $<
4626N/A $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
4626N/A
4626N/A$(OBJDIR)/%.o: server/mpm/netware/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
4626N/A @echo compiling $<
4626N/A $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
4626N/A
4626N/A$(OBJDIR)/%.o: srclib/pcre/%.c $(OBJDIR)\$(NLM_NAME)_cc.opt
4626N/A @echo compiling $<
4626N/A $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\$(NLM_NAME)_cc.opt
3809N/A
3809N/A#
3809N/A# Include the 'tail' makefile that has targets that depend on variables defined
# in this makefile
#
include $(AP_WORK)\build\NWGNUtail.inc