NWGNUmakefile revision 0662ed52e814f8f08ef0e09956413a792584eddf
5cd4555ad444fd391002ae32450572054369fd42Rob Austein# Declare the sub-directories to be built here
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# Get the 'head' of the build environment. This includes default targets and
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# paths to tools
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrewsinclude $(AP_WORK)/build/NWGNUhead.inc
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# build this level's files
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# Make sure all needed macro's are defined
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews# These directories will be at the beginning of the include list, followed by
c40265eba0c99708887d68e67901924065ba2514Brian Wellington $(APR)/include \
c40265eba0c99708887d68e67901924065ba2514Brian Wellington $(APRUTIL)/include \
c40265eba0c99708887d68e67901924065ba2514Brian Wellington $(AP_WORK)/include \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# These flags will come after CFLAGS
20f2d1d74b67d096f858dc70cedf9af6dcc38dc7Automatic Updater# These defines will come after DEFINES
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# These flags will be added to the link.opt file
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# These values will be appended to the correct variables based on the value of
c40265eba0c99708887d68e67901924065ba2514Brian Wellingtonifeq "$(RELEASE)" "debug"
a903095bf4512dae561c7f6fc7854a51bebf334aMark AndrewsXINCDIRS += \
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrewsifeq "$(RELEASE)" "noopt"
a903095bf4512dae561c7f6fc7854a51bebf334aMark AndrewsXINCDIRS += \
4d9f3f00d93fcb8743b1105e8cf82e862be220d1Mark AndrewsXDEFINES += \
26bb3b7a67b833f0a18072567de036226890ca1aMark Andrewsifeq "$(RELEASE)" "release"
a903095bf4512dae561c7f6fc7854a51bebf334aMark AndrewsXINCDIRS += \
a903095bf4512dae561c7f6fc7854a51bebf334aMark AndrewsXDEFINES += \
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews# These are used by the link target if an NLM is being generated
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews# This is used by the link 'name' directive to name the nlm. If left blank
578e3196076b409c509c6c0a0873e7bfe54f4d61Evan Hunt# TARGET_nlm (see below) will be used.
a903095bf4512dae561c7f6fc7854a51bebf334aMark AndrewsNLM_NAME = mod_DAV
f30785f506a522ed6a5e394af2bb13b6f883927eEvan Hunt# This is used by the link '-desc ' directive.
3d17a3ba61a303d5c4d9867068d0fbe9f24d2988Mark Andrews# If left blank, NLM_NAME will be used.
43efd9fa56b03e3e285fb58859efc9348c7f4a9fMark AndrewsNLM_DESCRIPTION = Apache $(VERSION_STR) DAV module
d0aebc5a55b6145297d94f8aee939852357c59fcMark Andrews# This is used by the '-threadname' directive. If left blank,
508f61f8d699c46f962b682f388e54b446a7194dMark Andrews# NLM_NAME Thread will be used.
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonNLM_THREAD_NAME = mod_DAV
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# If this is specified, it will override VERSION value in
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If this is specified, it will override the default of 64K
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinNLM_STACK_SIZE = 65536
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews# If this is specified it will be used by the link '-entry' directive
a903095bf4512dae561c7f6fc7854a51bebf334aMark AndrewsNLM_ENTRY_SYM =
8b9fc7617b8f54641708c985697848e6cc10a5bbMark Andrews# If this is specified it will be used by the link '-exit' directive
a903095bf4512dae561c7f6fc7854a51bebf334aMark AndrewsNLM_EXIT_SYM =
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# If this is specified it will be used by the link '-check' directive
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonNLM_CHECK_SYM =
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# If this is specified it will be used by the link '-flags' directive
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If this is specified it will be linked in with the XDCData option in the def
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# by setting APACHE_UNIPROC in the environment
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews# Declare all target files (you must add your files here)
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews# If there is an NLM target, put it here
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonTARGET_nlm = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If there is an LIB target, put it here
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonTARGET_lib = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# These are the OBJ files needed to create the NLM target above.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Paths must all use the '/' character
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFILES_nlm_objs = \
578e3196076b409c509c6c0a0873e7bfe54f4d61Evan Hunt# These are the LIB files needed to create the NLM target above.
578e3196076b409c509c6c0a0873e7bfe54f4d61Evan Hunt# These will be added as a library command in the link.opt file.
578e3196076b409c509c6c0a0873e7bfe54f4d61Evan HuntFILES_nlm_libs = \
578e3196076b409c509c6c0a0873e7bfe54f4d61Evan Hunt# These are the modules that the above NLM target depends on to load.
578e3196076b409c509c6c0a0873e7bfe54f4d61Evan Hunt# These will be added as a module command in the link.opt file.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFILES_nlm_modules = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If the nlm has a msg file, put it's path here
f9f11eb54be19b7deedf3978496f71d81432a5eeJeremy ReedFILE_nlm_msg =
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# If the nlm has a hlp file put it's path here
c5223c9cb7c22620d5ee6611228673e95b48a270Mark AndrewsFILE_nlm_hlp =
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews# If this is specified, it will override $(NWOS)\copyright.txt.
c5223c9cb7c22620d5ee6611228673e95b48a270Mark AndrewsFILE_nlm_copyright =
2c15fcdeac4c2402258867fbac24d7475ef98259Mark Andrews# Any additional imports go here
c5223c9cb7c22620d5ee6611228673e95b48a270Mark AndrewsFILES_nlm_Ximports = \
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews# Any symbols exported to here
c5223c9cb7c22620d5ee6611228673e95b48a270Mark AndrewsFILES_nlm_exports = \
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews dav_module \
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews# These are the OBJ files needed to create the LIB target above.
561a29af8c54a216e7d30b5b4f6e0d21661654ecMark Andrews# Paths must all use the '/' character
c5223c9cb7c22620d5ee6611228673e95b48a270Mark AndrewsFILES_lib_objs = \
2c15fcdeac4c2402258867fbac24d7475ef98259Mark Andrews# implement targets and dependancies (leave this section alone)
2c15fcdeac4c2402258867fbac24d7475ef98259Mark Andrewslibs :: $(OBJDIR) $(TARGET_lib)
2c15fcdeac4c2402258867fbac24d7475ef98259Mark Andrewsnlms :: libs $(TARGET_nlm)
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews# Updated this target to create necessary directories and copy files to the
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrews# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
c5223c9cb7c22620d5ee6611228673e95b48a270Mark Andrewsinstall :: nlms FORCE
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews copy $(OBJDIR)\mod_dav.nlm $(INSTALL)\$(BASEDIR)\modules\*.*
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews# Any specialized rules here
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews# Include the 'tail' makefile that has targets that depend on variables defined
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrews# in this makefile
a903095bf4512dae561c7f6fc7854a51bebf334aMark Andrewsinclude $(APBUILD)/NWGNUtail.inc