NWGNUsession_cookie revision cf7ca2f9eaa6523fefcccba4287b91637391fb51
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina#
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina# Make sure all needed macro's are defined
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina#
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina#
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina# Get the 'head' of the build environment if necessary. This includes default
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina# targets and paths to tools
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina#
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březinaifndef EnvironmentDefined
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březinainclude $(AP_WORK)/build/NWGNUhead.inc
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březinaendif
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina#
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina# These directories will be at the beginning of the include list, followed by
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina# INCDIRS
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina#
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel BřezinaXINCDIRS += \
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina $(APR)/include \
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina $(APRUTIL)/include \
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina $(AP_WORK)/include \
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina $(AP_WORK)/modules/http \
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina $(AP_WORK)/modules/generators \
7f0b01bf0a8f5c5b3ef145e81511b6db2cb4f98fPavel Březina $(AP_WORK)/modules/ssl \
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina $(NWOS) \
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina $(EOLIST)
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina#
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina# These flags will come after CFLAGS
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina#
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel BřezinaXCFLAGS += \
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina $(EOLIST)
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina#
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina# These defines will come after DEFINES
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina#
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel BřezinaXDEFINES += \
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina $(EOLIST)
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina#
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina# These flags will be added to the link.opt file
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina#
827a016a07d5f911cc4195be89896a376fd71f59Sumit BoseXLFLAGS += \
827a016a07d5f911cc4195be89896a376fd71f59Sumit Bose $(EOLIST)
827a016a07d5f911cc4195be89896a376fd71f59Sumit Bose
827a016a07d5f911cc4195be89896a376fd71f59Sumit Bose#
861dbe0794739a1c93a5bed00913c7442a2bdac9Sumit Bose# These values will be appended to the correct variables based on the value of
861dbe0794739a1c93a5bed00913c7442a2bdac9Sumit Bose# RELEASE
861dbe0794739a1c93a5bed00913c7442a2bdac9Sumit Bose#
861dbe0794739a1c93a5bed00913c7442a2bdac9Sumit Boseifeq "$(RELEASE)" "debug"
861dbe0794739a1c93a5bed00913c7442a2bdac9Sumit BoseXINCDIRS += \
ef55b0e470a8fbcf6e6d0a55883145e02a907842Sumit Bose $(EOLIST)
ef55b0e470a8fbcf6e6d0a55883145e02a907842Sumit Bose
ef55b0e470a8fbcf6e6d0a55883145e02a907842Sumit BoseXCFLAGS += \
ef55b0e470a8fbcf6e6d0a55883145e02a907842Sumit Bose $(EOLIST)
ef55b0e470a8fbcf6e6d0a55883145e02a907842Sumit Bose
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel BřezinaXDEFINES += \
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina $(EOLIST)
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel BřezinaXLFLAGS += \
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina $(EOLIST)
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březinaendif
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březinaifeq "$(RELEASE)" "noopt"
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel BřezinaXINCDIRS += \
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina $(EOLIST)
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel BřezinaXCFLAGS += \
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březina $(EOLIST)
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březina
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel BřezinaXDEFINES += \
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březina $(EOLIST)
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březina
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel BřezinaXLFLAGS += \
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březina $(EOLIST)
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březinaendif
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březina
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březinaifeq "$(RELEASE)" "release"
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel BřezinaXINCDIRS += \
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březina $(EOLIST)
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březina
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel BřezinaXCFLAGS += \
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březina $(EOLIST)
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březina
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel BřezinaXDEFINES += \
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březina $(EOLIST)
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březina
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel BřezinaXLFLAGS += \
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březina $(EOLIST)
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březinaendif
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březina
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březina#
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březina# These are used by the link target if an NLM is being generated
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březina# This is used by the link 'name' directive to name the nlm. If left blank
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březina# TARGET_nlm (see below) will be used.
e9a2e7afbd09c23dd8748246e09831ed7b17d7c5Thomas Equeter#
e9a2e7afbd09c23dd8748246e09831ed7b17d7c5Thomas EqueterNLM_NAME = session_cookie
e9a2e7afbd09c23dd8748246e09831ed7b17d7c5Thomas Equeter
e9a2e7afbd09c23dd8748246e09831ed7b17d7c5Thomas Equeter#
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březina# This is used by the link '-desc ' directive.
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březina# If left blank, NLM_NAME will be used.
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březina#
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel BřezinaNLM_DESCRIPTION = Apache $(VERSION_STR) Session Cookie Module
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březina
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březina#
37d2194cc9ea4d0254c88a3419e2376572562babPavel Březina# This is used by the '-threadname' directive. If left blank,
37d2194cc9ea4d0254c88a3419e2376572562babPavel Březina# NLM_NAME Thread will be used.
37d2194cc9ea4d0254c88a3419e2376572562babPavel Březina#
37d2194cc9ea4d0254c88a3419e2376572562babPavel BřezinaNLM_THREAD_NAME = SessionCookie Module
37d2194cc9ea4d0254c88a3419e2376572562babPavel Březina
37d2194cc9ea4d0254c88a3419e2376572562babPavel Březina#
37d2194cc9ea4d0254c88a3419e2376572562babPavel Březina# If this is specified, it will override VERSION value in
37d2194cc9ea4d0254c88a3419e2376572562babPavel Březina# $(AP_WORK)/build/NWGNUenvironment.inc
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březina#
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel BřezinaNLM_VERSION =
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březina
a1e4113a5388e34c08459c5b69679c82ac2bddc9Pavel Březina#
d3c82d0170d6d7407549afdadd08aa7e11aeb9a2Pavel Březina# If this is specified, it will override the default of 64K
d3c82d0170d6d7407549afdadd08aa7e11aeb9a2Pavel Březina#
d3c82d0170d6d7407549afdadd08aa7e11aeb9a2Pavel BřezinaNLM_STACK_SIZE = 8192
d3c82d0170d6d7407549afdadd08aa7e11aeb9a2Pavel Březina
d3c82d0170d6d7407549afdadd08aa7e11aeb9a2Pavel Březina
d3c82d0170d6d7407549afdadd08aa7e11aeb9a2Pavel Březina#
d3c82d0170d6d7407549afdadd08aa7e11aeb9a2Pavel Březina# If this is specified it will be used by the link '-entry' directive
d3c82d0170d6d7407549afdadd08aa7e11aeb9a2Pavel Březina#
d3c82d0170d6d7407549afdadd08aa7e11aeb9a2Pavel BřezinaNLM_ENTRY_SYM =
d3c82d0170d6d7407549afdadd08aa7e11aeb9a2Pavel Březina
d3c82d0170d6d7407549afdadd08aa7e11aeb9a2Pavel Březina#
d3c82d0170d6d7407549afdadd08aa7e11aeb9a2Pavel Březina# If this is specified it will be used by the link '-exit' directive
d3c82d0170d6d7407549afdadd08aa7e11aeb9a2Pavel Březina#
d3c82d0170d6d7407549afdadd08aa7e11aeb9a2Pavel BřezinaNLM_EXIT_SYM =
d3c82d0170d6d7407549afdadd08aa7e11aeb9a2Pavel Březina
d3c82d0170d6d7407549afdadd08aa7e11aeb9a2Pavel Březina#
d3c82d0170d6d7407549afdadd08aa7e11aeb9a2Pavel Březina# If this is specified it will be used by the link '-check' directive
c747b0c875785ce693f70b50bdda0237c4b04e35Pavel Březina#
NLM_CHECK_SYM =
#
# If these are specified it will be used by the link '-flags' directive
#
NLM_FLAGS =
#
# If this is specified it will be linked in with the XDCData option in the def
# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
# by setting APACHE_UNIPROC in the environment
#
XDCDATA =
#
# If there is an NLM target, put it here
#
TARGET_nlm = \
$(OBJDIR)/$(NLM_NAME).nlm \
$(EOLIST)
#
# If there is an LIB target, put it here
#
TARGET_lib = \
$(EOLIST)
#
# These are the OBJ files needed to create the NLM target above.
# Paths must all use the '/' character
#
FILES_nlm_objs = \
$(OBJDIR)/mod_session_cookie.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 = \
$(PRELUDE) \
$(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_load \
ap_hook_session_save \
$(EOLIST)
#
# Any symbols exported to here
#
FILES_nlm_exports = \
session_cookie_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