fa8ed9702ac1820f539365853f0671f3125b2d73nd# Declare the sub-directories to be built here
fa8ed9702ac1820f539365853f0671f3125b2d73ndSUBDIRS = \
fa8ed9702ac1820f539365853f0671f3125b2d73nd# Get the 'head' of the build environment. This includes default targets and
fa8ed9702ac1820f539365853f0671f3125b2d73nd# paths to tools
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(AP_WORK)/build/NWGNUhead.inc
fa8ed9702ac1820f539365853f0671f3125b2d73nd# build this level's files
fa8ed9702ac1820f539365853f0671f3125b2d73nd# Make sure all needed macro's are defined
fa8ed9702ac1820f539365853f0671f3125b2d73nd# These directories will be at the beginning of the include list, followed by
fa8ed9702ac1820f539365853f0671f3125b2d73ndXINCDIRS += \
fa8ed9702ac1820f539365853f0671f3125b2d73nd# These flags will come after CFLAGS
fa8ed9702ac1820f539365853f0671f3125b2d73ndXCFLAGS += \
fa8ed9702ac1820f539365853f0671f3125b2d73nd# These defines will come after DEFINES
fa8ed9702ac1820f539365853f0671f3125b2d73ndXDEFINES += \
fa8ed9702ac1820f539365853f0671f3125b2d73nd# These flags will be added to the link.opt file
fa8ed9702ac1820f539365853f0671f3125b2d73ndXLFLAGS += \
fa8ed9702ac1820f539365853f0671f3125b2d73nd# These values will be appended to the correct variables based on the value of
fa8ed9702ac1820f539365853f0671f3125b2d73ndifeq "$(RELEASE)" "debug"
fa8ed9702ac1820f539365853f0671f3125b2d73ndXINCDIRS += \
fa8ed9702ac1820f539365853f0671f3125b2d73ndXCFLAGS += \
fa8ed9702ac1820f539365853f0671f3125b2d73ndXDEFINES += \
fa8ed9702ac1820f539365853f0671f3125b2d73ndXLFLAGS += \
fa8ed9702ac1820f539365853f0671f3125b2d73ndifeq "$(RELEASE)" "noopt"
fa8ed9702ac1820f539365853f0671f3125b2d73ndXINCDIRS += \
fa8ed9702ac1820f539365853f0671f3125b2d73ndXCFLAGS += \
fa8ed9702ac1820f539365853f0671f3125b2d73ndXDEFINES += \
fa8ed9702ac1820f539365853f0671f3125b2d73ndXLFLAGS += \
fa8ed9702ac1820f539365853f0671f3125b2d73ndifeq "$(RELEASE)" "release"
fa8ed9702ac1820f539365853f0671f3125b2d73ndXINCDIRS += \
fa8ed9702ac1820f539365853f0671f3125b2d73ndXCFLAGS += \
fa8ed9702ac1820f539365853f0671f3125b2d73ndXDEFINES += \
fa8ed9702ac1820f539365853f0671f3125b2d73ndXLFLAGS += \
fa8ed9702ac1820f539365853f0671f3125b2d73nd# These are used by the link target if an NLM is being generated
fa8ed9702ac1820f539365853f0671f3125b2d73nd# This is used by the link 'name' directive to name the nlm. If left blank
fa8ed9702ac1820f539365853f0671f3125b2d73nd# TARGET_nlm (see below) will be used.
fa8ed9702ac1820f539365853f0671f3125b2d73nd# This is used by the link '-desc ' directive.
fa8ed9702ac1820f539365853f0671f3125b2d73nd# If left blank, NLM_NAME will be used.
fa8ed9702ac1820f539365853f0671f3125b2d73ndNLM_DESCRIPTION =
fa8ed9702ac1820f539365853f0671f3125b2d73nd# This is used by the '-threadname' directive. If left blank,
fa8ed9702ac1820f539365853f0671f3125b2d73nd# NLM_NAME Thread will be used.
fa8ed9702ac1820f539365853f0671f3125b2d73ndNLM_THREAD_NAME =
fa8ed9702ac1820f539365853f0671f3125b2d73nd# If this is specified, it will override VERSION value in
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgNLM_VERSION =
fa8ed9702ac1820f539365853f0671f3125b2d73nd# If this is specified, it will override the default of 64K
fa8ed9702ac1820f539365853f0671f3125b2d73ndNLM_STACK_SIZE =
fa8ed9702ac1820f539365853f0671f3125b2d73nd# If this is specified it will be used by the link '-entry' directive
fa8ed9702ac1820f539365853f0671f3125b2d73ndNLM_ENTRY_SYM =
fa8ed9702ac1820f539365853f0671f3125b2d73nd# If this is specified it will be used by the link '-exit' directive
fa8ed9702ac1820f539365853f0671f3125b2d73ndNLM_EXIT_SYM =
fa8ed9702ac1820f539365853f0671f3125b2d73nd# If this is specified it will be used by the link '-check' directive
fa8ed9702ac1820f539365853f0671f3125b2d73ndNLM_CHECK_SYM =
fa8ed9702ac1820f539365853f0671f3125b2d73nd# If these are specified it will be used by the link '-flags' directive
fa8ed9702ac1820f539365853f0671f3125b2d73nd# If this is specified it will be linked in with the XDCData option in the def
fa8ed9702ac1820f539365853f0671f3125b2d73nd# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
fa8ed9702ac1820f539365853f0671f3125b2d73nd# by setting APACHE_UNIPROC in the environment
fa8ed9702ac1820f539365853f0671f3125b2d73nd# If there is an NLM target, put it here
fa8ed9702ac1820f539365853f0671f3125b2d73ndTARGET_nlm = \
fa8ed9702ac1820f539365853f0671f3125b2d73nd# If there is an LIB target, put it here
fa8ed9702ac1820f539365853f0671f3125b2d73ndTARGET_lib = \
fa8ed9702ac1820f539365853f0671f3125b2d73nd# These are the OBJ files needed to create the NLM target above.
fa8ed9702ac1820f539365853f0671f3125b2d73nd# Paths must all use the '/' character
fa8ed9702ac1820f539365853f0671f3125b2d73ndFILES_nlm_objs = \
fa8ed9702ac1820f539365853f0671f3125b2d73nd# These are the LIB files needed to create the NLM target above.
fa8ed9702ac1820f539365853f0671f3125b2d73nd# These will be added as a library command in the link.opt file.
fa8ed9702ac1820f539365853f0671f3125b2d73ndFILES_nlm_libs = \
fa8ed9702ac1820f539365853f0671f3125b2d73nd# These are the modules that the above NLM target depends on to load.
fa8ed9702ac1820f539365853f0671f3125b2d73nd# These will be added as a module command in the link.opt file.
fa8ed9702ac1820f539365853f0671f3125b2d73ndFILES_nlm_modules = \
fa8ed9702ac1820f539365853f0671f3125b2d73nd# If the nlm has a msg file, put it's path here
fa8ed9702ac1820f539365853f0671f3125b2d73ndFILE_nlm_msg =
fa8ed9702ac1820f539365853f0671f3125b2d73nd# If the nlm has a hlp file put it's path here
fa8ed9702ac1820f539365853f0671f3125b2d73ndFILE_nlm_hlp =
fa8ed9702ac1820f539365853f0671f3125b2d73nd# If this is specified, it will override $(NWOS)\copyright.txt.
fa8ed9702ac1820f539365853f0671f3125b2d73ndFILE_nlm_copyright =
fa8ed9702ac1820f539365853f0671f3125b2d73nd# Any additional imports go here
fa8ed9702ac1820f539365853f0671f3125b2d73ndFILES_nlm_Ximports = \
fa8ed9702ac1820f539365853f0671f3125b2d73nd# Any symbols exported to here
fa8ed9702ac1820f539365853f0671f3125b2d73ndFILES_nlm_exports = \
fa8ed9702ac1820f539365853f0671f3125b2d73nd# These are the OBJ files needed to create the LIB target above.
fa8ed9702ac1820f539365853f0671f3125b2d73nd# Paths must all use the '/' character
fa8ed9702ac1820f539365853f0671f3125b2d73ndFILES_lib_objs = \
fa8ed9702ac1820f539365853f0671f3125b2d73nd# implement targets and dependancies (leave this section alone)
fa8ed9702ac1820f539365853f0671f3125b2d73ndlibs :: $(OBJDIR) $(TARGET_lib)
fa8ed9702ac1820f539365853f0671f3125b2d73ndnlms :: libs $(TARGET_nlm)
fa8ed9702ac1820f539365853f0671f3125b2d73nd# Updated this target to create necessary directories and copy files to the
0662ed52e814f8f08ef0e09956413a792584eddffuankg# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
fa8ed9702ac1820f539365853f0671f3125b2d73ndinstall :: nlms FORCE
00d1c0c914426a97022d8205a875c48b211001c2fuankg $(call COPY,$(OBJDIR)/*.nlm, $(INSTALLBASE)/modules/)
fa8ed9702ac1820f539365853f0671f3125b2d73nd# Any specialized rules here
fa8ed9702ac1820f539365853f0671f3125b2d73nd# Include the 'tail' makefile that has targets that depend on variables defined
fa8ed9702ac1820f539365853f0671f3125b2d73nd# in this makefile
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(APBUILD)/NWGNUtail.inc