NWGNUsession_dbd revision 1deefaad8846266c903a2622d2d5f9df9ef91ad1
181e56d8b348d301d615ccf5465ae600fee2867berikabele#
181e56d8b348d301d615ccf5465ae600fee2867berikabele# Make sure all needed macro's are defined
181e56d8b348d301d615ccf5465ae600fee2867berikabele#
b1ced323143ade589985456a78f3f64d6a6580c5yoshiki
b1ced323143ade589985456a78f3f64d6a6580c5yoshiki#
b1ced323143ade589985456a78f3f64d6a6580c5yoshiki# Get the 'head' of the build environment if necessary. This includes default
5a58787efeb02a1c3f06569d019ad81fd2efa06end# targets and paths to tools
330d21e087f40d0b296ae96d6de57c27cba83b99rbowen#
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
7add1372edb1ee95a2c4d1314df4c7567bda7c62jimifndef EnvironmentDefined
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erboweninclude $(AP_WORK)/build/NWGNUhead.inc
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowenendif
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen#
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim# These directories will be at the beginning of the include list, followed by
5a58787efeb02a1c3f06569d019ad81fd2efa06end# INCDIRS
d229f940abfb2490dee17979e9a5ff31b7012eb5rbowen#
3f08db06526d6901aa08c110b5bc7dde6bc39905ndXINCDIRS += \
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim $(APR)/include \
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim $(APRUTIL)/include \
5a58787efeb02a1c3f06569d019ad81fd2efa06end $(SRC)/include \
3f08db06526d6901aa08c110b5bc7dde6bc39905nd $(STDMOD)/database \
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd $(NWOS) \
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim#
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim# These flags will come after CFLAGS
7f5b59ccc63c0c0e3e678a168f09ee6a2f51f9d0nd#
fac8c35bfb158112226ab43ddf84d59daca5dc30ndXCFLAGS += \
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung $(EOLIST)
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd#
654d8eb036bedc99e90e11910ee02d3421417697rbowen# These defines will come after DEFINES
5a58787efeb02a1c3f06569d019ad81fd2efa06end#
7add1372edb1ee95a2c4d1314df4c7567bda7c62jimXDEFINES += \
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim $(EOLIST)
6f7c18e70781deff3d1129774221de81b43c828end
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim#
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh# These flags will be added to the link.opt file
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim#
5a58787efeb02a1c3f06569d019ad81fd2efa06endXLFLAGS += \
5a58787efeb02a1c3f06569d019ad81fd2efa06end $(EOLIST)
b442af56a5e2104663b84fb345c070ce185d4ab3slive
aaf7b7f4cc1be050310c3d7f48bce0ec67e174e4nd#
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim# These values will be appended to the correct variables based on the value of
aaf7b7f4cc1be050310c3d7f48bce0ec67e174e4nd# RELEASE
aaf7b7f4cc1be050310c3d7f48bce0ec67e174e4nd#
c0c6c6e1fc6d75274623ec07b635725c5ffaaa20rbowenifeq "$(RELEASE)" "debug"
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowenXINCDIRS += \
a166215fba9f76030a979c81f95becff52f5aeefrbowen $(EOLIST)
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsfXCFLAGS += \
b71e5eae594d54e9e56dc20208c6a7fb52610e29rbowen $(EOLIST)
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf
59c15ce2922cf16717326159168f26f628345a82rbowenXDEFINES += \
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen $(EOLIST)
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
b1ced323143ade589985456a78f3f64d6a6580c5yoshikiXLFLAGS += \
59c15ce2922cf16717326159168f26f628345a82rbowen $(EOLIST)
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowenendif
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsfifeq "$(RELEASE)" "noopt"
59c15ce2922cf16717326159168f26f628345a82rbowenXINCDIRS += \
59c15ce2922cf16717326159168f26f628345a82rbowen $(EOLIST)
b442af56a5e2104663b84fb345c070ce185d4ab3slive
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowenXCFLAGS += \
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen $(EOLIST)
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowenXDEFINES += \
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluem $(EOLIST)
b442af56a5e2104663b84fb345c070ce185d4ab3slive
c3c006c28c5b03892ccaef6e4d2cbb15a13a2072rbowenXLFLAGS += \
c3c006c28c5b03892ccaef6e4d2cbb15a13a2072rbowen $(EOLIST)
c3c006c28c5b03892ccaef6e4d2cbb15a13a2072rbowenendif
c3c006c28c5b03892ccaef6e4d2cbb15a13a2072rbowen
c3c006c28c5b03892ccaef6e4d2cbb15a13a2072rbowenifeq "$(RELEASE)" "release"
b442af56a5e2104663b84fb345c070ce185d4ab3sliveXINCDIRS += \
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluem $(EOLIST)
38d7b435c9e47c1549c7ec5e899c9461548a228derikabele
b442af56a5e2104663b84fb345c070ce185d4ab3sliveXCFLAGS += \
c3c006c28c5b03892ccaef6e4d2cbb15a13a2072rbowen $(EOLIST)
c3c006c28c5b03892ccaef6e4d2cbb15a13a2072rbowen
c3c006c28c5b03892ccaef6e4d2cbb15a13a2072rbowenXDEFINES += \
c3c006c28c5b03892ccaef6e4d2cbb15a13a2072rbowen $(EOLIST)
c3c006c28c5b03892ccaef6e4d2cbb15a13a2072rbowen
b442af56a5e2104663b84fb345c070ce185d4ab3sliveXLFLAGS += \
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluem $(EOLIST)
b442af56a5e2104663b84fb345c070ce185d4ab3sliveendif
b442af56a5e2104663b84fb345c070ce185d4ab3slive
c3c006c28c5b03892ccaef6e4d2cbb15a13a2072rbowen#
5383fa753e1bcd3a04ec34ba9810d671302380f2colm# These are used by the link target if an NLM is being generated
c3c006c28c5b03892ccaef6e4d2cbb15a13a2072rbowen# This is used by the link 'name' directive to name the nlm. If left blank
c3c006c28c5b03892ccaef6e4d2cbb15a13a2072rbowen# TARGET_nlm (see below) will be used.
a166215fba9f76030a979c81f95becff52f5aeefrbowen#
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsfNLM_NAME = session_dbd
a166215fba9f76030a979c81f95becff52f5aeefrbowen
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf#
a166215fba9f76030a979c81f95becff52f5aeefrbowen# This is used by the link '-desc ' directive.
a166215fba9f76030a979c81f95becff52f5aeefrbowen# If left blank, NLM_NAME will be used.
a166215fba9f76030a979c81f95becff52f5aeefrbowen#
a166215fba9f76030a979c81f95becff52f5aeefrbowenNLM_DESCRIPTION = Apache $(VERSION_STR) Session Cookie Module
a166215fba9f76030a979c81f95becff52f5aeefrbowen
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim#
5a58787efeb02a1c3f06569d019ad81fd2efa06end# This is used by the '-threadname' directive. If left blank,
5a58787efeb02a1c3f06569d019ad81fd2efa06end# NLM_NAME Thread will be used.
b442af56a5e2104663b84fb345c070ce185d4ab3slive#
b442af56a5e2104663b84fb345c070ce185d4ab3sliveNLM_THREAD_NAME = SessionDbd Module
20189240503ef2c8f5dc6e2248b57faab4b23b5and
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim#
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf# If this is specified, it will override VERSION value in
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluem# $(AP_WORK)/build/NWGNUenvironment.inc
4566c682d671cfda9cfcb77ea3f8e3fb8a265010trawick#
c0c6c6e1fc6d75274623ec07b635725c5ffaaa20rbowenNLM_VERSION =
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf#
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf# If this is specified, it will override the default of 64K
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf#
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluemNLM_STACK_SIZE = 8192
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
c0c6c6e1fc6d75274623ec07b635725c5ffaaa20rbowen#
4566c682d671cfda9cfcb77ea3f8e3fb8a265010trawick# If this is specified it will be used by the link '-entry' directive
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf#
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsfNLM_ENTRY_SYM =
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf#
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim# If this is specified it will be used by the link '-exit' directive
ef26e16090b1b00e96bb5eb1bee6f9cee4651466jwoolley#
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsfNLM_EXIT_SYM =
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf
4566c682d671cfda9cfcb77ea3f8e3fb8a265010trawick#
b442af56a5e2104663b84fb345c070ce185d4ab3slive# If this is specified it will be used by the link '-check' directive
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf#
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsfNLM_CHECK_SYM =
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
35618dd145853155d4c7b1d0d6391707315f957ekess#
b442af56a5e2104663b84fb345c070ce185d4ab3slive# If these are specified it will be used by the link '-flags' directive
c3c006c28c5b03892ccaef6e4d2cbb15a13a2072rbowen#
c3c006c28c5b03892ccaef6e4d2cbb15a13a2072rbowenNLM_FLAGS =
c3c006c28c5b03892ccaef6e4d2cbb15a13a2072rbowen
c3c006c28c5b03892ccaef6e4d2cbb15a13a2072rbowen#
c3c006c28c5b03892ccaef6e4d2cbb15a13a2072rbowen# If this is specified it will be linked in with the XDCData option in the def
b442af56a5e2104663b84fb345c070ce185d4ab3slive# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf# by setting APACHE_UNIPROC in the environment
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf#
7add1372edb1ee95a2c4d1314df4c7567bda7c62jimXDCDATA =
9bcfc3697a91b5215893a7d0206865b13fc72148nd
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim#
5a58787efeb02a1c3f06569d019ad81fd2efa06end# If there is an NLM target, put it here
6f7c18e70781deff3d1129774221de81b43c828end#
6f7c18e70781deff3d1129774221de81b43c828endTARGET_nlm = \
6f7c18e70781deff3d1129774221de81b43c828end $(OBJDIR)/$(NLM_NAME).nlm \
6f7c18e70781deff3d1129774221de81b43c828end $(EOLIST)
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf#
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf# If there is an LIB target, put it here
6f7c18e70781deff3d1129774221de81b43c828end#
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsfTARGET_lib = \
6f7c18e70781deff3d1129774221de81b43c828end $(EOLIST)
6f7c18e70781deff3d1129774221de81b43c828end
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf#
6f7c18e70781deff3d1129774221de81b43c828end# These are the OBJ files needed to create the NLM target above.
6f7c18e70781deff3d1129774221de81b43c828end# Paths must all use the '/' character
c3c006c28c5b03892ccaef6e4d2cbb15a13a2072rbowen#
6f7c18e70781deff3d1129774221de81b43c828endFILES_nlm_objs = \
c3c006c28c5b03892ccaef6e4d2cbb15a13a2072rbowen $(OBJDIR)/mod_session_dbd.o \
c3c006c28c5b03892ccaef6e4d2cbb15a13a2072rbowen $(EOLIST)
6f7c18e70781deff3d1129774221de81b43c828end
6f7c18e70781deff3d1129774221de81b43c828end#
5a58787efeb02a1c3f06569d019ad81fd2efa06end# These are the LIB files needed to create the NLM target above.
b442af56a5e2104663b84fb345c070ce185d4ab3slive# These will be added as a library command in the link.opt file.
455a5f75c9935108a7ac1d50996f404e0553ac17paul#
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsfFILES_nlm_libs = \
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluem $(PRELUDE) \
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluem $(EOLIST)
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
b1ced323143ade589985456a78f3f64d6a6580c5yoshiki#
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluem# These are the modules that the above NLM target depends on to load.
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim# These will be added as a module command in the link.opt file.
b1ced323143ade589985456a78f3f64d6a6580c5yoshiki#
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluemFILES_nlm_modules = \
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen aprlib \
b1ced323143ade589985456a78f3f64d6a6580c5yoshiki libc \
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim session \
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluem $(EOLIST)
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim#
b1ced323143ade589985456a78f3f64d6a6580c5yoshiki# If the nlm has a msg file, put it's path here
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen#
5a58787efeb02a1c3f06569d019ad81fd2efa06endFILE_nlm_msg =
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim#
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim# If the nlm has a hlp file put it's path here
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim#
7f5b59ccc63c0c0e3e678a168f09ee6a2f51f9d0ndFILE_nlm_hlp =
fac8c35bfb158112226ab43ddf84d59daca5dc30nd
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung#
727872d18412fc021f03969b8641810d8896820bhumbedooh# If this is specified, it will override $(NWOS)\copyright.txt.
0d0ba3a410038e179b695446bb149cce6264e0abnd#
727872d18412fc021f03969b8641810d8896820bhumbedoohFILE_nlm_copyright =
cc7e1025de9ac63bd4db6fe7f71c158b2cf09fe4humbedooh
0d0ba3a410038e179b695446bb149cce6264e0abnd#
cc7e1025de9ac63bd4db6fe7f71c158b2cf09fe4humbedooh# Any additional imports go here
727872d18412fc021f03969b8641810d8896820bhumbedooh#
0d0ba3a410038e179b695446bb149cce6264e0abndFILES_nlm_Ximports = \
0d0ba3a410038e179b695446bb149cce6264e0abnd @aprlib.imp \
0d0ba3a410038e179b695446bb149cce6264e0abnd @httpd.imp \
727872d18412fc021f03969b8641810d8896820bhumbedooh @libc.imp \
0d0ba3a410038e179b695446bb149cce6264e0abnd ap_hook_session_load \
0d0ba3a410038e179b695446bb149cce6264e0abnd ap_hook_session_save \
0d0ba3a410038e179b695446bb149cce6264e0abnd $(EOLIST)
727872d18412fc021f03969b8641810d8896820bhumbedooh
0d0ba3a410038e179b695446bb149cce6264e0abnd#
0d0ba3a410038e179b695446bb149cce6264e0abnd# Any symbols exported to here
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh#
5effc8b39fae5cd169d17f342bfc265705840014rbowenFILES_nlm_exports = \
d229f940abfb2490dee17979e9a5ff31b7012eb5rbowen session_dbd_module \
0d0ba3a410038e179b695446bb149cce6264e0abnd $(EOLIST)
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd#
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd# These are the OBJ files needed to create the LIB target above.
5a58787efeb02a1c3f06569d019ad81fd2efa06end# Paths must all use the '/' character
#
FILES_lib_objs = \
$(EOLIST)
#
# 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