NWGNUsocachshmcb revision 44f575c8cb19a7a5cd61664a7848be6bc197df02
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# Declare the sub-directories to be built here
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgSUBDIRS = \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(EOLIST)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# Get the 'head' of the build environment. This includes default targets and
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# paths to tools
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(AP_WORK)/build/NWGNUhead.inc
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# build this level's files
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# Make sure all needed macro's are defined
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# These directories will be at the beginning of the include list, followed by
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# INCDIRS
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgXINCDIRS += \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(APR)/include \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(APRUTIL)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(SRC)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(SERVER)/mpm/netware \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(NWOS) \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(EOLIST)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# These flags will come after CFLAGS
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgXCFLAGS += \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(EOLIST)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# These defines will come after DEFINES
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgXDEFINES += \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(EOLIST)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# These flags will be added to the link.opt file
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgXLFLAGS += \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(EOLIST)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# These values will be appended to the correct variables based on the value of
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# RELEASE
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgifeq "$(RELEASE)" "debug"
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgXINCDIRS += \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(EOLIST)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgXCFLAGS += \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(EOLIST)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgXDEFINES += \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(EOLIST)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgXLFLAGS += \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(EOLIST)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgendif
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgifeq "$(RELEASE)" "noopt"
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgXINCDIRS += \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(EOLIST)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgXCFLAGS += \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(EOLIST)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgXDEFINES += \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(EOLIST)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgXLFLAGS += \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(EOLIST)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgendif
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgifeq "$(RELEASE)" "release"
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgXINCDIRS += \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(EOLIST)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgXCFLAGS += \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(EOLIST)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgXDEFINES += \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(EOLIST)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgXLFLAGS += \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(EOLIST)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgendif
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# These are used by the link target if an NLM is being generated
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# This is used by the link 'name' directive to name the nlm. If left blank
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# TARGET_nlm (see below) will be used.
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgNLM_NAME = socacheshmcb
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# This is used by the link '-desc ' directive.
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# If left blank, NLM_NAME will be used.
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgNLM_DESCRIPTION = Apache $(VERSION_STR) Socache DC Module
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# This is used by the '-threadname' directive. If left blank,
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# NLM_NAME Thread will be used.
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgNLM_THREAD_NAME = socacheshmcb
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# If this is specified, it will override VERSION value in
0662ed52e814f8f08ef0e09956413a792584eddffuankg# $(AP_WORK)/build/NWGNUenvironment.inc
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgNLM_VERSION =
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# If this is specified, it will override the default of 64K
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgNLM_STACK_SIZE = 65536
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# If this is specified it will be used by the link '-entry' directive
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_ENTRY_SYM =
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# If this is specified it will be used by the link '-exit' directive
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_EXIT_SYM =
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# If this is specified it will be used by the link '-check' directive
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgNLM_CHECK_SYM =
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# If this is specified it will be used by the link '-flags' directive
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_FLAGS =
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# If this is specified it will be linked in with the XDCData option in the def
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# by setting APACHE_UNIPROC in the environment
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgXDCDATA =
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# Declare all target files (you must add your files here)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# If there is an NLM target, put it here
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgTARGET_nlm = \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(OBJDIR)/$(NLM_NAME).nlm \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(EOLIST)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# If there is an LIB target, put it here
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgTARGET_lib = \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(EOLIST)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# These are the OBJ files needed to create the NLM target above.
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# Paths must all use the '/' character
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgFILES_nlm_objs = \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(OBJDIR)/mod_socache_shmcb.o \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(EOLIST)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# These are the LIB files needed to create the NLM target above.
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# These will be added as a library command in the link.opt file.
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgFILES_nlm_libs = \
cf7ca2f9eaa6523fefcccba4287b91637391fb51fuankg $(PRELUDE) \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(EOLIST)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# These are the modules that the above NLM target depends on to load.
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# These will be added as a module command in the link.opt file.
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgFILES_nlm_modules = \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg Apache2 \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg Libc \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(EOLIST)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# If the nlm has a msg file, put it's path here
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgFILE_nlm_msg =
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# If the nlm has a hlp file put it's path here
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgFILE_nlm_hlp =
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# If this is specified, it will override $(NWOS)\copyright.txt.
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgFILE_nlm_copyright =
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# Any additional imports go here
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgFILES_nlm_Ximports = \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg @libc.imp \
8ffac2c334103c0336602aaede650cb578611151fuankg @aprlib.imp \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg @httpd.imp \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(EOLIST)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# Any symbols exported to here
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgFILES_nlm_exports = \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg socache_shmcb_module \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(EOLIST)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# These are the OBJ files needed to create the LIB target above.
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# Paths must all use the '/' character
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgFILES_lib_objs = \
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg $(EOLIST)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# implement targets and dependancies (leave this section alone)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankglibs :: $(OBJDIR) $(TARGET_lib)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankgnlms :: libs $(TARGET_nlm)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# Updated this target to create necessary directories and copy files to the
0662ed52e814f8f08ef0e09956413a792584eddffuankg# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankginstall :: nlms FORCE
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# Any specialized rules here
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# Include the 'tail' makefile that has targets that depend on variables defined
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg# in this makefile
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg#
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(APBUILD)/NWGNUtail.inc
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg
e5b4ec3c974caa261ca571d9a31ac4007d85753bfuankg