NWGNUsession_crypto revision 8ffac2c334103c0336602aaede650cb578611151
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
5a58787efeb02a1c3f06569d019ad81fd2efa06end#
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
7add1372edb1ee95a2c4d1314df4c7567bda7c62jimifndef EnvironmentDefined
7add1372edb1ee95a2c4d1314df4c7567bda7c62jiminclude $(AP_WORK)/build/NWGNUhead.inc
7add1372edb1ee95a2c4d1314df4c7567bda7c62jimendif
5a58787efeb02a1c3f06569d019ad81fd2efa06end
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim#
52fff662005b1866a3ff09bb6c902800c5cc6dedjerenkrantz# These directories will be at the beginning of the include list, followed by
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim# INCDIRS
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim#
5a58787efeb02a1c3f06569d019ad81fd2efa06endXINCDIRS += \
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim $(APR)/include \
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd $(APRUTIL)/include \
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim $(AP_WORK)/include \
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim $(AP_WORK)/modules/http \
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim $(AP_WORK)/modules/generators \
7f5b59ccc63c0c0e3e678a168f09ee6a2f51f9d0nd $(AP_WORK)/modules/ssl \
fac8c35bfb158112226ab43ddf84d59daca5dc30nd $(NWOS) \
fac8c35bfb158112226ab43ddf84d59daca5dc30nd $(EOLIST)
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd#
654d8eb036bedc99e90e11910ee02d3421417697rbowen# These flags will come after CFLAGS
5a58787efeb02a1c3f06569d019ad81fd2efa06end#
7add1372edb1ee95a2c4d1314df4c7567bda7c62jimXCFLAGS += \
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim $(EOLIST)
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
5a58787efeb02a1c3f06569d019ad81fd2efa06end#
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim# These defines will come after DEFINES
5a58787efeb02a1c3f06569d019ad81fd2efa06end#
5a58787efeb02a1c3f06569d019ad81fd2efa06endXDEFINES += \
b442af56a5e2104663b84fb345c070ce185d4ab3slive $(EOLIST)
aaf7b7f4cc1be050310c3d7f48bce0ec67e174e4nd
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim#
aaf7b7f4cc1be050310c3d7f48bce0ec67e174e4nd# These flags will be added to the link.opt file
aaf7b7f4cc1be050310c3d7f48bce0ec67e174e4nd#
c0c6c6e1fc6d75274623ec07b635725c5ffaaa20rbowenXLFLAGS += \
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen $(EOLIST)
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluem
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluem#
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluem# These values will be appended to the correct variables based on the value of
59c15ce2922cf16717326159168f26f628345a82rbowen# RELEASE
59c15ce2922cf16717326159168f26f628345a82rbowen#
59c15ce2922cf16717326159168f26f628345a82rbowenifeq "$(RELEASE)" "debug"
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowenXINCDIRS += \
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim $(EOLIST)
b1ced323143ade589985456a78f3f64d6a6580c5yoshiki
59c15ce2922cf16717326159168f26f628345a82rbowenXCFLAGS += \
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen $(EOLIST)
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
59c15ce2922cf16717326159168f26f628345a82rbowenXDEFINES += \
59c15ce2922cf16717326159168f26f628345a82rbowen $(EOLIST)
59c15ce2922cf16717326159168f26f628345a82rbowen
b442af56a5e2104663b84fb345c070ce185d4ab3sliveXLFLAGS += \
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen $(EOLIST)
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowenendif
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen
59c15ce2922cf16717326159168f26f628345a82rbowenifeq "$(RELEASE)" "noopt"
59c15ce2922cf16717326159168f26f628345a82rbowenXINCDIRS += \
59c15ce2922cf16717326159168f26f628345a82rbowen $(EOLIST)
59c15ce2922cf16717326159168f26f628345a82rbowen
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowenXCFLAGS += \
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluem $(EOLIST)
b442af56a5e2104663b84fb345c070ce185d4ab3slive
181e56d8b348d301d615ccf5465ae600fee2867berikabeleXDEFINES += \
181e56d8b348d301d615ccf5465ae600fee2867berikabele $(EOLIST)
b442af56a5e2104663b84fb345c070ce185d4ab3slive
181e56d8b348d301d615ccf5465ae600fee2867berikabeleXLFLAGS += \
b442af56a5e2104663b84fb345c070ce185d4ab3slive $(EOLIST)
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluemendif
38d7b435c9e47c1549c7ec5e899c9461548a228derikabele
b442af56a5e2104663b84fb345c070ce185d4ab3sliveifeq "$(RELEASE)" "release"
181e56d8b348d301d615ccf5465ae600fee2867berikabeleXINCDIRS += \
d1bfc6be06494f56e80960d8cdc40c4e3f1fc3abnoirin $(EOLIST)
d1bfc6be06494f56e80960d8cdc40c4e3f1fc3abnoirin
181e56d8b348d301d615ccf5465ae600fee2867berikabeleXCFLAGS += \
b442af56a5e2104663b84fb345c070ce185d4ab3slive $(EOLIST)
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluem
b442af56a5e2104663b84fb345c070ce185d4ab3sliveXDEFINES += \
b442af56a5e2104663b84fb345c070ce185d4ab3slive $(EOLIST)
181e56d8b348d301d615ccf5465ae600fee2867berikabele
5383fa753e1bcd3a04ec34ba9810d671302380f2colmXLFLAGS += \
181e56d8b348d301d615ccf5465ae600fee2867berikabele $(EOLIST)
7add1372edb1ee95a2c4d1314df4c7567bda7c62jimendif
5a58787efeb02a1c3f06569d019ad81fd2efa06end
5a58787efeb02a1c3f06569d019ad81fd2efa06end#
b442af56a5e2104663b84fb345c070ce185d4ab3slive# These are used by the link target if an NLM is being generated
b442af56a5e2104663b84fb345c070ce185d4ab3slive# This is used by the link 'name' directive to name the nlm. If left blank
20189240503ef2c8f5dc6e2248b57faab4b23b5and# TARGET_nlm (see below) will be used.
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim#
c0c6c6e1fc6d75274623ec07b635725c5ffaaa20rbowenNLM_NAME = session_crypto
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluem
4566c682d671cfda9cfcb77ea3f8e3fb8a265010trawick#
c0c6c6e1fc6d75274623ec07b635725c5ffaaa20rbowen# This is used by the link '-desc ' directive.
4566c682d671cfda9cfcb77ea3f8e3fb8a265010trawick# If left blank, NLM_NAME will be used.
4566c682d671cfda9cfcb77ea3f8e3fb8a265010trawick#
4566c682d671cfda9cfcb77ea3f8e3fb8a265010trawickNLM_DESCRIPTION = Apache $(VERSION_STR) Session Crypto Module
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluem
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluem#
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluem# This is used by the '-threadname' directive. If left blank,
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim# NLM_NAME Thread will be used.
c0c6c6e1fc6d75274623ec07b635725c5ffaaa20rbowen#
4566c682d671cfda9cfcb77ea3f8e3fb8a265010trawickNLM_THREAD_NAME = SessionCrypto Module
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluem
ef26e16090b1b00e96bb5eb1bee6f9cee4651466jwoolley#
59c15ce2922cf16717326159168f26f628345a82rbowen# If this is specified, it will override VERSION value in
ef26e16090b1b00e96bb5eb1bee6f9cee4651466jwoolley# $(AP_WORK)/build/NWGNUenvironment.inc
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim#
ef26e16090b1b00e96bb5eb1bee6f9cee4651466jwoolleyNLM_VERSION =
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluem
c0c6c6e1fc6d75274623ec07b635725c5ffaaa20rbowen#
4566c682d671cfda9cfcb77ea3f8e3fb8a265010trawick# If this is specified, it will override the default of 64K
b442af56a5e2104663b84fb345c070ce185d4ab3slive#
c0c6c6e1fc6d75274623ec07b635725c5ffaaa20rbowenNLM_STACK_SIZE = 8192
4566c682d671cfda9cfcb77ea3f8e3fb8a265010trawick
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
35618dd145853155d4c7b1d0d6391707315f957ekess#
b442af56a5e2104663b84fb345c070ce185d4ab3slive# If this is specified it will be used by the link '-entry' directive
181e56d8b348d301d615ccf5465ae600fee2867berikabele#
b4600e71d7e8201b3c14c67f4ef873cadd4c1d17trawickNLM_ENTRY_SYM =
d1bfc6be06494f56e80960d8cdc40c4e3f1fc3abnoirin
181e56d8b348d301d615ccf5465ae600fee2867berikabele#
b442af56a5e2104663b84fb345c070ce185d4ab3slive# If this is specified it will be used by the link '-exit' directive
c0c6c6e1fc6d75274623ec07b635725c5ffaaa20rbowen#
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluemNLM_EXIT_SYM =
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
9bcfc3697a91b5215893a7d0206865b13fc72148nd#
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim# If this is specified it will be used by the link '-check' directive
5a58787efeb02a1c3f06569d019ad81fd2efa06end#
5a58787efeb02a1c3f06569d019ad81fd2efa06endNLM_CHECK_SYM =
b442af56a5e2104663b84fb345c070ce185d4ab3slive
455a5f75c9935108a7ac1d50996f404e0553ac17paul#
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim# If these are specified it will be used by the link '-flags' directive
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluem#
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluemNLM_FLAGS =
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
b1ced323143ade589985456a78f3f64d6a6580c5yoshiki#
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluem# If this is specified it will be linked in with the XDCData option in the def
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
b1ced323143ade589985456a78f3f64d6a6580c5yoshiki# by setting APACHE_UNIPROC in the environment
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluem#
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowenXDCDATA =
b1ced323143ade589985456a78f3f64d6a6580c5yoshiki
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim#
bf380c59be3f235bde21f1c00098e09e3cf7e7aerpluem# If there is an NLM target, put it here
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen#
7add1372edb1ee95a2c4d1314df4c7567bda7c62jimTARGET_nlm = \
b1ced323143ade589985456a78f3f64d6a6580c5yoshiki $(OBJDIR)/$(NLM_NAME).nlm \
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen $(EOLIST)
5a58787efeb02a1c3f06569d019ad81fd2efa06end
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd#
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim# If there is an LIB target, put it here
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim#
7add1372edb1ee95a2c4d1314df4c7567bda7c62jimTARGET_lib = \
7f5b59ccc63c0c0e3e678a168f09ee6a2f51f9d0nd $(EOLIST)
fac8c35bfb158112226ab43ddf84d59daca5dc30nd
fac8c35bfb158112226ab43ddf84d59daca5dc30nd#
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd# These are the OBJ files needed to create the NLM target above.
50039065d571fe01fd458a3f031c995a1fd53c22rbowen# Paths must all use the '/' character
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim#
5a58787efeb02a1c3f06569d019ad81fd2efa06endFILES_nlm_objs = \
$(OBJDIR)/mod_session_crypto.o \
$(EOLIST)
#
# These are the LIB files needed to create the NLM target above.
# These will be added as a library command in the link.opt file.
#
FILES_nlm_libs = \
libcpre.o \
$(EOLIST)
#
# These are the modules that the above NLM target depends on to load.
# These will be added as a module command in the link.opt file.
#
FILES_nlm_modules = \
aprlib \
libc \
session \
$(EOLIST)
#
# If the nlm has a msg file, put it's path here
#
FILE_nlm_msg =
#
# If the nlm has a hlp file put it's path here
#
FILE_nlm_hlp =
#
# If this is specified, it will override $(NWOS)\copyright.txt.
#
FILE_nlm_copyright =
#
# Any additional imports go here
#
FILES_nlm_Ximports = \
@aprlib.imp \
@httpd.imp \
@libc.imp \
ap_hook_session_decode \
ap_hook_session_encode \
ap_hook_session_load \
ap_hook_session_save \
$(EOLIST)
#
# Any symbols exported to here
#
FILES_nlm_exports = \
session_crypto_module \
$(EOLIST)
#
# These are the OBJ files needed to create the LIB target above.
# 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