NWGNUmakefile revision 509d30fddc88d129f9ba0f6000b802afa021fe52
3e17185356213124b2e18ecaf1678a676f8e9ba5rbb# Declare the sub-directories to be built here
cf6bf6c34c936e6a6fe731dbce4a5c3c8bf8e9a3gstein $(APR_WORK) \
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb# Get the 'head' of the build environment. This includes default targets and
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj# paths to tools
1bed1439cc86cac95cdbd16a0342e3b5362f7d0crbbinclude $(AP_WORK)\build\NWGNUhead.inc
1bed1439cc86cac95cdbd16a0342e3b5362f7d0crbb# build this level's files
447c6ce3ff08073c44f6785d5256271fcb877512wrowe# Make sure all needed macro's are defined
52feb4fc246900d2999f6a038c5a750d23bd544brbb# These directories will be at the beginning of the include list, followed by
52feb4fc246900d2999f6a038c5a750d23bd544brbbXINCDIRS += \
52feb4fc246900d2999f6a038c5a750d23bd544brbb $(APR)/include \
cf6bf6c34c936e6a6fe731dbce4a5c3c8bf8e9a3gstein $(APRUTIL)/include \
a9de2fcc94b1c6eebb717fe14b80d066598cb8d3trawick $(AP_WORK)/include \
863ec32e13d6c9619414c48b51109f3dca99cbc6wrowe# These flags will come after CFLAGS
75960f20f88dad6bc67892c711c429946063d133stoddardXCFLAGS += \
75960f20f88dad6bc67892c711c429946063d133stoddard# These defines will come after DEFINES
75960f20f88dad6bc67892c711c429946063d133stoddardXDEFINES += \
10b386767f6c87b45937244371cb751f0b454d16wrowe# These flags will be added to the link.opt file
10b386767f6c87b45937244371cb751f0b454d16wroweXLFLAGS += \
f6a6245816cd866361da8c576b1f47c7a54b6610fanf# These values will be appended to the correct variables based on the value of
db3ccce11afac4fc1d4f51a65424412f7480c46cgsteinifeq "$(RELEASE)" "debug"
641cb23141f2238ed09e3b9fa79189225f8a2bcbrbbXINCDIRS += \
79d5106a9b65b956d646f5daae4b94bc79e315b8trawickXCFLAGS += \
79d5106a9b65b956d646f5daae4b94bc79e315b8trawickXDEFINES += \
2a6c49cfaef5979a5a06098f3ce987cd76769409manojXLFLAGS += \
1c6fb1e726ce22694de0e9a957adb67b929e5d4fstoddardifeq "$(RELEASE)" "noopt"
1c6fb1e726ce22694de0e9a957adb67b929e5d4fstoddardXINCDIRS += \
1c6fb1e726ce22694de0e9a957adb67b929e5d4fstoddardXCFLAGS += \
8bed76428f56e5c643174a2d6807c3f18016af5cbjhXDEFINES += \
2aae6faee508221efbeaba5547ca79b7a20ef047stoddardXLFLAGS += \
10b386767f6c87b45937244371cb751f0b454d16wroweifeq "$(RELEASE)" "release"
10b386767f6c87b45937244371cb751f0b454d16wroweXINCDIRS += \
75960f20f88dad6bc67892c711c429946063d133stoddardXCFLAGS += \
d2f8b010487ffa990a9c268df5a25579e7291bcdrbbXDEFINES += \
0bff2f28ef945280c17099c142126178a78e1e54manojXLFLAGS += \
0bff2f28ef945280c17099c142126178a78e1e54manoj# These are used by the link target if an NLM is being generated
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard# This is used by the link 'name' directive to name the nlm. If left blank
75960f20f88dad6bc67892c711c429946063d133stoddard# TARGET_nlm (see below) will be used.
302dc1f7b3feee23a91ad8f3cf3cb2edd95a557bmanojNLM_NAME = Apache2
302dc1f7b3feee23a91ad8f3cf3cb2edd95a557bmanoj# This is used by the link '-desc ' directive.
ff849e4163ed879288f0df15f78b6c9d278ec804fanf# If left blank, NLM_NAME will be used.
9805ac88e1befa6dea11d8513023f150d8f8e807fanfNLM_DESCRIPTION = Apache Web Server $(VERSION_STR)
9805ac88e1befa6dea11d8513023f150d8f8e807fanf# This is used by the '-threadname' directive. If left blank,
cf6bf6c34c936e6a6fe731dbce4a5c3c8bf8e9a3gstein# NLM_NAME Thread will be used.
447c6ce3ff08073c44f6785d5256271fcb877512wroweNLM_THREAD_NAME = Apache
447c6ce3ff08073c44f6785d5256271fcb877512wrowe# This is used by the '-screenname' directive. If left blank,
447c6ce3ff08073c44f6785d5256271fcb877512wrowe# 'Apache for NetWare' Thread will be used.
cf6bf6c34c936e6a6fe731dbce4a5c3c8bf8e9a3gsteinNLM_SCREEN_NAME = Apache $(VERSION_STR) for NetWare
dd4713dc5b186f4d1be7b88f86608fdb84cbe5d5gstein# If this is specified, it will override VERSION value in
0eb7ca6cf812d98c534661ac474e873a32bf6325gstein# $(AP_WORK)\build\NWGNUenvironment.inc
8d07897b52e3b7055874501f8a499e75800db206gsteinNLM_VERSION =
79d5106a9b65b956d646f5daae4b94bc79e315b8trawick# If this is specified, it will override the default of 64K
79d5106a9b65b956d646f5daae4b94bc79e315b8trawickNLM_STACK_SIZE = 65536
6fa71a1bd8c61518b05f5798a7a1594c270e78afrbb# If this is specified it will be used by the link '-entry' directive
14cccaddba3a9263cf0d0ddc311e18f3e3dc9b0fgsteinNLM_ENTRY_SYM = _LibCPrelude
14cccaddba3a9263cf0d0ddc311e18f3e3dc9b0fgstein# If this is specified it will be used by the link '-exit' directive
14cccaddba3a9263cf0d0ddc311e18f3e3dc9b0fgsteinNLM_EXIT_SYM = _LibCPostlude
eb3def494ba5580320dfe1dd47b4d8b05519cb74gstein# If this is specified it will be used by the link '-check' directive
eb3def494ba5580320dfe1dd47b4d8b05519cb74gsteinNLM_CHECK_SYM = _LibCCheckUnload
823c303d33c9e637a83d82208bcbafaf5f532d7bgstein# If these are specified it will be used by the link '-flags' directive
64ad864fa0f4493eebb181e393b40a8a90beccb9coarNLM_FLAGS = PSEUDOPREEMPTION
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# If this is specified it will be linked in with the XDCData option in the def
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
28d1da9ca818f831ea491f110dafcc10f7f07050coar# by setting APACHE_UNIPROC in the environment
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# If there is an NLM target, put it here
64ad864fa0f4493eebb181e393b40a8a90beccb9coarTARGET_nlm = \
28d1da9ca818f831ea491f110dafcc10f7f07050coar# If there is an LIB target, put it here
64ad864fa0f4493eebb181e393b40a8a90beccb9coarTARGET_lib = \
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# These are the OBJ files needed to create the NLM target above.
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# Paths must all use the '/' character
28d1da9ca818f831ea491f110dafcc10f7f07050coarFILES_nlm_objs = \
64ad864fa0f4493eebb181e393b40a8a90beccb9coar $(OBJDIR)/config.o \
28d1da9ca818f831ea491f110dafcc10f7f07050coar $(OBJDIR)/core.o \
64ad864fa0f4493eebb181e393b40a8a90beccb9coar $(OBJDIR)/listen.o \
64ad864fa0f4493eebb181e393b40a8a90beccb9coar $(OBJDIR)/log.o \
28d1da9ca818f831ea491f110dafcc10f7f07050coar $(OBJDIR)/main.o \
28d1da9ca818f831ea491f110dafcc10f7f07050coar $(OBJDIR)/mod_so.o \
28d1da9ca818f831ea491f110dafcc10f7f07050coar $(OBJDIR)/pcre.o \
64ad864fa0f4493eebb181e393b40a8a90beccb9coar $(OBJDIR)/util.o \
28d1da9ca818f831ea491f110dafcc10f7f07050coar $(OBJDIR)/vhost.o \
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# These are the LIB files needed to create the NLM target above.
28d1da9ca818f831ea491f110dafcc10f7f07050coar# These will be added as a library command in the link.opt file.
64ad864fa0f4493eebb181e393b40a8a90beccb9coarFILES_nlm_libs = \
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# These are the modules that the above NLM target depends on to load.
28d1da9ca818f831ea491f110dafcc10f7f07050coar# These will be added as a module command in the link.opt file.
64ad864fa0f4493eebb181e393b40a8a90beccb9coarFILES_nlm_modules = \
28d1da9ca818f831ea491f110dafcc10f7f07050coar# If the nlm has a msg file, put it's path here
64ad864fa0f4493eebb181e393b40a8a90beccb9coarFILE_nlm_msg =
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# If the nlm has a hlp file put it's path here
64ad864fa0f4493eebb181e393b40a8a90beccb9coarFILE_nlm_hlp =
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# If this is specified, it will override $(NWOS)\copyright.txt.
28d1da9ca818f831ea491f110dafcc10f7f07050coarFILE_nlm_copyright =
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# Any additional imports go here
64ad864fa0f4493eebb181e393b40a8a90beccb9coarFILES_nlm_Ximports = \
64ad864fa0f4493eebb181e393b40a8a90beccb9coar GetCurrentAddressSpace \
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# Any symbols exported to here
28d1da9ca818f831ea491f110dafcc10f7f07050coarFILES_nlm_exports = \
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# These are the OBJ files needed to create the LIB target above.
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# Paths must all use the '/' character
28d1da9ca818f831ea491f110dafcc10f7f07050coarFILES_lib_objs = \
28d1da9ca818f831ea491f110dafcc10f7f07050coar# implement targets and dependancies (leave this section alone)
64ad864fa0f4493eebb181e393b40a8a90beccb9coarlibs :: $(OBJDIR) $(TARGET_lib)
64ad864fa0f4493eebb181e393b40a8a90beccb9coarnlms :: libs $(TARGET_nlm)
28d1da9ca818f831ea491f110dafcc10f7f07050coar# Updated this target to create necessary directories and copy files to the
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
64ad864fa0f4493eebb181e393b40a8a90beccb9coarinstall :: nlms FORCE
28d1da9ca818f831ea491f110dafcc10f7f07050coar -copy $(OBJDIR)\Apache2.nlm $(INSTALL)\Apache2\*.*
64ad864fa0f4493eebb181e393b40a8a90beccb9coar -copy ABOUT_APACHE $(INSTALL)\Apache2\*.*
64ad864fa0f4493eebb181e393b40a8a90beccb9coar -copy README $(INSTALL)\Apache2\*.*
64ad864fa0f4493eebb181e393b40a8a90beccb9coar -copy STATUS $(INSTALL)\Apache2\*.*
28d1da9ca818f831ea491f110dafcc10f7f07050coar -copy LICENSE $(INSTALL)\Apache2\*.*
64ad864fa0f4493eebb181e393b40a8a90beccb9coar -copy CHANGES $(INSTALL)\Apache2\*.*
64ad864fa0f4493eebb181e393b40a8a90beccb9coar -copy support\dbmmanage.in $(INSTALL)\Apache2\bin\dbmmanage.pl
64ad864fa0f4493eebb181e393b40a8a90beccb9coar -copy support\logresolve.pl.in $(INSTALL)\Apache2\bin\logresolve.pl
28d1da9ca818f831ea491f110dafcc10f7f07050coar -awk -f build\mkconfnw.awk docs\conf\httpd.conf.in >$(INSTALL)\Apache2\conf\httpd.conf
64ad864fa0f4493eebb181e393b40a8a90beccb9coar $(CHKNOT) $(INSTALL)\Apache2\conf\extra\nul mkdir $(INSTALL)\Apache2\conf\extra
64ad864fa0f4493eebb181e393b40a8a90beccb9coar -awk -f build\mkconfnw.awk docs\conf\extra\httpd-autoindex.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-autoindex.conf
64ad864fa0f4493eebb181e393b40a8a90beccb9coar -awk -f build\mkconfnw.awk docs\conf\extra\httpd-dav.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-dav.conf
28d1da9ca818f831ea491f110dafcc10f7f07050coar -awk -f build\mkconfnw.awk docs\conf\extra\httpd-default.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-default.conf
64ad864fa0f4493eebb181e393b40a8a90beccb9coar -awk -f build\mkconfnw.awk docs\conf\extra\httpd-info.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-info.conf
64ad864fa0f4493eebb181e393b40a8a90beccb9coar -awk -f build\mkconfnw.awk docs\conf\extra\httpd-languages.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-languages.conf
64ad864fa0f4493eebb181e393b40a8a90beccb9coar -awk -f build\mkconfnw.awk docs\conf\extra\httpd-manual.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-manual.conf
28d1da9ca818f831ea491f110dafcc10f7f07050coar -awk -f build\mkconfnw.awk docs\conf\extra\httpd-mpm.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-mpm.conf
64ad864fa0f4493eebb181e393b40a8a90beccb9coar -awk -f build\mkconfnw.awk docs\conf\extra\httpd-multilang-errordoc.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-multilang-errordoc.conf
64ad864fa0f4493eebb181e393b40a8a90beccb9coar -awk -v SSL=1 -f build\mkconfnw.awk <nul >$(INSTALL)\Apache2\conf\extra\httpd-ssl.conf
64ad864fa0f4493eebb181e393b40a8a90beccb9coar -awk -f build\mkconfnw.awk docs\conf\extra\httpd-userdir.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-userdir.conf
64ad864fa0f4493eebb181e393b40a8a90beccb9coar -awk -f build\mkconfnw.awk docs\conf\extra\httpd-vhosts.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-vhosts.conf
28d1da9ca818f831ea491f110dafcc10f7f07050coar -copy docs\conf\magic $(INSTALL)\Apache2\conf\magic
64ad864fa0f4493eebb181e393b40a8a90beccb9coar -copy docs\conf\mime.types $(INSTALL)\Apache2\conf\mime.types
64ad864fa0f4493eebb181e393b40a8a90beccb9coar -copy docs\conf\charset.conv $(INSTALL)\Apache2\conf\charset.conv
64ad864fa0f4493eebb181e393b40a8a90beccb9coar -copy docs\cgi-examples\printenv $(INSTALL)\Apache2\cgi-bin\printenv.pl
64ad864fa0f4493eebb181e393b40a8a90beccb9coar @echo rem copying the docs directories > xc.bat
28d1da9ca818f831ea491f110dafcc10f7f07050coar @echo xcopy docs\error $(INSTALL)\Apache2\error $(XCOPYSW) >> xc.bat
64ad864fa0f4493eebb181e393b40a8a90beccb9coar @echo xcopy docs\docroot $(INSTALL)\Apache2\htdocs $(XCOPYSW) >> xc.bat
64ad864fa0f4493eebb181e393b40a8a90beccb9coar @echo xcopy docs\icons $(INSTALL)\Apache2\icons $(XCOPYSW) >> xc.bat
64ad864fa0f4493eebb181e393b40a8a90beccb9coar @echo xcopy docs\man $(INSTALL)\Apache2\man $(XCOPYSW) >> xc.bat
28d1da9ca818f831ea491f110dafcc10f7f07050coar @echo xcopy docs\manual $(INSTALL)\Apache2\manual $(XCOPYSW) >> xc.bat
64ad864fa0f4493eebb181e393b40a8a90beccb9coarinstalldev :: FORCE
64ad864fa0f4493eebb181e393b40a8a90beccb9coar -copy $(subst /,\,$(AP_WORK))\include\*.h $(INSTALL)\Apache2\include\*.*
28d1da9ca818f831ea491f110dafcc10f7f07050coar -copy $(subst /,\,$(AP_WORK))\os\netware\*.h $(INSTALL)\Apache2\include\*.*
64ad864fa0f4493eebb181e393b40a8a90beccb9coar -copy $(subst /,\,$(NWOS))\*.imp $(INSTALL)\Apache2\lib\*.*
64ad864fa0f4493eebb181e393b40a8a90beccb9coar -copy $(subst /,\,$(APR))\include\*.h $(INSTALL)\Apache2\include\*.*
64ad864fa0f4493eebb181e393b40a8a90beccb9coar -copy $(subst /,\,$(APRUTIL))\include\*.h $(INSTALL)\Apache2\include\*.*
28d1da9ca818f831ea491f110dafcc10f7f07050coar -copy $(subst /,\,$(APR))\*.imp $(INSTALL)\Apache2\lib\*.*
64ad864fa0f4493eebb181e393b40a8a90beccb9coar -copy $(subst /,\,$(NWOS))\*.xdc $(INSTALL)\Apache2\lib\*.*
64ad864fa0f4493eebb181e393b40a8a90beccb9coarprebuild :: FORCE
28d1da9ca818f831ea491f110dafcc10f7f07050coar $(MAKE) -C server -f NWGNUMakefile
64ad864fa0f4493eebb181e393b40a8a90beccb9coar $(MAKE) -C srclib/pcre -f NWGNUMakefile
64ad864fa0f4493eebb181e393b40a8a90beccb9coar $(MAKE) -C $(APU_WORK)/uri -f NWGNUMakefile
64ad864fa0f4493eebb181e393b40a8a90beccb9coar $(CHKNOT) $(PREBUILD_INST)\nul mkdir $(PREBUILD_INST)
64ad864fa0f4493eebb181e393b40a8a90beccb9coar -copy $(AP_WORK)\server\$(OBJDIR)\*.nlm $(PREBUILD_INST)\*.*
28d1da9ca818f831ea491f110dafcc10f7f07050coar -copy $(AP_WORK)\srclib\pcre\$(basename $(OBJDIR))\*.nlm $(PREBUILD_INST)\*.*
64ad864fa0f4493eebb181e393b40a8a90beccb9coar -copy $(APU_WORK)\uri\$(basename $(OBJDIR))\*.nlm $(PREBUILD_INST)\*.*
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# Any specialized rules here
28d1da9ca818f831ea491f110dafcc10f7f07050coarvpath %.c server:modules/arch/netware:modules/http:modules/aaa:modules/mappers
64ad864fa0f4493eebb181e393b40a8a90beccb9coarvpath %.c modules/generators:modules/metadata:modules/filters:modules/loggers
28d1da9ca818f831ea491f110dafcc10f7f07050coar# Include the 'tail' makefile that has targets that depend on variables defined
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# in this makefile
28d1da9ca818f831ea491f110dafcc10f7f07050coarinclude $(AP_WORK)\build\NWGNUtail.inc