NWGNUmakefile revision 0a4720d057f08f31f35b2b23ee4428d97cf1b85e
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync#
d34409ad02ea0d28e08a6c4b089a412fdb3b4c9cvboxsync# Declare the sub-directories to be built here
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync#
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsyncSUBDIRS = \
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync $(EOLIST)
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync#
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync# Get the 'head' of the build environment. This includes default targets and
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync# paths to tools
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync#
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsyncinclude $(AP_WORK)/build/NWGNUhead.inc
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync#
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync# build this level's files
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync#
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync# Make sure all needed macro's are defined
ab7d85351856745f1953770699c3276f0b17703evboxsync#
ab7d85351856745f1953770699c3276f0b17703evboxsync
ab7d85351856745f1953770699c3276f0b17703evboxsync#
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync# These directories will be at the beginning of the include list, followed by
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync# INCDIRS
3ab0a0f1596a83e60894b6d28661f82901dcfc20vboxsync#
ab7d85351856745f1953770699c3276f0b17703evboxsyncXINCDIRS += \
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync $(EOLIST)
ab7d85351856745f1953770699c3276f0b17703evboxsync
ab7d85351856745f1953770699c3276f0b17703evboxsync#
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync# These flags will come after CFLAGS
ab7d85351856745f1953770699c3276f0b17703evboxsync#
ab7d85351856745f1953770699c3276f0b17703evboxsyncXCFLAGS += \
3ab0a0f1596a83e60894b6d28661f82901dcfc20vboxsync $(EOLIST)
3ab0a0f1596a83e60894b6d28661f82901dcfc20vboxsync
3ab0a0f1596a83e60894b6d28661f82901dcfc20vboxsync#
3ab0a0f1596a83e60894b6d28661f82901dcfc20vboxsync# These defines will come after DEFINES
3ab0a0f1596a83e60894b6d28661f82901dcfc20vboxsync#
3ab0a0f1596a83e60894b6d28661f82901dcfc20vboxsyncXDEFINES += \
ab7d85351856745f1953770699c3276f0b17703evboxsync $(EOLIST)
ab7d85351856745f1953770699c3276f0b17703evboxsync
ab7d85351856745f1953770699c3276f0b17703evboxsync#
ab7d85351856745f1953770699c3276f0b17703evboxsync# These flags will be added to the link.opt file
ab7d85351856745f1953770699c3276f0b17703evboxsync#
ab7d85351856745f1953770699c3276f0b17703evboxsyncXLFLAGS += \
ab7d85351856745f1953770699c3276f0b17703evboxsync $(EOLIST)
ab7d85351856745f1953770699c3276f0b17703evboxsync
ab7d85351856745f1953770699c3276f0b17703evboxsync#
ab7d85351856745f1953770699c3276f0b17703evboxsync# These values will be appended to the correct variables based on the value of
ab7d85351856745f1953770699c3276f0b17703evboxsync# RELEASE
ab7d85351856745f1953770699c3276f0b17703evboxsync#
ab7d85351856745f1953770699c3276f0b17703evboxsyncifeq "$(RELEASE)" "debug"
ab7d85351856745f1953770699c3276f0b17703evboxsyncXINCDIRS += \
ab7d85351856745f1953770699c3276f0b17703evboxsync $(EOLIST)
ab7d85351856745f1953770699c3276f0b17703evboxsync
ab7d85351856745f1953770699c3276f0b17703evboxsyncXCFLAGS += \
ab7d85351856745f1953770699c3276f0b17703evboxsync $(EOLIST)
ab7d85351856745f1953770699c3276f0b17703evboxsync
ab7d85351856745f1953770699c3276f0b17703evboxsyncXDEFINES += \
ab7d85351856745f1953770699c3276f0b17703evboxsync $(EOLIST)
ab7d85351856745f1953770699c3276f0b17703evboxsync
ab7d85351856745f1953770699c3276f0b17703evboxsyncXLFLAGS += \
ab7d85351856745f1953770699c3276f0b17703evboxsync $(EOLIST)
ab7d85351856745f1953770699c3276f0b17703evboxsyncendif
ab7d85351856745f1953770699c3276f0b17703evboxsync
ab7d85351856745f1953770699c3276f0b17703evboxsyncifeq "$(RELEASE)" "noopt"
ab7d85351856745f1953770699c3276f0b17703evboxsyncXINCDIRS += \
ab7d85351856745f1953770699c3276f0b17703evboxsync $(EOLIST)
ab7d85351856745f1953770699c3276f0b17703evboxsync
ab7d85351856745f1953770699c3276f0b17703evboxsyncXCFLAGS += \
ab7d85351856745f1953770699c3276f0b17703evboxsync $(EOLIST)
ab7d85351856745f1953770699c3276f0b17703evboxsync
ab7d85351856745f1953770699c3276f0b17703evboxsyncXDEFINES += \
ab7d85351856745f1953770699c3276f0b17703evboxsync $(EOLIST)
3ab0a0f1596a83e60894b6d28661f82901dcfc20vboxsync
3ab0a0f1596a83e60894b6d28661f82901dcfc20vboxsyncXLFLAGS += \
ab7d85351856745f1953770699c3276f0b17703evboxsync $(EOLIST)
ab7d85351856745f1953770699c3276f0b17703evboxsyncendif
ab7d85351856745f1953770699c3276f0b17703evboxsync
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsyncifeq "$(RELEASE)" "release"
102134b06c34f94c14f0665843f050c26f4b21f3vboxsyncXINCDIRS += \
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync $(EOLIST)
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync
102134b06c34f94c14f0665843f050c26f4b21f3vboxsyncXCFLAGS += \
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync $(EOLIST)
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync
102134b06c34f94c14f0665843f050c26f4b21f3vboxsyncXDEFINES += \
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync $(EOLIST)
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync
102134b06c34f94c14f0665843f050c26f4b21f3vboxsyncXLFLAGS += \
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync $(EOLIST)
102134b06c34f94c14f0665843f050c26f4b21f3vboxsyncendif
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync#
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync# These are used by the link target if an NLM is being generated
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync# This is used by the link 'name' directive to name the nlm. If left blank
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync# TARGET_nlm (see below) will be used.
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync#
102134b06c34f94c14f0665843f050c26f4b21f3vboxsyncNLM_NAME =
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync#
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync# This is used by the link '-desc ' directive.
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync# If left blank, NLM_NAME will be used.
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync#
102134b06c34f94c14f0665843f050c26f4b21f3vboxsyncNLM_DESCRIPTION =
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync#
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync# This is used by the '-threadname' directive. If left blank,
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync# NLM_NAME Thread will be used.
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync#
102134b06c34f94c14f0665843f050c26f4b21f3vboxsyncNLM_THREAD_NAME =
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync#
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync# If this is specified, it will override VERSION value in
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync# $(AP_WORK)/build/NWGNUenvironment.inc
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync#
102134b06c34f94c14f0665843f050c26f4b21f3vboxsyncNLM_VERSION =
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync
102134b06c34f94c14f0665843f050c26f4b21f3vboxsync#
95fa720bf36561e6a54306cd3f63f364a7d1815avboxsync# If this is specified, it will override the default of 64K
#
NLM_STACK_SIZE =
#
# If this is specified it will be used by the link '-entry' directive
#
NLM_ENTRY_SYM =
#
# If this is specified it will be used by the link '-exit' directive
#
NLM_EXIT_SYM =
#
# If this is specified it will be used by the link '-check' directive
#
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)/session.nlm \
$(OBJDIR)/session_cookie.nlm \
$(OBJDIR)/session_dbd.nlm \
$(EOLIST)
# If the APU library has cryptp API then build the mod_session_crypto module
AWKCMD = $(AWK) '/^\#define APU_HAVE_CRYPTO/{print $$3}' $(APRUTIL)/include/apu.h
ifeq "$(shell $(AWKCMD))" "1"
TARGET_nlm += $(OBJDIR)/session_crypto.nlm
endif
#
# 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 = \
$(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 = \
$(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 = \
$(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 = \
$(EOLIST)
#
# Any symbols exported to here
#
FILES_nlm_exports = \
$(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
$(call COPY,$(OBJDIR)/*.nlm, $(INSTALLBASE)/modules/)
#
# Any specialized rules here
#
#
# Include the 'tail' makefile that has targets that depend on variables defined
# in this makefile
#
include $(APBUILD)/NWGNUtail.inc