NWGNUmakefile revision 23d503d1cd081b0c04e48327700c96829266803a
38dc50ae00a1ea57fa41500d74f4e818747e3cefpquerna#
7d5ac94fda90b837211dadf2585c0fe8c5dc3e5djerenkrantz# Declare the sub-directories to be built here
c330021bf3f45cbf187fa644781e67f7e470a58awrowe#
ecf8d72af432e53e4c0661fb99dfda8061507bfajerenkrantz
62f7716b14b71603a8004434ca3536902bfb8899wroweSUBDIRS = \
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe $(EOLIST)
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe#
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe# Get the 'head' of the build environment. This includes default targets and
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe# paths to tools
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe#
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe
366616a5cc6212cbf7134ccf877f965d668c6b04wroweinclude $(AP_WORK)\build\NWGNUhead.inc
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe#
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe# build this level's files
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe#
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe# Make sure all needed macro's are defined
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe#
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe
38dc50ae00a1ea57fa41500d74f4e818747e3cefpquerna#
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe# These directories will be at the beginning of the include list, followed by
ecf8d72af432e53e4c0661fb99dfda8061507bfajerenkrantz# INCDIRS
ecf8d72af432e53e4c0661fb99dfda8061507bfajerenkrantz#
80464b326874ee15d74742ae39708ec3f2eae1d7wroweXINCDIRS += \
80464b326874ee15d74742ae39708ec3f2eae1d7wrowe $(EOLIST)
38dc50ae00a1ea57fa41500d74f4e818747e3cefpquerna
965ecaea5e8c2c048586939b7b4803b252f49987jim#
965ecaea5e8c2c048586939b7b4803b252f49987jim# These flags will come after CFLAGS
090aff1c1fe9a711579dfb0bd945fcc3c55e0689jim#
6047b7ea795560f93c601d78276bc75a1cdd480cjimXCFLAGS += \
065757c0cc6d9cc01ba3dbd465d91f3c0652ed21jim $(EOLIST)
065757c0cc6d9cc01ba3dbd465d91f3c0652ed21jim
29491a3862243b6975a6cb9a7a3c9f9ed0e3dd1djim#
53e66a2931d02e84628ba946055cc92e56b43db8wrowe# These defines will come after DEFINES
53e66a2931d02e84628ba946055cc92e56b43db8wrowe#
cd365a1ad6798c1faef19b445c00ae97eb94a234pquernaXDEFINES += \
6507aa1a5709a9122f2e0b9be8bb9bd6d78715c3pquerna $(EOLIST)
6507aa1a5709a9122f2e0b9be8bb9bd6d78715c3pquerna
b6c98ce4a43f123af0a691fd7b833efcf0ce1d6apquerna#
af4c982a7cf4515f124935f99a329744035fc699slive# These flags will be added to the link.opt file
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe#
f610c7c704235bc327dbe9b62982f5b3f8e30a77wroweXLFLAGS += \
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe $(EOLIST)
d96ee8cda2799e1f2743c1603adeb4833ed0e15fslive
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
ecf8d72af432e53e4c0661fb99dfda8061507bfajerenkrantz# These values will be appended to the correct variables based on the value of
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# RELEASE
ecf8d72af432e53e4c0661fb99dfda8061507bfajerenkrantz#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweifeq "$(RELEASE)" "debug"
ecf8d72af432e53e4c0661fb99dfda8061507bfajerenkrantzXINCDIRS += \
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe $(EOLIST)
d96ee8cda2799e1f2743c1603adeb4833ed0e15fslive
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweXCFLAGS += \
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe $(EOLIST)
dc287e6d736b5998068addfb712936f51818cc0frbowen
dc287e6d736b5998068addfb712936f51818cc0frbowenXDEFINES += \
62f7716b14b71603a8004434ca3536902bfb8899wrowe $(EOLIST)
4b62424416882687387923b3130b96241503cbe0jerenkrantz
5ca8e11fadb6f7a8d9d0367c1800205c99d4bcd6jerenkrantzXLFLAGS += \
62f7716b14b71603a8004434ca3536902bfb8899wrowe $(EOLIST)
45b0e1c775c1cfed6473c9e5304179ccb9609f53stoddardendif
dbec4658981e4f9127e8676457c28d42932be7cdtrawick
a74ee4396fe11ffc1ca05837a59e497c905eedc3sfifeq "$(RELEASE)" "noopt"
a74ee4396fe11ffc1ca05837a59e497c905eedc3sfXINCDIRS += \
e84aedcb9f389f94263ca602b1f6c36e3575699bsf $(EOLIST)
e84aedcb9f389f94263ca602b1f6c36e3575699bsf
e84aedcb9f389f94263ca602b1f6c36e3575699bsfXCFLAGS += \
e84aedcb9f389f94263ca602b1f6c36e3575699bsf $(EOLIST)
e84aedcb9f389f94263ca602b1f6c36e3575699bsf
7ac1ffe4121328055c55cc1db7fc4aeae0fcc3d6sfXDEFINES += \
7ac1ffe4121328055c55cc1db7fc4aeae0fcc3d6sf $(EOLIST)
7ac1ffe4121328055c55cc1db7fc4aeae0fcc3d6sf
a74ee4396fe11ffc1ca05837a59e497c905eedc3sfXLFLAGS += \
a74ee4396fe11ffc1ca05837a59e497c905eedc3sf $(EOLIST)
a74ee4396fe11ffc1ca05837a59e497c905eedc3sfendif
a74ee4396fe11ffc1ca05837a59e497c905eedc3sf
71cda1f2d621dbd9fd3406e35a6f8c412576a15dpgollucciifeq "$(RELEASE)" "release"
71cda1f2d621dbd9fd3406e35a6f8c412576a15dpgollucciXINCDIRS += \
a74ee4396fe11ffc1ca05837a59e497c905eedc3sf $(EOLIST)
cdccf2ac94172d1a4a54bc2e17324e1ef682ccf3pquerna
cdccf2ac94172d1a4a54bc2e17324e1ef682ccf3pquernaXCFLAGS += \
a28e3e624e7a5673405fe03868ed073b1ab37f8ejim $(EOLIST)
71cda1f2d621dbd9fd3406e35a6f8c412576a15dpgollucci
cdccf2ac94172d1a4a54bc2e17324e1ef682ccf3pquernaXDEFINES += \
a74ee4396fe11ffc1ca05837a59e497c905eedc3sf $(EOLIST)
a74ee4396fe11ffc1ca05837a59e497c905eedc3sf
42ed359b3cec14d50bec77d6a0de2320215fd006minfrinXLFLAGS += \
42ed359b3cec14d50bec77d6a0de2320215fd006minfrin $(EOLIST)
42ed359b3cec14d50bec77d6a0de2320215fd006minfrinendif
6047b7ea795560f93c601d78276bc75a1cdd480cjim
6047b7ea795560f93c601d78276bc75a1cdd480cjim#
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.
ab5b666cf1382c8c3e58797524fdece77e8e17a8minfrin#
ab5b666cf1382c8c3e58797524fdece77e8e17a8minfrinNLM_NAME =
71cda1f2d621dbd9fd3406e35a6f8c412576a15dpgollucci
ab5b666cf1382c8c3e58797524fdece77e8e17a8minfrin#
a74ee4396fe11ffc1ca05837a59e497c905eedc3sf# This is used by the link '-desc ' directive.
a74ee4396fe11ffc1ca05837a59e497c905eedc3sf# If left blank, NLM_NAME will be used.
a74ee4396fe11ffc1ca05837a59e497c905eedc3sf#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweNLM_DESCRIPTION =
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# This is used by the '-threadname' directive. If left blank,
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# NLM_NAME Thread will be used.
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
f6a9b598f78b2e745456bfc4bbc4afd2d1572aa9stasNLM_THREAD_NAME =
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
0db0abcbe4211435c08e0c0e8f5daa278bed3524wsanchez# If this is specified, it will override VERSION value in
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# $(AP_WORK)\build\NWGNUenvironment.inc
0db0abcbe4211435c08e0c0e8f5daa278bed3524wsanchez#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweNLM_VERSION =
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
f6a9b598f78b2e745456bfc4bbc4afd2d1572aa9stas# If this is specified, it will override the default of 64K
bce58f79020e39e5ac5de398fe08b4f8a1e19970pgollucci#
62f7716b14b71603a8004434ca3536902bfb8899wroweNLM_STACK_SIZE =
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz
53e66a2931d02e84628ba946055cc92e56b43db8wrowe#
53e66a2931d02e84628ba946055cc92e56b43db8wrowe# If this is specified it will be used by the link '-entry' directive
53e66a2931d02e84628ba946055cc92e56b43db8wrowe#
53e66a2931d02e84628ba946055cc92e56b43db8wroweNLM_ENTRY_SYM =
71cda1f2d621dbd9fd3406e35a6f8c412576a15dpgollucci
53e66a2931d02e84628ba946055cc92e56b43db8wrowe#
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz# If this is specified it will be used by the link '-exit' directive
b05930e6008f69bd323abe0c10f81f40ffd27983brianp#
9c09bec965ddf31d132ffaef4305a4eb945b2877jimNLM_EXIT_SYM =
9c09bec965ddf31d132ffaef4305a4eb945b2877jim
99665be7f22b9e3421bd698bd731f82ab0deb827sf#
99665be7f22b9e3421bd698bd731f82ab0deb827sf# If this is specified it will be used by the link '-check' directive
e1c6982304adafcec09d2627755be15b87a6b425sf#
e1c6982304adafcec09d2627755be15b87a6b425sfNLM_CHECK_SYM =
e1c6982304adafcec09d2627755be15b87a6b425sf
e1c6982304adafcec09d2627755be15b87a6b425sf#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# If these are specified it will be used by the link '-flags' directive
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweNLM_FLAGS =
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
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#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweXDCDATA =
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# If there is an NLM target, put it here
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweTARGET_nlm = \
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe $(OBJDIR)/example.nlm \
979b5dac648b2e3eef4b5a514b3711b58640026bsctemme $(OBJDIR)/mod_cach.nlm \
979b5dac648b2e3eef4b5a514b3711b58640026bsctemme $(OBJDIR)/mem_cach.nlm \
a46801e6532423aa7bd184471eb49158d7c9ae62sf $(OBJDIR)/dsk_cach.nlm \
a46801e6532423aa7bd184471eb49158d7c9ae62sf $(OBJDIR)/extfiltr.nlm \
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe $(EOLIST)
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# If LDAPSDK has been defined then build the auth_ldap module
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweifneq "$(LDAPSDK)" ""
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweTARGET_nlm += $(OBJDIR)/authldap.nlm \
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe $(OBJDIR)/utilldap.nlm \
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe $(EOLIST)
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweendif
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# If there is an LIB target, put it here
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweTARGET_lib = \
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe $(EOLIST)
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# These are the OBJ files needed to create the NLM target above.
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# Paths must all use the '/' character
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweFILES_nlm_objs = \
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe $(EOLIST)
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
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.
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweFILES_nlm_libs = \
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe $(EOLIST)
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
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.
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweFILES_nlm_modules = \
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe $(EOLIST)
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# If the nlm has a msg file, put it's path here
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweFILE_nlm_msg =
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# If the nlm has a hlp file put it's path here
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweFILE_nlm_hlp =
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# If this is specified, it will override $(NWOS)\copyright.txt.
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweFILE_nlm_copyright =
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# Any additional imports go here
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweFILES_nlm_Ximports = \
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe $(EOLIST)
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# Any symbols exported to here
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweFILES_nlm_exports = \
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe $(EOLIST)
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# These are the OBJ files needed to create the LIB target above.
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# Paths must all use the '/' character
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweFILES_lib_objs = \
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe $(EOLIST)
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# implement targets and dependancies (leave this section alone)
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowelibs :: $(OBJDIR) $(TARGET_lib)
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowenlms :: libs $(TARGET_nlm)
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# Updated this target to create necessary directories and copy files to the
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweinstall :: nlms FORCE
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe copy $(OBJDIR)\*.nlm $(INSTALL)\Apache2\modules\*.*
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# Any specialized rules here
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe
828333c93c6c11a4b46154302515e35cc6982f12sctemme#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# Include the 'tail' makefile that has targets that depend on variables defined
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe# in this makefile
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe#
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewroweinclude $(AP_WORK)\build\NWGNUtail.inc
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe
9e86ff266f053757dd96dab7cf4bc53aaaaa583ewrowe