NWGNUmakefile revision fa296e0ab15d4d7e59d657c16acef0fd10e4affd
3853N/A#
3853N/A# Declare the sub-directories to be built here
3853N/A#
3853N/A
3853N/ASUBDIRS = \
3853N/A $(EOLIST)
3853N/A
3853N/A#
3853N/A# Get the 'head' of the build environment. This includes default targets and
3853N/A# paths to tools
3853N/A#
3853N/A
3853N/Ainclude $(AP_WORK)\build\NWGNUhead.inc
3853N/A
3853N/A#
3853N/A# build this level's files
3853N/A
3853N/A#
3853N/A# Make sure all needed macro's are defined
3853N/A#
3853N/A
3853N/A#
3853N/A# These directories will be at the beginning of the include list, followed by
3853N/A# INCDIRS
4141N/A#
3853N/AXINCDIRS += \
3853N/A $(EOLIST)
3853N/A
3853N/A#
3853N/A# These flags will come after CFLAGS
3853N/A#
3853N/AXCFLAGS += \
3853N/A $(EOLIST)
3853N/A
3853N/A#
3853N/A# These defines will come after DEFINES
3853N/A#
3853N/AXDEFINES += \
3853N/A $(EOLIST)
3853N/A
3853N/A#
3853N/A# These flags will be added to the link.opt file
3853N/A#
3853N/AXLFLAGS += \
3853N/A $(EOLIST)
3853N/A
3853N/A#
3853N/A# These values will be appended to the correct variables based on the value of
3853N/A# RELEASE
3853N/A#
3853N/Aifeq "$(RELEASE)" "debug"
3853N/AXINCDIRS += \
3853N/A $(EOLIST)
3853N/A
3853N/AXCFLAGS += \
3853N/A $(EOLIST)
3853N/A
3853N/AXDEFINES += \
3853N/A $(EOLIST)
3853N/A
3853N/AXLFLAGS += \
3853N/A $(EOLIST)
3853N/Aendif
3853N/A
3853N/Aifeq "$(RELEASE)" "noopt"
3853N/AXINCDIRS += \
3853N/A $(EOLIST)
3853N/A
3853N/AXCFLAGS += \
3853N/A $(EOLIST)
3853N/A
3853N/AXDEFINES += \
3853N/A $(EOLIST)
3853N/A
3853N/AXLFLAGS += \
3853N/A $(EOLIST)
3853N/Aendif
3853N/A
3853N/Aifeq "$(RELEASE)" "release"
3853N/AXINCDIRS += \
3853N/A $(EOLIST)
3853N/A
4611N/AXCFLAGS += \
4611N/A $(EOLIST)
3853N/A
3853N/AXDEFINES += \
3853N/A $(EOLIST)
3853N/A
3853N/AXLFLAGS += \
3853N/A $(EOLIST)
3853N/Aendif
3853N/A
3853N/A#
3853N/A# These are used by the link target if an NLM is being generated
3853N/A# This is used by the link 'name' directive to name the nlm. If left blank
3853N/A# TARGET_nlm (see below) will be used.
3853N/A#
3853N/ANLM_NAME =
3853N/A
3853N/A#
3853N/A# This is used by the link '-desc ' directive.
3853N/A# If left blank, NLM_NAME will be used.
3853N/A#
3853N/ANLM_DESCRIPTION =
3853N/A
3853N/A#
4611N/A# This is used by the '-threadname' directive. If left blank,
4611N/A# NLM_NAME Thread will be used.
3853N/A#
3853N/ANLM_THREAD_NAME =
3853N/A
3853N/A#
3853N/A# If this is specified, it will override VERSION value in
3853N/A# $(AP_WORK)\build\NWGNUenvironment.inc
3853N/A#
3853N/ANLM_VERSION =
3853N/A
3853N/A#
3853N/A# If this is specified, it will override the default of 64K
3853N/A#
4611N/ANLM_STACK_SIZE =
3853N/A
4611N/A
4611N/A#
3853N/A# If this is specified it will be used by the link '-entry' directive
3853N/A#
3853N/ANLM_ENTRY_SYM =
3853N/A
3853N/A#
3853N/A# If this is specified it will be used by the link '-exit' directive
3853N/A#
3853N/ANLM_EXIT_SYM =
4611N/A
3853N/A#
4611N/A# If this is specified it will be used by the link '-check' directive
3853N/A#
3853N/ANLM_CHECK_SYM =
3853N/A
4611N/A#
3853N/A# If these are specified it will be used by the link '-flags' directive
3853N/A#
3853N/ANLM_FLAGS =
3853N/A
3853N/A#
3853N/A# If this is specified it will be linked in with the XDCData option in the def
3853N/A# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
3853N/A# by setting APACHE_UNIPROC in the environment
3853N/A#
3853N/AXDCDATA =
3853N/A
3853N/A#
3853N/A# If there is an NLM target, put it here
3853N/A#
3853N/A# We are referencing example.nlm twice to get around a known issue with the
3853N/A# makefiles. Normally if there is only one element to be built within a
3853N/A# directory, the makefile for the single element would be called NWGNUmakefile.
3853N/A# But if there are multiples, the parent NWGNUmakefile must reference more
3853N/A# than one submakefile. Because the experimental directory might vary in the
3853N/A# number of submakefiles, but for the moment only contains one, we reference
3853N/A# it twice to allow it parent NWGNUmakefile to work properly. If another
3853N/A# submakefile is added, the extra reference to example.nlm should be removed.
3853N/ATARGET_nlm = \
3853N/A $(OBJDIR)/example.nlm \
3853N/A $(OBJDIR)/case_flt.nlm \
3853N/A $(OBJDIR)/case_flt_in.nlm \
3853N/A $(EOLIST)
3853N/A
3853N/A#
3853N/A# If there is an LIB target, put it here
3853N/A#
3853N/ATARGET_lib = \
3853N/A $(EOLIST)
3853N/A
3853N/A#
3875N/A# These are the OBJ files needed to create the NLM target above.
4611N/A# Paths must all use the '/' character
4611N/A#
4611N/AFILES_nlm_objs = \
4014N/A $(EOLIST)
4611N/A
4014N/A#
4611N/A# These are the LIB files needed to create the NLM target above.
4014N/A# These will be added as a library command in the link.opt file.
4014N/A#
4014N/AFILES_nlm_libs = \
3875N/A $(EOLIST)
3875N/A
3875N/A#
3875N/A# These are the modules that the above NLM target depends on to load.
3853N/A# These will be added as a module command in the link.opt file.
3853N/A#
3853N/AFILES_nlm_modules = \
3853N/A $(EOLIST)
3853N/A
3853N/A#
3853N/A# If the nlm has a msg file, put it's path here
3853N/A#
3853N/AFILE_nlm_msg =
3853N/A
3853N/A#
3853N/A# If the nlm has a hlp file put it's path here
3853N/A#
3853N/AFILE_nlm_hlp =
3853N/A
3853N/A#
4141N/A# If this is specified, it will override $(NWOS)\copyright.txt.
4141N/A#
3853N/AFILE_nlm_copyright =
3853N/A
4141N/A#
4141N/A# Any additional imports go here
4141N/A#
4141N/AFILES_nlm_Ximports = \
3853N/A $(EOLIST)
3853N/A
4141N/A#
4141N/A# Any symbols exported to here
4518N/A#
4518N/AFILES_nlm_exports = \
4141N/A $(EOLIST)
4141N/A
4141N/A#
4141N/A# These are the OBJ files needed to create the LIB target above.
4141N/A# Paths must all use the '/' character
3853N/A#
3853N/AFILES_lib_objs = \
3853N/A $(EOLIST)
3853N/A
3853N/A#
3853N/A# implement targets and dependancies (leave this section alone)
3853N/A#
3853N/A
3853N/Alibs :: $(OBJDIR) $(TARGET_lib)
3853N/A
3853N/Anlms :: libs $(TARGET_nlm)
3853N/A
3853N/A#
3853N/A# Updated this target to create necessary directories and copy files to the
3853N/A# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
3853N/A#
4141N/Ainstall :: nlms FORCE
4141N/A copy $(OBJDIR)\*.nlm $(INSTALL)\$(BASEDIR)\modules\*.*
3853N/A
3853N/A#
4141N/A# Any specialized rules here
4141N/A#
4141N/A
4141N/A#
3853N/A# Include the 'tail' makefile that has targets that depend on variables defined
3853N/A# in this makefile
4141N/A#
4141N/A
4518N/Ainclude $(AP_WORK)\build\NWGNUtail.inc
4518N/A
4141N/A