13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# Declare the sub-directories to be built here
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# Get the 'head' of the build environment. This includes default targets and
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# paths to tools
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(AP_WORK)/build/NWGNUhead.inc
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# build this level's files
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# Make sure all needed macro's are defined
50c2f778bebf022681c80f04b08a07240672a489fuankgifneq "$(MAKECMDGOALS)" "clean"
50c2f778bebf022681c80f04b08a07240672a489fuankgifneq "$(findstring clobber_,$(MAKECMDGOALS))" "clobber_"
251e9f2bd1183cb694bab2d85c61e59f665027ddfuankgAPU_HAVE_CRYPTO = $(shell $(AWK) '/^\#define APU_HAVE_CRYPTO/{print $$3}' $(APRUTIL)/include/apu.h)
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# These directories will be at the beginning of the include list, followed by
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgXINCDIRS += \
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# These flags will come after CFLAGS
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgXCFLAGS += \
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# These defines will come after DEFINES
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgXDEFINES += \
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# These flags will be added to the link.opt file
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgXLFLAGS += \
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# These values will be appended to the correct variables based on the value of
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgifeq "$(RELEASE)" "debug"
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgXINCDIRS += \
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgXCFLAGS += \
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgXDEFINES += \
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgXLFLAGS += \
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgifeq "$(RELEASE)" "noopt"
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgXINCDIRS += \
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgXCFLAGS += \
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgXDEFINES += \
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgXLFLAGS += \
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgifeq "$(RELEASE)" "release"
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgXINCDIRS += \
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgXCFLAGS += \
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgXDEFINES += \
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgXLFLAGS += \
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# These are used by the link target if an NLM is being generated
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# This is used by the link 'name' directive to name the nlm. If left blank
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# TARGET_nlm (see below) will be used.
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# This is used by the link '-desc ' directive.
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# If left blank, NLM_NAME will be used.
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgNLM_DESCRIPTION =
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# This is used by the '-threadname' directive. If left blank,
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# NLM_NAME Thread will be used.
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgNLM_THREAD_NAME =
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# If this is specified, it will override VERSION value in
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgNLM_VERSION =
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# If this is specified, it will override the default of 64K
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgNLM_STACK_SIZE =
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# If this is specified it will be used by the link '-entry' directive
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgNLM_ENTRY_SYM =
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# If this is specified it will be used by the link '-exit' directive
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgNLM_EXIT_SYM =
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# If this is specified it will be used by the link '-check' directive
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgNLM_CHECK_SYM =
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# If these are specified it will be used by the link '-flags' directive
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# If this is specified it will be linked in with the XDCData option in the def
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# by setting APACHE_UNIPROC in the environment
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# If there is an NLM target, put it here
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgTARGET_nlm = \
1deefaad8846266c903a2622d2d5f9df9ef91ad1fuankg# If the APU library has cryptp API then build the mod_session_crypto module
251e9f2bd1183cb694bab2d85c61e59f665027ddfuankgifeq "$(APU_HAVE_CRYPTO)" "1"
1deefaad8846266c903a2622d2d5f9df9ef91ad1fuankgTARGET_nlm += $(OBJDIR)/session_crypto.nlm
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# If there is an LIB target, put it here
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgTARGET_lib = \
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# These are the OBJ files needed to create the NLM target above.
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# Paths must all use the '/' character
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgFILES_nlm_objs = \
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# These are the LIB files needed to create the NLM target above.
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# These will be added as a library command in the link.opt file.
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgFILES_nlm_libs = \
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# These are the modules that the above NLM target depends on to load.
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# These will be added as a module command in the link.opt file.
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgFILES_nlm_modules = \
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# If the nlm has a msg file, put it's path here
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgFILE_nlm_msg =
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# If the nlm has a hlp file put it's path here
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgFILE_nlm_hlp =
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# If this is specified, it will override $(NWOS)\copyright.txt.
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgFILE_nlm_copyright =
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# Any additional imports go here
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgFILES_nlm_Ximports = \
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# Any symbols exported to here
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgFILES_nlm_exports = \
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# These are the OBJ files needed to create the LIB target above.
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# Paths must all use the '/' character
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgFILES_lib_objs = \
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# implement targets and dependancies (leave this section alone)
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankglibs :: $(OBJDIR) $(TARGET_lib)
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankgnlms :: libs $(TARGET_nlm)
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# Updated this target to create necessary directories and copy files to the
0662ed52e814f8f08ef0e09956413a792584eddffuankg# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankginstall :: nlms FORCE
00d1c0c914426a97022d8205a875c48b211001c2fuankg $(call COPY,$(OBJDIR)/*.nlm, $(INSTALLBASE)/modules/)
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# Any specialized rules here
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# Include the 'tail' makefile that has targets that depend on variables defined
13b501825bce68e7e49b4bc775da93e38d9bd9f3fuankg# in this makefile
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(APBUILD)/NWGNUtail.inc