NWGNUmakefile revision de2feca197f3b0aaff5c201dffda04aea8a47adc
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# Declare the sub-directories to be built here
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesSUBDIRS = \
8495845a800cf09321436aed996188c9a92cd647bnicholes $(EOLIST)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# Get the 'head' of the build environment. This includes default targets and
8495845a800cf09321436aed996188c9a92cd647bnicholes# paths to tools
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesinclude $(AP_WORK)\build\NWGNUhead.inc
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# build this level's files
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# Make sure all needed macro's are defined
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# These directories will be at the beginning of the include list, followed by
8495845a800cf09321436aed996188c9a92cd647bnicholes# INCDIRS
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesXINCDIRS += \
8495845a800cf09321436aed996188c9a92cd647bnicholes $(EOLIST)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# These flags will come after CFLAGS
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesXCFLAGS += \
8495845a800cf09321436aed996188c9a92cd647bnicholes $(EOLIST)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# These defines will come after DEFINES
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesXDEFINES += \
8495845a800cf09321436aed996188c9a92cd647bnicholes $(EOLIST)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# These flags will be added to the link.opt file
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesXLFLAGS += \
8495845a800cf09321436aed996188c9a92cd647bnicholes $(EOLIST)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# These values will be appended to the correct variables based on the value of
8495845a800cf09321436aed996188c9a92cd647bnicholes# RELEASE
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesifeq "$(RELEASE)" "debug"
8495845a800cf09321436aed996188c9a92cd647bnicholesXINCDIRS += \
8495845a800cf09321436aed996188c9a92cd647bnicholes $(EOLIST)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesXCFLAGS += \
8495845a800cf09321436aed996188c9a92cd647bnicholes $(EOLIST)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesXDEFINES += \
8495845a800cf09321436aed996188c9a92cd647bnicholes $(EOLIST)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesXLFLAGS += \
de2feca197f3b0aaff5c201dffda04aea8a47adcfuankg $(EOLIST)
8495845a800cf09321436aed996188c9a92cd647bnicholesendif
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesifeq "$(RELEASE)" "noopt"
8495845a800cf09321436aed996188c9a92cd647bnicholesXINCDIRS += \
8495845a800cf09321436aed996188c9a92cd647bnicholes $(EOLIST)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesXCFLAGS += \
8495845a800cf09321436aed996188c9a92cd647bnicholes $(EOLIST)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesXDEFINES += \
8495845a800cf09321436aed996188c9a92cd647bnicholes $(EOLIST)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesXLFLAGS += \
de2feca197f3b0aaff5c201dffda04aea8a47adcfuankg $(EOLIST)
8495845a800cf09321436aed996188c9a92cd647bnicholesendif
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesifeq "$(RELEASE)" "release"
8495845a800cf09321436aed996188c9a92cd647bnicholesXINCDIRS += \
8495845a800cf09321436aed996188c9a92cd647bnicholes $(EOLIST)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesXCFLAGS += \
8495845a800cf09321436aed996188c9a92cd647bnicholes $(EOLIST)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesXDEFINES += \
8495845a800cf09321436aed996188c9a92cd647bnicholes $(EOLIST)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesXLFLAGS += \
8495845a800cf09321436aed996188c9a92cd647bnicholes $(EOLIST)
8495845a800cf09321436aed996188c9a92cd647bnicholesendif
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# These are used by the link target if an NLM is being generated
8495845a800cf09321436aed996188c9a92cd647bnicholes# This is used by the link 'name' directive to name the nlm. If left blank
8495845a800cf09321436aed996188c9a92cd647bnicholes# TARGET_nlm (see below) will be used.
8495845a800cf09321436aed996188c9a92cd647bnicholes#
de2feca197f3b0aaff5c201dffda04aea8a47adcfuankgNLM_NAME =
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# This is used by the link '-desc ' directive.
8495845a800cf09321436aed996188c9a92cd647bnicholes# If left blank, NLM_NAME will be used.
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesNLM_DESCRIPTION =
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# This is used by the '-threadname' directive. If left blank,
8495845a800cf09321436aed996188c9a92cd647bnicholes# NLM_NAME Thread will be used.
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesNLM_THREAD_NAME =
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# If this is specified, it will override VERSION value in
8495845a800cf09321436aed996188c9a92cd647bnicholes# $(AP_WORK)\build\NWGNUenvironment.inc
8495845a800cf09321436aed996188c9a92cd647bnicholes#
de2feca197f3b0aaff5c201dffda04aea8a47adcfuankgNLM_VERSION =
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# If this is specified, it will override the default of 64K
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesNLM_STACK_SIZE =
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# If this is specified it will be used by the link '-entry' directive
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesNLM_ENTRY_SYM =
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# If this is specified it will be used by the link '-exit' directive
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesNLM_EXIT_SYM =
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# If this is specified it will be used by the link '-check' directive
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesNLM_CHECK_SYM =
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# If these are specified it will be used by the link '-flags' directive
8495845a800cf09321436aed996188c9a92cd647bnicholes#
de2feca197f3b0aaff5c201dffda04aea8a47adcfuankgNLM_FLAGS =
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# If this is specified it will be linked in with the XDCData option in the def
8495845a800cf09321436aed996188c9a92cd647bnicholes# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
8495845a800cf09321436aed996188c9a92cd647bnicholes# by setting APACHE_UNIPROC in the environment
8495845a800cf09321436aed996188c9a92cd647bnicholes#
de2feca197f3b0aaff5c201dffda04aea8a47adcfuankgXDCDATA =
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# If there is an NLM target, put it here
8495845a800cf09321436aed996188c9a92cd647bnicholes#
fd780f0b6767d731e4b45c03dbbe9b9c1cbd2a8dbnicholes# We are referencing example.nlm twice to get around a known issue with the
fd780f0b6767d731e4b45c03dbbe9b9c1cbd2a8dbnicholes# makefiles. Normally if there is only one element to be built within a
fd780f0b6767d731e4b45c03dbbe9b9c1cbd2a8dbnicholes# directory, the makefile for the single element would be called NWGNUmakefile.
fd780f0b6767d731e4b45c03dbbe9b9c1cbd2a8dbnicholes# But if there are multiples, the parent NWGNUmakefile must reference more
fd780f0b6767d731e4b45c03dbbe9b9c1cbd2a8dbnicholes# than one submakefile. Because the experimental directory might vary in the
fd780f0b6767d731e4b45c03dbbe9b9c1cbd2a8dbnicholes# number of submakefiles, but for the moment only contains one, we reference
fd780f0b6767d731e4b45c03dbbe9b9c1cbd2a8dbnicholes# it twice to allow it parent NWGNUmakefile to work properly. If another
fd780f0b6767d731e4b45c03dbbe9b9c1cbd2a8dbnicholes# submakefile is added, the extra reference to example.nlm should be removed.
8495845a800cf09321436aed996188c9a92cd647bnicholesTARGET_nlm = \
fd780f0b6767d731e4b45c03dbbe9b9c1cbd2a8dbnicholes $(OBJDIR)/example.nlm \
fa296e0ab15d4d7e59d657c16acef0fd10e4affdbnicholes $(OBJDIR)/case_flt.nlm \
fa296e0ab15d4d7e59d657c16acef0fd10e4affdbnicholes $(OBJDIR)/case_flt_in.nlm \
de2feca197f3b0aaff5c201dffda04aea8a47adcfuankg $(OBJDIR)/sedfilter.nlm \
8495845a800cf09321436aed996188c9a92cd647bnicholes $(EOLIST)
de2feca197f3b0aaff5c201dffda04aea8a47adcfuankg
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# If there is an LIB target, put it here
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesTARGET_lib = \
8495845a800cf09321436aed996188c9a92cd647bnicholes $(EOLIST)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# These are the OBJ files needed to create the NLM target above.
8495845a800cf09321436aed996188c9a92cd647bnicholes# Paths must all use the '/' character
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesFILES_nlm_objs = \
8495845a800cf09321436aed996188c9a92cd647bnicholes $(EOLIST)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# These are the LIB files needed to create the NLM target above.
8495845a800cf09321436aed996188c9a92cd647bnicholes# These will be added as a library command in the link.opt file.
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesFILES_nlm_libs = \
8495845a800cf09321436aed996188c9a92cd647bnicholes $(EOLIST)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# These are the modules that the above NLM target depends on to load.
8495845a800cf09321436aed996188c9a92cd647bnicholes# These will be added as a module command in the link.opt file.
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesFILES_nlm_modules = \
8495845a800cf09321436aed996188c9a92cd647bnicholes $(EOLIST)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# If the nlm has a msg file, put it's path here
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesFILE_nlm_msg =
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# If the nlm has a hlp file put it's path here
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesFILE_nlm_hlp =
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# If this is specified, it will override $(NWOS)\copyright.txt.
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesFILE_nlm_copyright =
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# Any additional imports go here
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesFILES_nlm_Ximports = \
8495845a800cf09321436aed996188c9a92cd647bnicholes $(EOLIST)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# Any symbols exported to here
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesFILES_nlm_exports = \
8495845a800cf09321436aed996188c9a92cd647bnicholes $(EOLIST)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# These are the OBJ files needed to create the LIB target above.
8495845a800cf09321436aed996188c9a92cd647bnicholes# Paths must all use the '/' character
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesFILES_lib_objs = \
de2feca197f3b0aaff5c201dffda04aea8a47adcfuankg $(EOLIST)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# implement targets and dependancies (leave this section alone)
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholeslibs :: $(OBJDIR) $(TARGET_lib)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesnlms :: libs $(TARGET_nlm)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# Updated this target to create necessary directories and copy files to the
8495845a800cf09321436aed996188c9a92cd647bnicholes# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesinstall :: nlms FORCE
f2f3f241c00a7a4bd597e57a19023940e072918abnicholes copy $(OBJDIR)\*.nlm $(INSTALL)\$(BASEDIR)\modules\*.*
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# Any specialized rules here
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# Include the 'tail' makefile that has targets that depend on variables defined
8495845a800cf09321436aed996188c9a92cd647bnicholes# in this makefile
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesinclude $(AP_WORK)\build\NWGNUtail.inc
8495845a800cf09321436aed996188c9a92cd647bnicholes