NWGNUsession revision 1deefaad8846266c903a2622d2d5f9df9ef91ad1
97a9a944b5887e91042b019776c41d5dd74557aferikabele#
97a9a944b5887e91042b019776c41d5dd74557aferikabele# Make sure all needed macro's are defined
97a9a944b5887e91042b019776c41d5dd74557aferikabele#
a945f35eff8b6a88009ce73de6d4c862ce58de3cslive
a945f35eff8b6a88009ce73de6d4c862ce58de3cslive#
a945f35eff8b6a88009ce73de6d4c862ce58de3cslive# Get the 'head' of the build environment if necessary. This includes default
b686b6a420bde7f78c416b90be11db94cb789979nd# targets and paths to tools
b686b6a420bde7f78c416b90be11db94cb789979nd#
b686b6a420bde7f78c416b90be11db94cb789979nd
b686b6a420bde7f78c416b90be11db94cb789979ndifndef EnvironmentDefined
b686b6a420bde7f78c416b90be11db94cb789979ndinclude $(AP_WORK)/build/NWGNUhead.inc
b686b6a420bde7f78c416b90be11db94cb789979ndendif
b686b6a420bde7f78c416b90be11db94cb789979nd
b686b6a420bde7f78c416b90be11db94cb789979nd#
52fff662005b1866a3ff09bb6c902800c5cc6dedjerenkrantz# These directories will be at the beginning of the include list, followed by
b686b6a420bde7f78c416b90be11db94cb789979nd# INCDIRS
b686b6a420bde7f78c416b90be11db94cb789979nd#
b686b6a420bde7f78c416b90be11db94cb789979ndXINCDIRS += \
4b5981e276e93df97c34e4da05ca5cf8bbd937dand $(APR)/include \
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd $(APRUTIL)/include \
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd $(SRC)/include \
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd $(NWOS) \
b05ab3ff5ab54aa22610b13d56eaba6ddfc3db60nd $(EOLIST)
cc8190433d13f5e9de618c5d7f10c824c0c1919cgryzor
7f5b59ccc63c0c0e3e678a168f09ee6a2f51f9d0nd#
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end# These flags will come after CFLAGS
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end#
3b3b7fc78d1f5bfc2769903375050048ff41ff26ndXCFLAGS += \
b686b6a420bde7f78c416b90be11db94cb789979nd $(EOLIST)
06ba4a61654b3763ad65f52283832ebf058fdf1cslive
06ba4a61654b3763ad65f52283832ebf058fdf1cslive#
381b101317d64df9ce37f788d903a999f9f26ca7rbowen# These defines will come after DEFINES
381b101317d64df9ce37f788d903a999f9f26ca7rbowen#
06ba4a61654b3763ad65f52283832ebf058fdf1csliveXDEFINES += \
06ba4a61654b3763ad65f52283832ebf058fdf1cslive $(EOLIST)
80d3dc69b0e6ad772135f6a78af3d16bd6cccc42nd
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd#
5b10fd3977e6dfff19afe770e612e276962f7950nd# These flags will be added to the link.opt file
5b10fd3977e6dfff19afe770e612e276962f7950nd#
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2ndXLFLAGS += \
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd $(EOLIST)
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd#
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd# These values will be appended to the correct variables based on the value of
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd# RELEASE
80d3dc69b0e6ad772135f6a78af3d16bd6cccc42nd#
5b10fd3977e6dfff19afe770e612e276962f7950ndifeq "$(RELEASE)" "debug"
5b10fd3977e6dfff19afe770e612e276962f7950ndXINCDIRS += \
80d3dc69b0e6ad772135f6a78af3d16bd6cccc42nd $(EOLIST)
80d3dc69b0e6ad772135f6a78af3d16bd6cccc42nd
2aff288113d772cedca6add888eb643afffe9fb1ndXCFLAGS += \
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd $(EOLIST)
2aff288113d772cedca6add888eb643afffe9fb1nd
166c7891cc2a7545eca0f4dda6af92026bc43fcfrpluemXDEFINES += \
166c7891cc2a7545eca0f4dda6af92026bc43fcfrpluem $(EOLIST)
2aff288113d772cedca6add888eb643afffe9fb1nd
2aff288113d772cedca6add888eb643afffe9fb1ndXLFLAGS += \
316f02e3836836c82e19019ff23f90a7ebc65289nilgun $(EOLIST)
2aff288113d772cedca6add888eb643afffe9fb1ndendif
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2ndifeq "$(RELEASE)" "noopt"
2aff288113d772cedca6add888eb643afffe9fb1ndXINCDIRS += \
2aff288113d772cedca6add888eb643afffe9fb1nd $(EOLIST)
80d3dc69b0e6ad772135f6a78af3d16bd6cccc42nd
80d3dc69b0e6ad772135f6a78af3d16bd6cccc42ndXCFLAGS += \
80d3dc69b0e6ad772135f6a78af3d16bd6cccc42nd $(EOLIST)
43f6cc6aa3312619633538b8978619a48c0ce52eminfrin
7ec4d5cc4aa574e3191bc5a612e68fd8f25ab7earpluemXDEFINES += \
7ec4d5cc4aa574e3191bc5a612e68fd8f25ab7earpluem $(EOLIST)
7ec4d5cc4aa574e3191bc5a612e68fd8f25ab7earpluem
2aff288113d772cedca6add888eb643afffe9fb1ndXLFLAGS += \
2aff288113d772cedca6add888eb643afffe9fb1nd $(EOLIST)
2aff288113d772cedca6add888eb643afffe9fb1ndendif
2aff288113d772cedca6add888eb643afffe9fb1nd
2aff288113d772cedca6add888eb643afffe9fb1ndifeq "$(RELEASE)" "release"
2aff288113d772cedca6add888eb643afffe9fb1ndXINCDIRS += \
2aff288113d772cedca6add888eb643afffe9fb1nd $(EOLIST)
635e08c1d8332adc365b1c20bbe3577d59ebcd78kess
d9b843d090f14405079b4a61a493316cd3f1e5b9minfrinXCFLAGS += \
2aff288113d772cedca6add888eb643afffe9fb1nd $(EOLIST)
2aff288113d772cedca6add888eb643afffe9fb1nd
8951c7d73bfa2ae5a2c8fe5bd27f3e677be02564noirinXDEFINES += \
909ce17e2bd0faef7b1c294f2307f009793fd493nd $(EOLIST)
2aff288113d772cedca6add888eb643afffe9fb1nd
2aff288113d772cedca6add888eb643afffe9fb1ndXLFLAGS += \
42af92a661a06b3cebc88d585aad75064a309d51nd $(EOLIST)
42af92a661a06b3cebc88d585aad75064a309d51ndendif
8951c7d73bfa2ae5a2c8fe5bd27f3e677be02564noirin
6fe26506780e73be2a412d758af77fafdf03291and#
2aff288113d772cedca6add888eb643afffe9fb1nd# These are used by the link target if an NLM is being generated
2aff288113d772cedca6add888eb643afffe9fb1nd# This is used by the link 'name' directive to name the nlm. If left blank
2aff288113d772cedca6add888eb643afffe9fb1nd# TARGET_nlm (see below) will be used.
2aff288113d772cedca6add888eb643afffe9fb1nd#
64c02f1310b7747423957823ee09fb3608430f89ndNLM_NAME = session
aa0b2780958e9b1467c9d0153a05738e399811a5nd
2aff288113d772cedca6add888eb643afffe9fb1nd#
2aff288113d772cedca6add888eb643afffe9fb1nd# This is used by the link '-desc ' directive.
2aff288113d772cedca6add888eb643afffe9fb1nd# If left blank, NLM_NAME will be used.
43f6cc6aa3312619633538b8978619a48c0ce52eminfrin#
80d3dc69b0e6ad772135f6a78af3d16bd6cccc42ndNLM_DESCRIPTION = Apache $(VERSION_STR) Session Module
2aff288113d772cedca6add888eb643afffe9fb1nd
2aff288113d772cedca6add888eb643afffe9fb1nd#
2aff288113d772cedca6add888eb643afffe9fb1nd# This is used by the '-threadname' directive. If left blank,
2aff288113d772cedca6add888eb643afffe9fb1nd# NLM_NAME Thread will be used.
2aff288113d772cedca6add888eb643afffe9fb1nd#
80d3dc69b0e6ad772135f6a78af3d16bd6cccc42ndNLM_THREAD_NAME = Session Module
2aff288113d772cedca6add888eb643afffe9fb1nd
e67fa8d3f161e595dd448fc24a591ee17ae59131nd#
05ede5110427cb9dc071cc671d5aaba5d3b88c79nd# If this is specified, it will override VERSION value in
e8b603fa9ccf7b17b11b42df6d8916fd97c2331dnd# $(AP_WORK)/build/NWGNUenvironment.inc
bf94bedcb62d7f0b926f4286069def5ee6b07b60nd#
bf94bedcb62d7f0b926f4286069def5ee6b07b60ndNLM_VERSION =
2aff288113d772cedca6add888eb643afffe9fb1nd
2aff288113d772cedca6add888eb643afffe9fb1nd#
bbcbf978a3074512c627c797fedcb30eeab7b39dslive# If this is specified, it will override the default of 64K
ee5db395bc3723609919edfa96af387eea37c491jim#
80d3dc69b0e6ad772135f6a78af3d16bd6cccc42ndNLM_STACK_SIZE = 8192
2aff288113d772cedca6add888eb643afffe9fb1nd
e55e60efce8a3e2139132c1d6ad9f6f0d2976614nd
e55e60efce8a3e2139132c1d6ad9f6f0d2976614nd#
2aff288113d772cedca6add888eb643afffe9fb1nd# If this is specified it will be used by the link '-entry' directive
7f3fdc63be07f2ad39e01a44e68e9324998a5c03slive#
7f3fdc63be07f2ad39e01a44e68e9324998a5c03sliveNLM_ENTRY_SYM =
7f3fdc63be07f2ad39e01a44e68e9324998a5c03slive
75585bd48fe0f30483dba4762e61edf39ea3e0f6nd#
75585bd48fe0f30483dba4762e61edf39ea3e0f6nd# If this is specified it will be used by the link '-exit' directive
80d3dc69b0e6ad772135f6a78af3d16bd6cccc42nd#
03a4ff9ac4c9b8009249010e7c53bb86ff05915andNLM_EXIT_SYM =
80d3dc69b0e6ad772135f6a78af3d16bd6cccc42nd
3b58542e01ec69422f3086db5825a12fc77b726end#
1e367a83311e5243e04d68857d007d04765a48f9chrisd# If this is specified it will be used by the link '-check' directive
1e367a83311e5243e04d68857d007d04765a48f9chrisd#
a0d937b340692a3578f1d2f2535890c520c4bf0cndNLM_CHECK_SYM =
7d15331eeb5429d7148d13d6fd914a641bf1c000pquerna
2aff288113d772cedca6add888eb643afffe9fb1nd#
2aff288113d772cedca6add888eb643afffe9fb1nd# If these are specified it will be used by the link '-flags' directive
2aff288113d772cedca6add888eb643afffe9fb1nd#
2aff288113d772cedca6add888eb643afffe9fb1ndNLM_FLAGS =
2704de98885368683621b01c8f8f4e4b01557611takashi
2704de98885368683621b01c8f8f4e4b01557611takashi#
2704de98885368683621b01c8f8f4e4b01557611takashi# If this is specified it will be linked in with the XDCData option in the def
1e367a83311e5243e04d68857d007d04765a48f9chrisd# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
2704de98885368683621b01c8f8f4e4b01557611takashi# by setting APACHE_UNIPROC in the environment
08842292d2f1550b40ae73e0dafc7641c5955c82nd#
2aff288113d772cedca6add888eb643afffe9fb1ndXDCDATA =
d2b809e5d72658bff23819d8b77f20e4939af541nd
2aff288113d772cedca6add888eb643afffe9fb1nd#
4b2d52ed83bf31730c8b6bbe7c06d806dc3a0c4erbowen# If there is an NLM target, put it here
4b2d52ed83bf31730c8b6bbe7c06d806dc3a0c4erbowen#
cd6c8de3bedcc401ee230159b0439fa20f44488etakashiTARGET_nlm = \
2aff288113d772cedca6add888eb643afffe9fb1nd $(OBJDIR)/$(NLM_NAME).nlm \
2aff288113d772cedca6add888eb643afffe9fb1nd $(EOLIST)
2aff288113d772cedca6add888eb643afffe9fb1nd
2aff288113d772cedca6add888eb643afffe9fb1nd#
2aff288113d772cedca6add888eb643afffe9fb1nd# If there is an LIB target, put it here
80d3dc69b0e6ad772135f6a78af3d16bd6cccc42nd#
c023f60e35022146373e40249f0c8c8d623b6fcfndTARGET_lib = \
1de1266f0ea387d6373be8415745dfd2ab876341jim $(EOLIST)
27d778df0b517e1578f907d2e51eb961cd8ee5fbjim
27d778df0b517e1578f907d2e51eb961cd8ee5fbjim#
a43bfa789f4e52dde53ae8e53fa0427b5c1cf977nd# These are the OBJ files needed to create the NLM target above.
a43bfa789f4e52dde53ae8e53fa0427b5c1cf977nd# Paths must all use the '/' character
101bf3584c853027d9e51df6edfff5ff70c80238jim#
73ba54c33b4fcad0e13005e10ea8648c9fe4265bndFILES_nlm_objs = \
73ba54c33b4fcad0e13005e10ea8648c9fe4265bnd $(OBJDIR)/mod_session.o \
1d980e5489836e977ba59b419e27b0ec875c4bd3takashi $(EOLIST)
e5ce3ac0e9b720c0fa23782e29168a0810697fdetakashi
604c89126c27104f659d7a51b0113e3bd435faf8fielding#
a329941afa602684be21fa85a54f2639e91763f8pquerna# These are the LIB files needed to create the NLM target above.
73ba54c33b4fcad0e13005e10ea8648c9fe4265bnd# These will be added as a library command in the link.opt file.
73ba54c33b4fcad0e13005e10ea8648c9fe4265bnd#
73ba54c33b4fcad0e13005e10ea8648c9fe4265bndFILES_nlm_libs = \
73ba54c33b4fcad0e13005e10ea8648c9fe4265bnd $(PRELUDE) \
0a69d9bb491d9810892a9949c01403a1de3c7ac2nd $(EOLIST)
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin#
5f4e50966b2b9b58436a1651cbe588d1b595657ewrowe# These are the modules that the above NLM target depends on to load.
5f4e50966b2b9b58436a1651cbe588d1b595657ewrowe# These will be added as a module command in the link.opt file.
5f4e50966b2b9b58436a1651cbe588d1b595657ewrowe#
af4381d113faafc97340eaaa008840c7fcbcc8fdsfFILES_nlm_modules = \
af4381d113faafc97340eaaa008840c7fcbcc8fdsf aprlib \
5f4e50966b2b9b58436a1651cbe588d1b595657ewrowe libc \
ecc5150d35c0dc5ee5119c2717e6660fa331abbftakashi $(EOLIST)
2aff288113d772cedca6add888eb643afffe9fb1nd
50cb7e2b30597f481fee57bac945190f06ebcc58jorton#
79b024b81f6bb3c44dce77a7552191daf8b522d2jim# If the nlm has a msg file, put it's path here
4277c95b5a9454a5c25f8d8762634fcff37aa840minfrin#
4277c95b5a9454a5c25f8d8762634fcff37aa840minfrinFILE_nlm_msg =
f195a136dcd90148b116fdae8ce95b41ba92b87eminfrin
4277c95b5a9454a5c25f8d8762634fcff37aa840minfrin#
2aff288113d772cedca6add888eb643afffe9fb1nd# If the nlm has a hlp file put it's path here
1de1266f0ea387d6373be8415745dfd2ab876341jim#
1de1266f0ea387d6373be8415745dfd2ab876341jimFILE_nlm_hlp =
2aff288113d772cedca6add888eb643afffe9fb1nd
2aff288113d772cedca6add888eb643afffe9fb1nd#
2aff288113d772cedca6add888eb643afffe9fb1nd# If this is specified, it will override $(NWOS)\copyright.txt.
2aff288113d772cedca6add888eb643afffe9fb1nd#
2aff288113d772cedca6add888eb643afffe9fb1ndFILE_nlm_copyright =
2aff288113d772cedca6add888eb643afffe9fb1nd
2aff288113d772cedca6add888eb643afffe9fb1nd#
2aff288113d772cedca6add888eb643afffe9fb1nd# Any additional imports go here
2aff288113d772cedca6add888eb643afffe9fb1nd#
10eed2803538d660048f6e733602e82a75ef6885noodlFILES_nlm_Ximports = \
2aff288113d772cedca6add888eb643afffe9fb1nd @aprlib.imp \
2aff288113d772cedca6add888eb643afffe9fb1nd @httpd.imp \
80d3dc69b0e6ad772135f6a78af3d16bd6cccc42nd @libc.imp \
2aff288113d772cedca6add888eb643afffe9fb1nd $(EOLIST)
50cb7e2b30597f481fee57bac945190f06ebcc58jorton
2aff288113d772cedca6add888eb643afffe9fb1nd#
2aff288113d772cedca6add888eb643afffe9fb1nd# Any symbols exported to here
2aff288113d772cedca6add888eb643afffe9fb1nd#
2aff288113d772cedca6add888eb643afffe9fb1ndFILES_nlm_exports = \
03c25fb6f628ac81f2ecb637d1e7502dcee783f3nd session_module \
03c25fb6f628ac81f2ecb637d1e7502dcee783f3nd ap_hook_session_decode \
2aff288113d772cedca6add888eb643afffe9fb1nd ap_hook_session_encode \
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd ap_hook_session_load \
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd ap_hook_session_save \
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd $(EOLIST)
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd
b05ab3ff5ab54aa22610b13d56eaba6ddfc3db60nd#
cc8190433d13f5e9de618c5d7f10c824c0c1919cgryzor# These are the OBJ files needed to create the LIB target above.
7f5b59ccc63c0c0e3e678a168f09ee6a2f51f9d0nd# Paths must all use the '/' character
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end#
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1endFILES_lib_objs = \
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd $(EOLIST)
50039065d571fe01fd458a3f031c995a1fd53c22rbowen
b686b6a420bde7f78c416b90be11db94cb789979nd#
80d3dc69b0e6ad772135f6a78af3d16bd6cccc42nd# implement targets and dependancies (leave this section alone)
#
libs :: $(OBJDIR) $(TARGET_lib)
nlms :: libs $(TARGET_nlm)
#
# Updated this target to create necessary directories and copy files to the
# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
#
install :: nlms FORCE
#
# Any specialized rules here
#
vpath %.c ../arch/netware
#
# Include the 'tail' makefile that has targets that depend on variables defined
# in this makefile
#
include $(APBUILD)/NWGNUtail.inc