NWGNUmakefile revision 084aee5bd4093a1b5e9b51d1ccfafc3948fa4109
2b43d1d8c508d7e7be388d85e8bf83ff0aed1e11Automatic Updater# Declare the sub-directories to be built here
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# Get the 'head' of the build environment. This includes default targets and
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# paths to tools
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graffinclude $(AP_WORK)\build\NWGNUhead.inc
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff# build this level's files
c803787146cadcb2d7e10cbf4491f3be513dfa1aMichael Graff# Make sure all needed macro's are defined
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graff# These directories will be at the beginning of the include list, followed by
5fca48054b5e791a2fa0c5015bc3b6fef4fcdce1Andreas Gustafsson $(AP_WORK)/include \
bcf369e513a1cc2209e2a987f5772afa79813540Mark Andrews# These flags will come after CFLAGS
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff# These defines will come after DEFINES
bcf369e513a1cc2209e2a987f5772afa79813540Mark Andrews# These flags will be added to the link.opt file
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff# These values will be appended to the correct variables based on the value of
3115cd89bc1e1fd3ecc4705d253e3484a3f5c555Michael Graffifeq "$(RELEASE)" "debug"
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graffifeq "$(RELEASE)" "noopt"
bcf369e513a1cc2209e2a987f5772afa79813540Mark Andrewsifeq "$(RELEASE)" "release"
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic Updater# These are used by the link target if an NLM is being generated
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic Updater# This is used by the link 'name' directive to name the nlm. If left blank
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic Updater# TARGET_nlm (see below) will be used.
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic UpdaterNLM_NAME = Apache2
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic Updater# This is used by the link '-desc ' directive.
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic Updater# If left blank, NLM_NAME will be used.
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic UpdaterNLM_DESCRIPTION = Apache Web Server
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic Updater# This is used by the '-threadname' directive. If left blank,
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic Updater# NLM_NAME Thread will be used.
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic UpdaterNLM_THREAD_NAME = Apache
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic Updater# If this is specified, it will override VERSION value in
82f77687abd21349fa7c7f51e71fdc0c7367d2e2Mark Andrews# If this is specified, it will override the default of 64K
82f77687abd21349fa7c7f51e71fdc0c7367d2e2Mark AndrewsNLM_STACK_SIZE = 65536
82f77687abd21349fa7c7f51e71fdc0c7367d2e2Mark Andrews# If this is specified it will be used by the link '-entry' directive
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic UpdaterNLM_ENTRY_SYM = _LibCPrelude
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic Updater# If this is specified it will be used by the link '-exit' directive
82f77687abd21349fa7c7f51e71fdc0c7367d2e2Mark AndrewsNLM_EXIT_SYM = _LibCPostlude
82f77687abd21349fa7c7f51e71fdc0c7367d2e2Mark Andrews# If this is specified it will be used by the link '-check' directive
82f77687abd21349fa7c7f51e71fdc0c7367d2e2Mark AndrewsNLM_CHECK_SYM = _LibCCheckUnload
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic Updater# If these are specified it will be used by the link '-flags' directive
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic UpdaterNLM_FLAGS = PSEUDOPREEMPTION
82f77687abd21349fa7c7f51e71fdc0c7367d2e2Mark Andrews# If this is specified it will be linked in with the XDCData option in the def
82f77687abd21349fa7c7f51e71fdc0c7367d2e2Mark Andrews# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
82f77687abd21349fa7c7f51e71fdc0c7367d2e2Mark Andrews# by setting APACHE_UNIPROC in the environment
8cdfd17426179ae6f629a9b7475d46a22f535047Bob Halley# If there is an NLM target, put it here
8cdfd17426179ae6f629a9b7475d46a22f535047Bob HalleyTARGET_nlm = \
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic Updater# If there is an LIB target, put it here
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic Updater# These are the OBJ files needed to create the NLM target above.
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic Updater# Paths must all use the '/' character
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic UpdaterFILES_nlm_objs = \
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# These are the LIB files needed to create the NLM target above.
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic Updater# These will be added as a library command in the link.opt file.
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic UpdaterFILES_nlm_libs = \
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic Updater# These are the modules that the above NLM target depends on to load.
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic Updater# These will be added as a module command in the link.opt file.
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic UpdaterFILES_nlm_modules = \
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic Updater# If the nlm has a msg file, put it's path here
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# If the nlm has a hlp file put it's path here
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael GraffFILE_nlm_hlp =
439c0011e642fb1d26011116144af698125262dbMichael Graff# If this is specified, it will override $(NWOS)\copyright.txt.
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic UpdaterFILE_nlm_copyright =
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic Updater# Any additional imports go here
439c0011e642fb1d26011116144af698125262dbMichael GraffFILES_nlm_Ximports = \
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic Updater GetCurrentAddressSpace \
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic Updater# Any symbols exported to here
c82bb6a709abe89c051485b49403ef5bad1b756cTatuya JINMEI 神明達哉FILES_nlm_exports = \
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic Updater# These are the OBJ files needed to create the LIB target above.
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic Updater# Paths must all use the '/' character
c803787146cadcb2d7e10cbf4491f3be513dfa1aMichael GraffFILES_lib_objs = \
78bf1ca89505820ed7b03be4bf0c0b53b557f3cdAndreas Gustafsson# implement targets and dependancies (leave this section alone)
27fe1966c948ba0c1c9d0d831ea3d8bf32d052acTatuya JINMEI 神明達哉libs :: $(OBJDIR) $(TARGET_lib)
d8590892d10fc9528b0dde7e2781935e7b8d7a87Michael Graffnlms :: libs $(TARGET_nlm)
4281fe4a80af7402613f0d5c3eeff8829a4ede1fMichael Graff# Updated this target to create necessary directories and copy files to the
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic Updater# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
c82bb6a709abe89c051485b49403ef5bad1b756cTatuya JINMEI 神明達哉install :: nlms FORCE
c82bb6a709abe89c051485b49403ef5bad1b756cTatuya JINMEI 神明達哉 -copy $(OBJDIR)\Apache2.nlm $(INSTALL)\Apache2\*.*
4abed3e3563c7ad346178433130e6d150d3ffeafBob Halley -copy ABOUT_APACHE $(INSTALL)\Apache2\*.*
14b98cb34eda66c87ce41a207704a2c232280eafMichael Graff -copy README $(INSTALL)\Apache2\*.*
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic Updater -copy STATUS $(INSTALL)\Apache2\*.*
49a940dc68b30d9e4f9e1bd3c0503d8b90bb1726Mark Andrews -copy LICENSE $(INSTALL)\Apache2\*.*
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic Updater -copy CHANGES $(INSTALL)\Apache2\*.*
a253e35c2451818fb39f9b808c7641adb5275fb3Michael Graff -copy support\dbmmanage.in $(INSTALL)\Apache2\bin\dbmmanage.pl
651228967966ba4fb2e52f92d1207c790af4b130Michael Graff -copy support\logresolve.pl.in $(INSTALL)\Apache2\bin\logresolve.pl
e34efaccfaab4dbbe45edd0a58e2b6e930e5784bMichael Graff -awk -f build\mkconfnw.awk docs\conf\httpd-std.conf.in >$(INSTALL)\Apache2\conf\httpd.conf
e34efaccfaab4dbbe45edd0a58e2b6e930e5784bMichael Graff -copy docs\conf\magic $(INSTALL)\Apache2\conf\magic
a253e35c2451818fb39f9b808c7641adb5275fb3Michael Graff -copy docs\conf\mime.types $(INSTALL)\Apache2\conf\mime.types
e34efaccfaab4dbbe45edd0a58e2b6e930e5784bMichael Graff -copy docs\cgi-examples\printenv $(INSTALL)\Apache2\cgi-bin\printenv.pl
a44c12b332b867f29631e235eb11d1263c73d6c0Bob Halley @echo rem copying the docs directories > xc.bat
e34efaccfaab4dbbe45edd0a58e2b6e930e5784bMichael Graff @echo xcopy docs\error $(INSTALL)\Apache2\error /E >> xc.bat
c82bb6a709abe89c051485b49403ef5bad1b756cTatuya JINMEI 神明達哉 @echo xcopy docs\docroot $(INSTALL)\Apache2\htdocs /E >> xc.bat
dd95acdbce0e2a2775391709cdfca0a9eda7e8f7Mark Andrews @echo xcopy docs\icons $(INSTALL)\Apache2\icons /E >> xc.bat
dd95acdbce0e2a2775391709cdfca0a9eda7e8f7Mark Andrews @echo xcopy docs\man $(INSTALL)\Apache2\man /E >> xc.bat
ff9bb3fc5453bbf310b67c560fbf04a5c0fb60daMichael Graff @echo xcopy docs\manual $(INSTALL)\Apache2\manual /E >> xc.bat
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graffinstalldev :: FORCE
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff -copy $(subst /,\,$(AP_WORK))\include\*.h $(INSTALL)\Apache2\include\*.*
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff -copy $(subst /,\,$(AP_WORK))\os\netware\*.h $(INSTALL)\Apache2\include\*.*
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff -copy $(subst /,\,$(NWOS))\include\*.h $(INSTALL)\Apache2\include\*.*
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff -copy $(subst /,\,$(NWOS))\*.imp $(INSTALL)\Apache2\lib\*.*
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff -copy $(subst /,\,$(APR))\include\*.h $(INSTALL)\Apache2\include\*.*
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff -copy $(subst /,\,$(APR))\arch\netware\include\*.h $(INSTALL)\Apache2\include\*.*
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff -copy $(subst /,\,$(APRUTIL))\include\*.h $(INSTALL)\Apache2\include\*.*
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff -copy $(subst /,\,$(APR))\*.imp $(INSTALL)\Apache2\lib\*.*
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff# Any specialized rules here
c82bb6a709abe89c051485b49403ef5bad1b756cTatuya JINMEI 神明達哉$(OBJDIR)/%.o: server/%.c $(OBJDIR)\cc.opt
c82bb6a709abe89c051485b49403ef5bad1b756cTatuya JINMEI 神明達哉 @echo compiling $<
c82bb6a709abe89c051485b49403ef5bad1b756cTatuya JINMEI 神明達哉 $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
c82bb6a709abe89c051485b49403ef5bad1b756cTatuya JINMEI 神明達哉$(OBJDIR)/%.o: modules/arch/netware/%.c $(OBJDIR)\cc.opt
c82bb6a709abe89c051485b49403ef5bad1b756cTatuya JINMEI 神明達哉 @echo compiling $<
65f6d2e1c1fce0989c13c2efb44b8dd26cd977f3Michael Graff $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
49a940dc68b30d9e4f9e1bd3c0503d8b90bb1726Mark Andrews$(OBJDIR)/%.o: modules/http/%.c $(OBJDIR)\cc.opt
65f6d2e1c1fce0989c13c2efb44b8dd26cd977f3Michael Graff @echo compiling $<
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff$(OBJDIR)/%.o: modules/aaa/%.c $(OBJDIR)\cc.opt
a253e35c2451818fb39f9b808c7641adb5275fb3Michael Graff @echo compiling $<
65f6d2e1c1fce0989c13c2efb44b8dd26cd977f3Michael Graff $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
65f6d2e1c1fce0989c13c2efb44b8dd26cd977f3Michael Graff$(OBJDIR)/%.o: modules/mappers/%.c $(OBJDIR)\cc.opt
65f6d2e1c1fce0989c13c2efb44b8dd26cd977f3Michael Graff @echo compiling $<
49a940dc68b30d9e4f9e1bd3c0503d8b90bb1726Mark Andrews $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
65f6d2e1c1fce0989c13c2efb44b8dd26cd977f3Michael Graff$(OBJDIR)/%.o: modules/generators/%.c $(OBJDIR)\cc.opt
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff @echo compiling $<
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff$(OBJDIR)/%.o: modules/metadata/%.c $(OBJDIR)\cc.opt
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff @echo compiling $<
59e22acc4f79ff481f7bfa46ef0558957ae53cfcMichael Graff $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
65f6d2e1c1fce0989c13c2efb44b8dd26cd977f3Michael Graff$(OBJDIR)/%.o: modules/filters/%.c $(OBJDIR)\cc.opt
65f6d2e1c1fce0989c13c2efb44b8dd26cd977f3Michael Graff @echo compiling $<
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff$(OBJDIR)/%.o: modules/loggers/%.c $(OBJDIR)\cc.opt
f172f06ff2e7609dd7d91914a44b4e24cff8bb7aAutomatic Updater @echo compiling $<
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff @echo compiling $<
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
4a3ad0da975d7115d401700f955814a0dff1adb0Bob Halley$(OBJDIR)/%.o: server/mpm/netware/%.c $(OBJDIR)\cc.opt
65f6d2e1c1fce0989c13c2efb44b8dd26cd977f3Michael Graff @echo compiling $<
65f6d2e1c1fce0989c13c2efb44b8dd26cd977f3Michael Graff $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
65f6d2e1c1fce0989c13c2efb44b8dd26cd977f3Michael Graff$(OBJDIR)/%.o: srclib/pcre/%.c $(OBJDIR)\cc.opt
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff @echo compiling $<
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
3d12fa7e76c02d06e1adeaa7846b60378a3cd204Michael Graff# Include the 'tail' makefile that has targets that depend on variables defined
1a0e33bc2044e1902493111db14cbf793083ac47Michael Graff# in this makefile
1a0e33bc2044e1902493111db14cbf793083ac47Michael Graffinclude $(AP_WORK)\build\NWGNUtail.inc