NWGNUmakefile revision da52b8eebd528064e3e4a25c5876c46338ab1357
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# Declare the sub-directories to be built here
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncSUBDIRS = \
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync $(EOLIST)
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# Get the 'head' of the build environment. This includes default targets and
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# paths to tools
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncinclude $(AP_WORK)/build/NWGNUhead.inc
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# build this level's files
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# Make sure all needed macro's are defined
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# These directories will be at the beginning of the include list, followed by
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# INCDIRS
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncXINCDIRS += \
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync $(EOLIST)
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# These flags will come after CFLAGS
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncXCFLAGS += \
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync $(EOLIST)
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# These defines will come after DEFINES
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncXDEFINES += \
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync $(EOLIST)
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# These flags will be added to the link.opt file
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncXLFLAGS += \
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync $(EOLIST)
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# These values will be appended to the correct variables based on the value of
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# RELEASE
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncifeq "$(RELEASE)" "debug"
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncXINCDIRS += \
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync $(EOLIST)
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncXCFLAGS += \
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync $(EOLIST)
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncXDEFINES += \
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync $(EOLIST)
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncXLFLAGS += \
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync $(EOLIST)
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncendif
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncifeq "$(RELEASE)" "noopt"
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncXINCDIRS += \
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync $(EOLIST)
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncXCFLAGS += \
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync $(EOLIST)
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncXDEFINES += \
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync $(EOLIST)
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncXLFLAGS += \
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync $(EOLIST)
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncendif
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncifeq "$(RELEASE)" "release"
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncXINCDIRS += \
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync $(EOLIST)
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncXCFLAGS += \
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync $(EOLIST)
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncXDEFINES += \
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync $(EOLIST)
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncXLFLAGS += \
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync $(EOLIST)
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncendif
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# These are used by the link target if an NLM is being generated
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# This is used by the link 'name' directive to name the nlm. If left blank
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# TARGET_nlm (see below) will be used.
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncNLM_NAME =
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# This is used by the link '-desc ' directive.
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# If left blank, NLM_NAME will be used.
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncNLM_DESCRIPTION =
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# This is used by the '-threadname' directive. If left blank,
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# NLM_NAME Thread will be used.
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncNLM_THREAD_NAME =
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# If this is specified, it will override VERSION value in
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# $(AP_WORK)/build/NWGNUenvironment.inc
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncNLM_VERSION =
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# If this is specified, it will override the default of 64K
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncNLM_STACK_SIZE =
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# If this is specified it will be used by the link '-entry' directive
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncNLM_ENTRY_SYM =
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# If this is specified it will be used by the link '-exit' directive
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncNLM_EXIT_SYM =
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# If this is specified it will be used by the link '-check' directive
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncNLM_CHECK_SYM =
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# If these are specified it will be used by the link '-flags' directive
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncNLM_FLAGS =
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# If this is specified it will be linked in with the XDCData option in the def
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync# by setting APACHE_UNIPROC in the environment
#
XDCDATA =
#
# If there is an NLM target, put it here
#
# If there is only one element to build it needs to be included twice
# in the below target list.
# Normally if there is only one element to be built within a
# directory, the makefile for the single element would be called NWGNUmakefile.
# But if there are multiples, the parent NWGNUmakefile must reference more
# than one submakefile. Because the experimental directory might vary in the
# number of submakefiles, but for the moment only contains one, we reference
# it twice to allow it parent NWGNUmakefile to work properly. If another
# submakefile is added, the extra reference to the first NLM should be removed.
TARGET_nlm = \
$(OBJDIR)/example_hooks.nlm \
$(OBJDIR)/example_ipc.nlm \
$(OBJDIR)/case_flt.nlm \
$(OBJDIR)/case_flt_in.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 = \
$(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