NWGNUmakefile revision 23d503d1cd081b0c04e48327700c96829266803a
7d5ac94fda90b837211dadf2585c0fe8c5dc3e5djerenkrantz# Declare the sub-directories to be built here
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe# Get the 'head' of the build environment. This includes default targets and
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe# paths to tools
366616a5cc6212cbf7134ccf877f965d668c6b04wroweinclude $(AP_WORK)\build\NWGNUhead.inc
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe# build this level's files
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe# Make sure all needed macro's are defined
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe# These directories will be at the beginning of the include list, followed by
80464b326874ee15d74742ae39708ec3f2eae1d7wroweXINCDIRS += \
965ecaea5e8c2c048586939b7b4803b252f49987jim# These flags will come after CFLAGS
6047b7ea795560f93c601d78276bc75a1cdd480cjimXCFLAGS += \
53e66a2931d02e84628ba946055cc92e56b43db8wrowe# These defines will come after DEFINES
cd365a1ad6798c1faef19b445c00ae97eb94a234pquernaXDEFINES += \
af4c982a7cf4515f124935f99a329744035fc699slive# These flags will be added to the link.opt file
f610c7c704235bc327dbe9b62982f5b3f8e30a77wroweXLFLAGS += \
ecf8d72af432e53e4c0661fb99dfda8061507bfajerenkrantz# These values will be appended to the correct variables based on the value of
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweifeq "$(RELEASE)" "debug"
ecf8d72af432e53e4c0661fb99dfda8061507bfajerenkrantzXINCDIRS += \
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweXCFLAGS += \
dc287e6d736b5998068addfb712936f51818cc0frbowenXDEFINES += \
a74ee4396fe11ffc1ca05837a59e497c905eedc3sfifeq "$(RELEASE)" "noopt"
a74ee4396fe11ffc1ca05837a59e497c905eedc3sfXINCDIRS += \
e84aedcb9f389f94263ca602b1f6c36e3575699bsfXCFLAGS += \
7ac1ffe4121328055c55cc1db7fc4aeae0fcc3d6sfXDEFINES += \
a74ee4396fe11ffc1ca05837a59e497c905eedc3sfXLFLAGS += \
71cda1f2d621dbd9fd3406e35a6f8c412576a15dpgollucciifeq "$(RELEASE)" "release"
71cda1f2d621dbd9fd3406e35a6f8c412576a15dpgollucciXINCDIRS += \
cdccf2ac94172d1a4a54bc2e17324e1ef682ccf3pquernaXCFLAGS += \
cdccf2ac94172d1a4a54bc2e17324e1ef682ccf3pquernaXDEFINES += \
42ed359b3cec14d50bec77d6a0de2320215fd006minfrinXLFLAGS += \
6047b7ea795560f93c601d78276bc75a1cdd480cjim# These are used by the link target if an NLM is being generated
71cda1f2d621dbd9fd3406e35a6f8c412576a15dpgollucci# This is used by the link 'name' directive to name the nlm. If left blank
42ed359b3cec14d50bec77d6a0de2320215fd006minfrin# TARGET_nlm (see below) will be used.
a74ee4396fe11ffc1ca05837a59e497c905eedc3sf# This is used by the link '-desc ' directive.
a74ee4396fe11ffc1ca05837a59e497c905eedc3sf# If left blank, NLM_NAME will be used.
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweNLM_DESCRIPTION =
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# This is used by the '-threadname' directive. If left blank,
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# NLM_NAME Thread will be used.
f6a9b598f78b2e745456bfc4bbc4afd2d1572aa9stasNLM_THREAD_NAME =
0db0abcbe4211435c08e0c0e8f5daa278bed3524wsanchez# If this is specified, it will override VERSION value in
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# $(AP_WORK)\build\NWGNUenvironment.inc
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweNLM_VERSION =
f6a9b598f78b2e745456bfc4bbc4afd2d1572aa9stas# If this is specified, it will override the default of 64K
62f7716b14b71603a8004434ca3536902bfb8899wroweNLM_STACK_SIZE =
53e66a2931d02e84628ba946055cc92e56b43db8wrowe# If this is specified it will be used by the link '-entry' directive
53e66a2931d02e84628ba946055cc92e56b43db8wroweNLM_ENTRY_SYM =
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz# If this is specified it will be used by the link '-exit' directive
9c09bec965ddf31d132ffaef4305a4eb945b2877jimNLM_EXIT_SYM =
99665be7f22b9e3421bd698bd731f82ab0deb827sf# If this is specified it will be used by the link '-check' directive
e1c6982304adafcec09d2627755be15b87a6b425sfNLM_CHECK_SYM =
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# If these are specified it will be used by the link '-flags' directive
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# If this is specified it will be linked in with the XDCData option in the def
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# by setting APACHE_UNIPROC in the environment
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# If there is an NLM target, put it here
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweTARGET_nlm = \
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# If LDAPSDK has been defined then build the auth_ldap module
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweifneq "$(LDAPSDK)" ""
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweTARGET_nlm += $(OBJDIR)/authldap.nlm \
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# If there is an LIB target, put it here
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweTARGET_lib = \
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# These are the OBJ files needed to create the NLM target above.
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# Paths must all use the '/' character
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweFILES_nlm_objs = \
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# These are the LIB files needed to create the NLM target above.
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# These will be added as a library command in the link.opt file.
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweFILES_nlm_libs = \
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# These are the modules that the above NLM target depends on to load.
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# These will be added as a module command in the link.opt file.
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweFILES_nlm_modules = \
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# If the nlm has a msg file, put it's path here
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweFILE_nlm_msg =
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# If the nlm has a hlp file put it's path here
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweFILE_nlm_hlp =
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# If this is specified, it will override $(NWOS)\copyright.txt.
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweFILE_nlm_copyright =
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# Any additional imports go here
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweFILES_nlm_Ximports = \
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# Any symbols exported to here
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweFILES_nlm_exports = \
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# These are the OBJ files needed to create the LIB target above.
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# Paths must all use the '/' character
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweFILES_lib_objs = \
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# implement targets and dependancies (leave this section alone)
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowelibs :: $(OBJDIR) $(TARGET_lib)
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowenlms :: libs $(TARGET_nlm)
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# Updated this target to create necessary directories and copy files to the
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweinstall :: nlms FORCE
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe copy $(OBJDIR)\*.nlm $(INSTALL)\Apache2\modules\*.*
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# Any specialized rules here
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# Include the 'tail' makefile that has targets that depend on variables defined
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# in this makefile
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweinclude $(AP_WORK)\build\NWGNUtail.inc