NWGNUsession_dbd revision 1deefaad8846266c903a2622d2d5f9df9ef91ad1
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Make sure all needed macro's are defined
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Get the 'head' of the build environment if necessary. This includes default
199767f8919635c4928607450d9e0abb932109ceToomas Soome# targets and paths to tools
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomeifndef EnvironmentDefined
199767f8919635c4928607450d9e0abb932109ceToomas Soomeinclude $(AP_WORK)/build/NWGNUhead.inc
199767f8919635c4928607450d9e0abb932109ceToomas Soomeendif
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# These directories will be at the beginning of the include list, followed by
199767f8919635c4928607450d9e0abb932109ceToomas Soome# INCDIRS
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas SoomeXINCDIRS += \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(APR)/include \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(APRUTIL)/include \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(SRC)/include \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(STDMOD)/database \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(NWOS) \
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# These flags will come after CFLAGS
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas SoomeXCFLAGS += \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(EOLIST)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# These defines will come after DEFINES
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas SoomeXDEFINES += \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(EOLIST)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# These flags will be added to the link.opt file
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas SoomeXLFLAGS += \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(EOLIST)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# These values will be appended to the correct variables based on the value of
199767f8919635c4928607450d9e0abb932109ceToomas Soome# RELEASE
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soomeifeq "$(RELEASE)" "debug"
199767f8919635c4928607450d9e0abb932109ceToomas SoomeXINCDIRS += \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(EOLIST)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeXCFLAGS += \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(EOLIST)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeXDEFINES += \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(EOLIST)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeXLFLAGS += \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(EOLIST)
199767f8919635c4928607450d9e0abb932109ceToomas Soomeendif
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomeifeq "$(RELEASE)" "noopt"
199767f8919635c4928607450d9e0abb932109ceToomas SoomeXINCDIRS += \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(EOLIST)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeXCFLAGS += \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(EOLIST)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeXDEFINES += \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(EOLIST)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeXLFLAGS += \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(EOLIST)
199767f8919635c4928607450d9e0abb932109ceToomas Soomeendif
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomeifeq "$(RELEASE)" "release"
199767f8919635c4928607450d9e0abb932109ceToomas SoomeXINCDIRS += \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(EOLIST)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeXCFLAGS += \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(EOLIST)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeXDEFINES += \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(EOLIST)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeXLFLAGS += \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(EOLIST)
199767f8919635c4928607450d9e0abb932109ceToomas Soomeendif
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# These are used by the link target if an NLM is being generated
199767f8919635c4928607450d9e0abb932109ceToomas Soome# This is used by the link 'name' directive to name the nlm. If left blank
199767f8919635c4928607450d9e0abb932109ceToomas Soome# TARGET_nlm (see below) will be used.
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas SoomeNLM_NAME = session_dbd
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# This is used by the link '-desc ' directive.
199767f8919635c4928607450d9e0abb932109ceToomas Soome# If left blank, NLM_NAME will be used.
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas SoomeNLM_DESCRIPTION = Apache $(VERSION_STR) Session Cookie Module
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# This is used by the '-threadname' directive. If left blank,
199767f8919635c4928607450d9e0abb932109ceToomas Soome# NLM_NAME Thread will be used.
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas SoomeNLM_THREAD_NAME = SessionDbd Module
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# If this is specified, it will override VERSION value in
199767f8919635c4928607450d9e0abb932109ceToomas Soome# $(AP_WORK)/build/NWGNUenvironment.inc
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas SoomeNLM_VERSION =
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# If this is specified, it will override the default of 64K
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas SoomeNLM_STACK_SIZE = 8192
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# If this is specified it will be used by the link '-entry' directive
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas SoomeNLM_ENTRY_SYM =
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# If this is specified it will be used by the link '-exit' directive
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas SoomeNLM_EXIT_SYM =
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# If this is specified it will be used by the link '-check' directive
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas SoomeNLM_CHECK_SYM =
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# If these are specified it will be used by the link '-flags' directive
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas SoomeNLM_FLAGS =
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# If this is specified it will be linked in with the XDCData option in the def
199767f8919635c4928607450d9e0abb932109ceToomas Soome# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
199767f8919635c4928607450d9e0abb932109ceToomas Soome# by setting APACHE_UNIPROC in the environment
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas SoomeXDCDATA =
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# If there is an NLM target, put it here
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas SoomeTARGET_nlm = \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(OBJDIR)/$(NLM_NAME).nlm \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(EOLIST)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# If there is an LIB target, put it here
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas SoomeTARGET_lib = \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(EOLIST)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# These are the OBJ files needed to create the NLM target above.
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Paths must all use the '/' character
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas SoomeFILES_nlm_objs = \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(OBJDIR)/mod_session_dbd.o \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(EOLIST)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# These are the LIB files needed to create the NLM target above.
199767f8919635c4928607450d9e0abb932109ceToomas Soome# These will be added as a library command in the link.opt file.
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas SoomeFILES_nlm_libs = \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(PRELUDE) \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(EOLIST)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# These are the modules that the above NLM target depends on to load.
199767f8919635c4928607450d9e0abb932109ceToomas Soome# These will be added as a module command in the link.opt file.
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas SoomeFILES_nlm_modules = \
199767f8919635c4928607450d9e0abb932109ceToomas Soome aprlib \
199767f8919635c4928607450d9e0abb932109ceToomas Soome libc \
199767f8919635c4928607450d9e0abb932109ceToomas Soome session \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(EOLIST)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# If the nlm has a msg file, put it's path here
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas SoomeFILE_nlm_msg =
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# If the nlm has a hlp file put it's path here
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas SoomeFILE_nlm_hlp =
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# If this is specified, it will override $(NWOS)\copyright.txt.
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas SoomeFILE_nlm_copyright =
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Any additional imports go here
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas SoomeFILES_nlm_Ximports = \
199767f8919635c4928607450d9e0abb932109ceToomas Soome @aprlib.imp \
199767f8919635c4928607450d9e0abb932109ceToomas Soome @httpd.imp \
199767f8919635c4928607450d9e0abb932109ceToomas Soome @libc.imp \
199767f8919635c4928607450d9e0abb932109ceToomas Soome ap_hook_session_load \
199767f8919635c4928607450d9e0abb932109ceToomas Soome ap_hook_session_save \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(EOLIST)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Any symbols exported to here
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas SoomeFILES_nlm_exports = \
199767f8919635c4928607450d9e0abb932109ceToomas Soome session_dbd_module \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(EOLIST)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# These are the OBJ files needed to create the LIB target above.
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Paths must all use the '/' character
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas SoomeFILES_lib_objs = \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(EOLIST)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# implement targets and dependancies (leave this section alone)
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomelibs :: $(OBJDIR) $(TARGET_lib)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomenlms :: libs $(TARGET_nlm)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Updated this target to create necessary directories and copy files to the
199767f8919635c4928607450d9e0abb932109ceToomas Soome# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soomeinstall :: nlms FORCE
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Any specialized rules here
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomevpath %.c ../arch/netware
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Include the 'tail' makefile that has targets that depend on variables defined
199767f8919635c4928607450d9e0abb932109ceToomas Soome# in this makefile
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomeinclude $(APBUILD)/NWGNUtail.inc
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome