NWGNUmakefile revision 286fed73f9d1474652034465d4048247c6e7341f
b1d234eb75e2804e09d89178a76df39c321db51bBrian Wellington#
81f58902eb5a1c1ab22742c72bd6cf318acbc06aTinderbox User# Declare the sub-directories to be built here
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence
ec5347e2c775f027573ce5648b910361aa926c01Automatic UpdaterSUBDIRS = \
b1d234eb75e2804e09d89178a76df39c321db51bBrian Wellington srclib\apr \
b1d234eb75e2804e09d89178a76df39c321db51bBrian Wellington build \
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence support \
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews modules \
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews $(EOLIST)
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# Get the 'head' of the build environment. This includes default targets and
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# paths to tools
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
b1d234eb75e2804e09d89178a76df39c321db51bBrian Wellington
b1d234eb75e2804e09d89178a76df39c321db51bBrian Wellingtoninclude $(AP_WORK)\build\NWGNUhead.inc
dfc015bc7e99019373878f8eb4527f5ebd0e0969Automatic Updater
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence#
b1d234eb75e2804e09d89178a76df39c321db51bBrian Wellington# build this level's files
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David Lawrence
b1d234eb75e2804e09d89178a76df39c321db51bBrian Wellington#
c9c1d174134104a9699945875e0922726af63456Brian Wellington# Make sure all needed macro's are defined
42848e71bc9d1496420bc60d9aa52407a7401266Brian Wellington#
565d0dc22f45e8d81bf6d78073c3753d2820d7c3Brian Wellington
4fc4813eb3bb3c4b0fbcb4b3052ef162d2a1ca04Brian Wellington#
c9c1d174134104a9699945875e0922726af63456Brian Wellington# These directories will be at the beginning of the include list, followed by
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews# INCDIRS
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews#
ad127d839d2e7aa542939a8a336691407e23397eMark AndrewsXINCDIRS += \
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews $(AP_WORK)/srclib/apr/include \
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews $(AP_WORK)/srclib/include/arch/NetWare \
c9c630ee8444c4812ccd8c54cf08a4cf6c0275b9Brian Wellington $(AP_WORK)/srclib/apr-util/include \
c9c630ee8444c4812ccd8c54cf08a4cf6c0275b9Brian Wellington $(AP_WORK)/include \
debd489a44363870f96f75818e89ec27d3cab736Francis Dupont $(AP_WORK)/modules/filters/ \
debd489a44363870f96f75818e89ec27d3cab736Francis Dupont $(AP_WORK)/modules/generators/ \
debd489a44363870f96f75818e89ec27d3cab736Francis Dupont $(AP_WORK)/modules/http/ \
b1d234eb75e2804e09d89178a76df39c321db51bBrian Wellington $(AP_WORK)/modules/loggers/ \
c9c630ee8444c4812ccd8c54cf08a4cf6c0275b9Brian Wellington $(AP_WORK)/modules/mappers/ \
c9c630ee8444c4812ccd8c54cf08a4cf6c0275b9Brian Wellington $(AP_WORK)/modules/proxy/ \
c9c630ee8444c4812ccd8c54cf08a4cf6c0275b9Brian Wellington $(AP_WORK)/os/NetWare \
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David Lawrence $(AP_WORK)/server/mpm/NetWare \
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David Lawrence $(AP_WORK)/srclib/pcre \
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David Lawrence $(NWOS) \
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David Lawrence $(EOLIST)
76c8294c81fb48b1da6e1fc5b83322a4cedb8e58Andreas Gustafsson
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David Lawrence#
42782931073786f98d3d0a617351db40066949a4Mukund Sivaraman# These flags will come after CFLAGS
42782931073786f98d3d0a617351db40066949a4Mukund Sivaraman#
42782931073786f98d3d0a617351db40066949a4Mukund SivaramanXCFLAGS += \
4fc4813eb3bb3c4b0fbcb4b3052ef162d2a1ca04Brian Wellington $(EOLIST)
4fc4813eb3bb3c4b0fbcb4b3052ef162d2a1ca04Brian Wellington
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews#
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David Lawrence# These defines will come after DEFINES
4fc4813eb3bb3c4b0fbcb4b3052ef162d2a1ca04Brian Wellington#
93d6dfaf66258337985427c86181f01fc51f0bb4Mark AndrewsXDEFINES += \
77b8f88f144928eddcca144c348d6ef53e7d5c43Evan Hunt $(EOLIST)
565d0dc22f45e8d81bf6d78073c3753d2820d7c3Brian Wellington
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David Lawrence#
11463c0ac24692e229ec87f307f5e7df3c0a7e10Evan Hunt# These flags will be added to the link.opt file
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David Lawrence#
db503b6dafb75e38a189d163a69daa68fc4f45b3Brian WellingtonXLFLAGS += \
db503b6dafb75e38a189d163a69daa68fc4f45b3Brian Wellington $(EOLIST)
db503b6dafb75e38a189d163a69daa68fc4f45b3Brian Wellington
79d91e915023ffa5fac1bb2f91f19210bb18407cBrian Wellington#
3d3e7bce59e3552a821373862a9bf6fc961a347aBrian Wellington# These values will be appended to the correct variables based on the value of
79d91e915023ffa5fac1bb2f91f19210bb18407cBrian Wellington# RELEASE
79d91e915023ffa5fac1bb2f91f19210bb18407cBrian Wellington#
79d91e915023ffa5fac1bb2f91f19210bb18407cBrian Wellingtonifeq "$(RELEASE)" "debug"
79d91e915023ffa5fac1bb2f91f19210bb18407cBrian WellingtonXINCDIRS += \
eab9975bcf5830a73f18ed8f320ae18ea32775eeEvan Hunt $(EOLIST)
eab9975bcf5830a73f18ed8f320ae18ea32775eeEvan Hunt
42848e71bc9d1496420bc60d9aa52407a7401266Brian WellingtonXCFLAGS += \
a165a17a81ff3285f4f4d79785fafb465e626183Evan Hunt $(EOLIST)
a165a17a81ff3285f4f4d79785fafb465e626183Evan Hunt
39504d4517eaab72095aa538121bac937634550cBrian WellingtonXDEFINES += \
39504d4517eaab72095aa538121bac937634550cBrian Wellington $(EOLIST)
39504d4517eaab72095aa538121bac937634550cBrian Wellington
42848e71bc9d1496420bc60d9aa52407a7401266Brian WellingtonXLFLAGS += \
8f0502e922120f27207fbf6b6dda18f1112e486cEvan Hunt $(EOLIST)
8f0502e922120f27207fbf6b6dda18f1112e486cEvan Huntendif
c02149960459e4406d9e50fb1867433e7f0e8f0dEvan Hunt
c02149960459e4406d9e50fb1867433e7f0e8f0dEvan Huntifeq "$(RELEASE)" "noopt"
c02149960459e4406d9e50fb1867433e7f0e8f0dEvan HuntXINCDIRS += \
c02149960459e4406d9e50fb1867433e7f0e8f0dEvan Hunt $(EOLIST)
c02149960459e4406d9e50fb1867433e7f0e8f0dEvan Hunt
c02149960459e4406d9e50fb1867433e7f0e8f0dEvan HuntXCFLAGS += \
8a198fa776a09beb4dabf40b73a54d9c7bd70ac9Evan Hunt $(EOLIST)
8a198fa776a09beb4dabf40b73a54d9c7bd70ac9Evan Hunt
1946c596b47b0495ce745fe2fff7da799919b0d2Mark AndrewsXDEFINES += \
1946c596b47b0495ce745fe2fff7da799919b0d2Mark Andrews $(EOLIST)
1946c596b47b0495ce745fe2fff7da799919b0d2Mark Andrews
ad127d839d2e7aa542939a8a336691407e23397eMark AndrewsXLFLAGS += \
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews $(EOLIST)
ad127d839d2e7aa542939a8a336691407e23397eMark Andrewsendif
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews
ad127d839d2e7aa542939a8a336691407e23397eMark Andrewsifeq "$(RELEASE)" "release"
ad127d839d2e7aa542939a8a336691407e23397eMark AndrewsXINCDIRS += \
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews $(EOLIST)
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David LawrenceXCFLAGS += \
$(EOLIST)
XDEFINES += \
$(EOLIST)
XLFLAGS += \
$(EOLIST)
endif
#
# These are used by the link target if an NLM is being generated
# This is used by the link 'name' directive to name the nlm. If left blank
# TARGET_nlm (see below) will be used.
#
NLM_NAME = Apache2
#
# This is used by the link '-desc ' directive.
# If left blank, NLM_NAME will be used.
#
NLM_DESCRIPTION = Apache Web Server $(VERSION_STR)
#
# This is used by the '-threadname' directive. If left blank,
# NLM_NAME Thread will be used.
#
NLM_THREAD_NAME = Apache
#
# This is used by the '-screenname' directive. If left blank,
# 'Apache for NetWare' Thread will be used.
#
NLM_SCREEN_NAME = Apache $(VERSION_STR) for NetWare
#
# If this is specified, it will override VERSION value in
# $(AP_WORK)\build\NWGNUenvironment.inc
#
NLM_VERSION =
#
# If this is specified, it will override the default of 64K
#
NLM_STACK_SIZE = 65536
#
# If this is specified it will be used by the link '-entry' directive
#
NLM_ENTRY_SYM = _LibCPrelude
#
# If this is specified it will be used by the link '-exit' directive
#
NLM_EXIT_SYM = _LibCPostlude
#
# 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)/Apache2.nlm \
$(EOLIST)
#
# If there is an LIB target, put it here
#
TARGET_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)/eoc_bucket.o \
$(OBJDIR)/error_bucket.o \
$(OBJDIR)/http_core.o \
$(OBJDIR)/http_protocol.o \
$(OBJDIR)/http_request.o \
$(OBJDIR)/listen.o \
$(OBJDIR)/log.o \
$(OBJDIR)/main.o \
$(OBJDIR)/mod_authz_host.o \
$(OBJDIR)/mod_actions.o \
$(OBJDIR)/mod_alias.o \
$(OBJDIR)/mod_asis.o \
$(OBJDIR)/mod_autoindex.o \
$(OBJDIR)/mod_cgi.o \
$(OBJDIR)/mod_dir.o \
$(OBJDIR)/mod_env.o \
$(OBJDIR)/mod_imap.o \
$(OBJDIR)/mod_include.o \
$(OBJDIR)/mod_log_config.o \
$(OBJDIR)/mod_mime.o \
$(OBJDIR)/mod_negotiation.o \
$(OBJDIR)/mod_netware.o \
$(OBJDIR)/mod_nw_ssl.o \
$(OBJDIR)/mod_setenvif.o \
$(OBJDIR)/mod_so.o \
$(OBJDIR)/mod_userdir.o \
$(OBJDIR)/modules.o \
$(OBJDIR)/mpm_common.o \
$(OBJDIR)/mpm_netware.o \
$(OBJDIR)/pcre.o \
$(OBJDIR)/pcreposix.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_debug.o \
$(OBJDIR)/util_filter.o \
$(OBJDIR)/util_md5.o \
$(OBJDIR)/util_nw.o \
$(OBJDIR)/util_script.o \
$(OBJDIR)/util_time.o \
$(OBJDIR)/util_xml.o \
$(OBJDIR)/vhost.o \
$(EOLIST)
#
# 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 = \
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 \
@ws2nlm.imp \
GetCurrentAddressSpace \
$(EOLIST)
#
# 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
#
FILES_lib_objs = \
$(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 FORCE
-copy $(OBJDIR)\Apache2.nlm $(INSTALL)\Apache2\*.*
-copy ABOUT_APACHE $(INSTALL)\Apache2\*.*
-copy README $(INSTALL)\Apache2\*.*
-copy STATUS $(INSTALL)\Apache2\*.*
-copy LICENSE $(INSTALL)\Apache2\*.*
-copy CHANGES $(INSTALL)\Apache2\*.*
-copy support\dbmmanage.in $(INSTALL)\Apache2\bin\dbmmanage.pl
-copy support\logresolve.pl.in $(INSTALL)\Apache2\bin\logresolve.pl
-awk -f build\mkconfnw.awk docs\conf\httpd-std.conf.in >$(INSTALL)\Apache2\conf\httpd.conf
-copy docs\conf\magic $(INSTALL)\Apache2\conf\magic
-copy docs\conf\mime.types $(INSTALL)\Apache2\conf\mime.types
-copy docs\cgi-examples\printenv $(INSTALL)\Apache2\cgi-bin\printenv.pl
@echo rem copying the docs directories > xc.bat
@echo xcopy docs\error $(INSTALL)\Apache2\error /E /Y >> xc.bat
@echo xcopy docs\docroot $(INSTALL)\Apache2\htdocs /E /Y >> xc.bat
@echo xcopy docs\icons $(INSTALL)\Apache2\icons /E /Y >> xc.bat
@echo xcopy docs\man $(INSTALL)\Apache2\man /E /Y >> xc.bat
@echo xcopy docs\manual $(INSTALL)\Apache2\manual /E /Y >> xc.bat
$(CMD) xc.bat
installdev :: FORCE
-copy $(subst /,\,$(AP_WORK))\include\*.h $(INSTALL)\Apache2\include\*.*
-copy $(subst /,\,$(AP_WORK))\os\netware\*.h $(INSTALL)\Apache2\include\*.*
-copy $(subst /,\,$(NWOS))\*.imp $(INSTALL)\Apache2\lib\*.*
-copy $(subst /,\,$(APR))\include\*.h $(INSTALL)\Apache2\include\*.*
-copy $(subst /,\,$(APRUTIL))\include\*.h $(INSTALL)\Apache2\include\*.*
-copy $(subst /,\,$(APR))\*.imp $(INSTALL)\Apache2\lib\*.*
-copy $(subst /,\,$(NWOS))\*.xdc $(INSTALL)\Apache2\lib\*.*
#
# Any specialized rules here
#
$(OBJDIR)/%.o: server/%.c $(OBJDIR)\cc.opt
@echo compiling $<
$(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
$(OBJDIR)/%.o: modules/arch/netware/%.c $(OBJDIR)\cc.opt
@echo compiling $<
$(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
$(OBJDIR)/%.o: modules/http/%.c $(OBJDIR)\cc.opt
@echo compiling $<
$(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
$(OBJDIR)/%.o: modules/aaa/%.c $(OBJDIR)\cc.opt
@echo compiling $<
$(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
$(OBJDIR)/%.o: modules/mappers/%.c $(OBJDIR)\cc.opt
@echo compiling $<
$(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
$(OBJDIR)/%.o: modules/generators/%.c $(OBJDIR)\cc.opt
@echo compiling $<
$(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
$(OBJDIR)/%.o: modules/metadata/%.c $(OBJDIR)\cc.opt
@echo compiling $<
$(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
$(OBJDIR)/%.o: modules/filters/%.c $(OBJDIR)\cc.opt
@echo compiling $<
$(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
$(OBJDIR)/%.o: modules/loggers/%.c $(OBJDIR)\cc.opt
@echo compiling $<
$(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
$(OBJDIR)/%.o: os/netware/%.c $(OBJDIR)\cc.opt
@echo compiling $<
$(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
$(OBJDIR)/%.o: server/mpm/netware/%.c $(OBJDIR)\cc.opt
@echo compiling $<
$(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
$(OBJDIR)/%.o: srclib/pcre/%.c $(OBJDIR)\cc.opt
@echo compiling $<
$(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
#
# Include the 'tail' makefile that has targets that depend on variables defined
# in this makefile
#
include $(AP_WORK)\build\NWGNUtail.inc