NWGNUmakefile revision 9558e9fdb620dd6f42ca93beac6c3ab734086706
c30ef289fe64ac7fedc44cfcc6b439f0f8458b4cgregames# Declare the sub-directories to be built here
8980b873c9f3df8105b290d8e0611ae218e44b46thommay $(APR_WORK) \
5cc2d5d6cb446d4688466dc6da990bbd517d8969jorton# Get the 'head' of the build environment. This includes default targets and
5c4e29c5f77fbc967d78886ab378b9500267b0fbtrawick# paths to tools
cda7c69f374fb272aaf10ca80c63b0700b61a509rederpjinclude $(AP_WORK)\build\NWGNUhead.inc
f8dd393b2c60c61282a46c51f82fdb9b89cd9aferederpj# build this level's files
f8dd393b2c60c61282a46c51f82fdb9b89cd9aferederpj# Make sure all needed macro's are defined
1fbf6ba0f5207e6637b49f9a9dfcc779bbe952a9trawick# These directories will be at the beginning of the include list, followed by
922d495b709b0dc09a7d918fdf8874dc23c1aef0ndXINCDIRS += \
6c4c113ce85934b11c9e78399e1bb8ec7a568af9nd $(APR)/include \
6c4c113ce85934b11c9e78399e1bb8ec7a568af9nd $(APRUTIL)/include \
679cafe33462d8c6bd0a74cc4359e561d19a0aafnd $(AP_WORK)/include \
81ef3d132c8f335006465f297c42319f8734825dnd $(AP_WORK)/modules/http/ \
925932040ee7871b6a2418edc3b4b6f4378bbe2and $(AP_WORK)/modules/proxy/ \
3caed8f01e7d67f3ad5d47cb28bb4e43131652fdjerenkrantz# These flags will come after CFLAGS
e127d82e8afc2f885fe2183b68d4a110580d21dfjwoolley# These defines will come after DEFINES
e127d82e8afc2f885fe2183b68d4a110580d21dfjwoolleyXDEFINES += \
5b953b9aeef5b38cae481e062a7b5ac209a6170end# These flags will be added to the link.opt file
fd99717a52886f7d9f9f73be2080d3fdc2ec4bd6ndXLFLAGS += \
5c76205ce580dbac0020fbba74bcf211de3923d3nd# These values will be appended to the correct variables based on the value of
5fb2e8564729922524cd011b11e2d4f5d76f5a8dndifeq "$(RELEASE)" "debug"
5fb2e8564729922524cd011b11e2d4f5d76f5a8dndXINCDIRS += \
987c2c2ff2f19f306357f79d3280b347d96c470fndXCFLAGS += \
a4dd3688dd6645faf0c1c1bfb22017c8f03d5b24ndXDEFINES += \
f2fe083bb9fabd2af7eb39d4f154f27a451bb5a4ndXLFLAGS += \
7de6cb79f71a9007ba2b1e786cbad8b84f05d101ndifeq "$(RELEASE)" "noopt"
7de6cb79f71a9007ba2b1e786cbad8b84f05d101ndXINCDIRS += \
aa9b03a5f32732c0caaef03a7ed78ffb290e29e4trawickXCFLAGS += \
d1c46782edbd6bd5ae4592c0174969950c5ca8aetrawickXDEFINES += \
ab56518227d474ee08f039e4c5540011c1b8a913trawickXLFLAGS += \
4e330708371c3e9b04d1043f0a1ac9368bfbd768coarifeq "$(RELEASE)" "release"
dbb916b882c33a4e340b0dba7d75506cfdd85640trawickXINCDIRS += \
dbb916b882c33a4e340b0dba7d75506cfdd85640trawickXCFLAGS += \
a18a308d7a942230edcde1bf00d7ae9b4b143c90trawickXDEFINES += \
9098f795fab5db41a52b6b82fa475e8f9b3850f0trawickXLFLAGS += \
3b872593fd5f61981d9dd69a4b0b5d5f5f668929trawick# These are used by the link target if an NLM is being generated
3b872593fd5f61981d9dd69a4b0b5d5f5f668929trawick# This is used by the link 'name' directive to name the nlm. If left blank
fc25339741311efd7d460f18b6287ef38d76bbe6madhum# TARGET_nlm (see below) will be used.
c9ba676991d362e8a4367c44712ff1d962c28531martinNLM_NAME = Apache2
19fdbc5566bf67dde644be9e8d38d62db4dd0ba5jerenkrantz# This is used by the link '-desc ' directive.
92a2439559cf1161742650ed9c50c6483bd029cemadhum# If left blank, NLM_NAME will be used.
92a2439559cf1161742650ed9c50c6483bd029cemadhumNLM_DESCRIPTION = Apache Web Server $(VERSION_STR)
0d60370bedd05f9632f54e85c417ce472d463674madhum# This is used by the '-threadname' directive. If left blank,
ebecc16986604cce1369d5075eff65032e3dd0deianh# NLM_NAME Thread will be used.
764315969cef40e50cdc6a5e9638454e10c1c06endNLM_THREAD_NAME = Apache
bfb54bd96690887dcdf184fd9083c2e167898ce2nd# This is used by the '-screenname' directive. If left blank,
a2c036f0ca71e35c085b4cd9451a6d3718bc65daake# 'Apache for NetWare' Thread will be used.
a2c036f0ca71e35c085b4cd9451a6d3718bc65daakeNLM_SCREEN_NAME = Apache $(VERSION_STR) for NetWare
b92cba59a0890be43b14aaf1ce30606140be9593nd# If this is specified, it will override VERSION value in
b92cba59a0890be43b14aaf1ce30606140be9593nd# $(AP_WORK)\build\NWGNUenvironment.inc
402d23baca89e8c4fcb4e52ad8b2d66a6904baaetrawickNLM_VERSION =
4caa28863a3418d26cc20a998dc368c3de3b7e19jerenkrantz# If this is specified, it will override the default of 64K
a3f2646ef3d8a3a5234a5601de0f95f10308c2a6jerenkrantzNLM_STACK_SIZE = 65536
9e398d701dd430f073ff5418fb720642e064046ajerenkrantz# If this is specified it will be used by the link '-entry' directive
1a5b9e0071f0c662036250b482d566ad87ff0b4bjerenkrantzNLM_ENTRY_SYM = _LibCPrelude
a7ac9b52c3d9f7ce937f078a0d585023db626c55jerenkrantz# If this is specified it will be used by the link '-exit' directive
a7ac9b52c3d9f7ce937f078a0d585023db626c55jerenkrantzNLM_EXIT_SYM = _LibCPostlude
ba6c07204bd224fa5d4cd0e6b8bf256d6daffb74nd# If this is specified it will be used by the link '-check' directive
db5837bbc9bef214303e755fa52122140366cb6fianhNLM_CHECK_SYM = _LibCCheckUnload
aac2b82fe4f1ac117e2a0702438d6615542642dand# If these are specified it will be used by the link '-flags' directive
a793d402c74e50326a2401cfbdc562c5781948fdndNLM_FLAGS = PSEUDOPREEMPTION
a793d402c74e50326a2401cfbdc562c5781948fdnd# If this is specified it will be linked in with the XDCData option in the def
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz# by setting APACHE_UNIPROC in the environment
ab8c0315521735c73ce16c8072f91e17c406ca5bnd# If there is an NLM target, put it here
ab8c0315521735c73ce16c8072f91e17c406ca5bndTARGET_nlm = \
ea5f8cfbb7ef1d19318f6994c26dd73c38ffd8ddjerenkrantz# If there is an LIB target, put it here
ea5f8cfbb7ef1d19318f6994c26dd73c38ffd8ddjerenkrantzTARGET_lib = \
4cdc5446050c19b9d519a273a129188586e8d445jerenkrantz# These are the OBJ files needed to create the NLM target above.
4cdc5446050c19b9d519a273a129188586e8d445jerenkrantz# Paths must all use the '/' character
2f408250e9111c4b85b2b4b9b8836e83987efdefstoddardFILES_nlm_objs = \
d5b7ba26785d7494166d48876362ba30ff30b98awrowe $(OBJDIR)/core.o \
ad451e2e428a069086d1c18c9e3372f8846ec617wrowe $(OBJDIR)/log.o \
ad451e2e428a069086d1c18c9e3372f8846ec617wrowe $(OBJDIR)/main.o \
b1a4bfe2ea1faafd10cad5051e07503e7596b1f0fielding# Build in mod_nw_ssl if Winsock is being used
b1a4bfe2ea1faafd10cad5051e07503e7596b1f0fieldingifndef USE_STDSOCKETS
b1a4bfe2ea1faafd10cad5051e07503e7596b1f0fieldingFILES_nlm_objs += $(OBJDIR)/mod_nw_ssl.o \
e41198355d5d81236db1da8892402a4cdd89525drederpj# These are the LIB files needed to create the NLM target above.
b1a4bfe2ea1faafd10cad5051e07503e7596b1f0fielding# These will be added as a library command in the link.opt file.
b1a4bfe2ea1faafd10cad5051e07503e7596b1f0fieldingFILES_nlm_libs = \
dac743792d4e2f6824b4a5853d9f6fa98e3acfa7thommay# These are the modules that the above NLM target depends on to load.
dac743792d4e2f6824b4a5853d9f6fa98e3acfa7thommay# These will be added as a module command in the link.opt file.
dac743792d4e2f6824b4a5853d9f6fa98e3acfa7thommayFILES_nlm_modules = \
2657c07d01de3105a1cf72aa3b708f2e9d8b9f08striker# If the nlm has a msg file, put it's path here
6562ca01f461db28f8b2ce4626b548627644ce12ndFILE_nlm_msg =
ac22e37364071bc5160c4c1956fa64577988ce2dstriker# If the nlm has a hlp file put it's path here
ac22e37364071bc5160c4c1956fa64577988ce2dstrikerFILE_nlm_hlp =
d2ca4f326388fdd19058284043d15ec0b23d0722striker# If this is specified, it will override $(NWOS)\copyright.txt.
d2ca4f326388fdd19058284043d15ec0b23d0722strikerFILE_nlm_copyright =
6562ca01f461db28f8b2ce4626b548627644ce12nd# Any additional imports go here
acba1dfc9d36dbd7d307769f0f7c74f776d2458btrawickFILES_nlm_Ximports = \
acba1dfc9d36dbd7d307769f0f7c74f776d2458btrawick GetCurrentAddressSpace \
acba1dfc9d36dbd7d307769f0f7c74f776d2458btrawick# Build in mod_nw_ssl if Winsock is being used
acba1dfc9d36dbd7d307769f0f7c74f776d2458btrawickifndef USE_STDSOCKETS
acba1dfc9d36dbd7d307769f0f7c74f776d2458btrawickFILES_nlm_Ximports += @ws2nlm.imp \
ba5e097fd39f0937be37ae32d65e1d3339e07f43trawick# Any symbols exported to here
ba5e097fd39f0937be37ae32d65e1d3339e07f43trawickFILES_nlm_exports = \
26280128921459eadd3f76a44aee9ba2f7f941c2trawick# These are the OBJ files needed to create the LIB target above.
26280128921459eadd3f76a44aee9ba2f7f941c2trawick# Paths must all use the '/' character
26280128921459eadd3f76a44aee9ba2f7f941c2trawickFILES_lib_objs = \
acba1dfc9d36dbd7d307769f0f7c74f776d2458btrawick# implement targets and dependancies (leave this section alone)
dd4dfb1a26f821768f4174cf0465fee13556b68ejerenkrantzlibs :: $(OBJDIR) $(TARGET_lib)
acba1dfc9d36dbd7d307769f0f7c74f776d2458btrawicknlms :: libs $(TARGET_nlm)
acba1dfc9d36dbd7d307769f0f7c74f776d2458btrawick# Updated this target to create necessary directories and copy files to the
acba1dfc9d36dbd7d307769f0f7c74f776d2458btrawick# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
acba1dfc9d36dbd7d307769f0f7c74f776d2458btrawickinstall :: nlms FORCE
acba1dfc9d36dbd7d307769f0f7c74f776d2458btrawick -copy $(OBJDIR)\Apache2.nlm $(INSTALL)\Apache2\*.*
acba1dfc9d36dbd7d307769f0f7c74f776d2458btrawick -copy ABOUT_APACHE $(INSTALL)\Apache2\*.*
f2af12bd7c7b0506678b4dc981482d59e49f08d3nd -copy README $(INSTALL)\Apache2\*.*
f2af12bd7c7b0506678b4dc981482d59e49f08d3nd -copy STATUS $(INSTALL)\Apache2\*.*
f2af12bd7c7b0506678b4dc981482d59e49f08d3nd -copy LICENSE $(INSTALL)\Apache2\*.*
f2af12bd7c7b0506678b4dc981482d59e49f08d3nd -copy CHANGES $(INSTALL)\Apache2\*.*
f2af12bd7c7b0506678b4dc981482d59e49f08d3nd -copy support\dbmmanage.in $(INSTALL)\Apache2\bin\dbmmanage.pl
f2af12bd7c7b0506678b4dc981482d59e49f08d3nd -copy support\logresolve.pl.in $(INSTALL)\Apache2\bin\logresolve.pl
f2af12bd7c7b0506678b4dc981482d59e49f08d3nd -awk -f build\mkconfnw.awk docs\conf\httpd.conf.in >$(INSTALL)\Apache2\conf\httpd.conf
321f88f4de9d60b5f846555b10f866348b7d598cjerenkrantz $(CHKNOT) $(INSTALL)\Apache2\conf\extra\nul mkdir $(INSTALL)\Apache2\conf\extra
321f88f4de9d60b5f846555b10f866348b7d598cjerenkrantz -awk -f build\mkconfnw.awk docs\conf\extra\httpd-autoindex.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-autoindex.conf
321f88f4de9d60b5f846555b10f866348b7d598cjerenkrantz -awk -f build\mkconfnw.awk docs\conf\extra\httpd-dav.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-dav.conf
321f88f4de9d60b5f846555b10f866348b7d598cjerenkrantz -awk -f build\mkconfnw.awk docs\conf\extra\httpd-default.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-default.conf
321f88f4de9d60b5f846555b10f866348b7d598cjerenkrantz -awk -f build\mkconfnw.awk docs\conf\extra\httpd-info.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-info.conf
321f88f4de9d60b5f846555b10f866348b7d598cjerenkrantz -awk -f build\mkconfnw.awk docs\conf\extra\httpd-languages.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-languages.conf
321f88f4de9d60b5f846555b10f866348b7d598cjerenkrantz -awk -f build\mkconfnw.awk docs\conf\extra\httpd-manual.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-manual.conf
321f88f4de9d60b5f846555b10f866348b7d598cjerenkrantz -awk -f build\mkconfnw.awk docs\conf\extra\httpd-mpm.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-mpm.conf
321f88f4de9d60b5f846555b10f866348b7d598cjerenkrantz -awk -f build\mkconfnw.awk docs\conf\extra\httpd-multilang-errordoc.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-multilang-errordoc.conf
321f88f4de9d60b5f846555b10f866348b7d598cjerenkrantz -awk -v SSL=1 -f build\mkconfnw.awk <nul >$(INSTALL)\Apache2\conf\extra\httpd-ssl.conf
321f88f4de9d60b5f846555b10f866348b7d598cjerenkrantz -awk -f build\mkconfnw.awk docs\conf\extra\httpd-userdir.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-userdir.conf
321f88f4de9d60b5f846555b10f866348b7d598cjerenkrantz -awk -f build\mkconfnw.awk docs\conf\extra\httpd-vhosts.conf.in >$(INSTALL)\Apache2\conf\extra\httpd-vhosts.conf
321f88f4de9d60b5f846555b10f866348b7d598cjerenkrantz -copy docs\conf\magic $(INSTALL)\Apache2\conf\magic
6830e61f24984184ce3095c204935d06963dcc51nd -copy docs\conf\mime.types $(INSTALL)\Apache2\conf\mime.types
6830e61f24984184ce3095c204935d06963dcc51nd -copy docs\conf\charset.conv $(INSTALL)\Apache2\conf\charset.conv
6830e61f24984184ce3095c204935d06963dcc51nd -copy docs\cgi-examples\printenv $(INSTALL)\Apache2\cgi-bin\printenv.pl
6830e61f24984184ce3095c204935d06963dcc51nd @echo rem copying the docs directories > xc.bat
6830e61f24984184ce3095c204935d06963dcc51nd @echo xcopy docs\error $(INSTALL)\Apache2\error $(XCOPYSW) >> xc.bat
85bf271a2a8d88736575e93504528639f5971f97nd @echo xcopy docs\docroot $(INSTALL)\Apache2\htdocs $(XCOPYSW) >> xc.bat
85bf271a2a8d88736575e93504528639f5971f97nd @echo xcopy docs\icons $(INSTALL)\Apache2\icons $(XCOPYSW) >> xc.bat
85bf271a2a8d88736575e93504528639f5971f97nd @echo xcopy docs\man $(INSTALL)\Apache2\man $(XCOPYSW) >> xc.bat
85bf271a2a8d88736575e93504528639f5971f97nd @echo xcopy docs\manual $(INSTALL)\Apache2\manual $(XCOPYSW) >> xc.bat
13590409a89cdf7e5dc52516919ccee94edad59brederpjinstalldev :: FORCE
a22d4a5da8c5167776b9e62737379cc9b857ef4drederpj -copy $(subst /,\,$(AP_WORK))\include\*.h $(INSTALL)\Apache2\include\*.*
cde00ab9085ea6e93db4a27bf6fe9a9b6eda4addnd -copy $(subst /,\,$(AP_WORK))\os\netware\*.h $(INSTALL)\Apache2\include\*.*
cde00ab9085ea6e93db4a27bf6fe9a9b6eda4addnd -copy $(subst /,\,$(NWOS))\*.imp $(INSTALL)\Apache2\lib\*.*
cde00ab9085ea6e93db4a27bf6fe9a9b6eda4addnd -copy $(subst /,\,$(APR))\include\*.h $(INSTALL)\Apache2\include\*.*
cde00ab9085ea6e93db4a27bf6fe9a9b6eda4addnd -copy $(subst /,\,$(APRUTIL))\include\*.h $(INSTALL)\Apache2\include\*.*
cde00ab9085ea6e93db4a27bf6fe9a9b6eda4addnd -copy $(subst /,\,$(APR))\*.imp $(INSTALL)\Apache2\lib\*.*
cde00ab9085ea6e93db4a27bf6fe9a9b6eda4addnd -copy $(subst /,\,$(NWOS))\*.xdc $(INSTALL)\Apache2\lib\*.*
159d95df05b3100bbef7a60cb5f5d7d8d5a3328etrawickprebuild :: FORCE
159d95df05b3100bbef7a60cb5f5d7d8d5a3328etrawick $(MAKE) -C server -f NWGNUMakefile
159d95df05b3100bbef7a60cb5f5d7d8d5a3328etrawick $(MAKE) -C srclib/pcre -f NWGNUMakefile
59b910556d04c82e951d6c6f7a413ab8fed21467trawick $(MAKE) -C $(APU_WORK)/uri -f NWGNUMakefile
acba1dfc9d36dbd7d307769f0f7c74f776d2458btrawick $(CHKNOT) $(PREBUILD_INST)\nul mkdir $(PREBUILD_INST)
59b910556d04c82e951d6c6f7a413ab8fed21467trawick -copy $(AP_WORK)\server\$(OBJDIR)\*.nlm $(PREBUILD_INST)\*.*
59b910556d04c82e951d6c6f7a413ab8fed21467trawick -copy $(AP_WORK)\srclib\pcre\$(basename $(OBJDIR))\*.nlm $(PREBUILD_INST)\*.*
59b910556d04c82e951d6c6f7a413ab8fed21467trawick -copy $(APU_WORK)\uri\$(basename $(OBJDIR))\*.nlm $(PREBUILD_INST)\*.*
03e310ef946842b4dfa718776c870d012fc9ec67striker# Any specialized rules here
03e310ef946842b4dfa718776c870d012fc9ec67strikervpath %.c server:modules/arch/netware:modules/http:modules/aaa:modules/mappers
03e310ef946842b4dfa718776c870d012fc9ec67strikervpath %.c modules/generators:modules/metadata:modules/filters:modules/loggers
611d2f4e86b4eceb640a5301bd88a23cb459e5a8striker# Include the 'tail' makefile that has targets that depend on variables defined
611d2f4e86b4eceb640a5301bd88a23cb459e5a8striker# in this makefile
f59888906d0566361498848fa95b4c416fad976cstrikerinclude $(AP_WORK)\build\NWGNUtail.inc