NWGNUmakefile revision 00d1c0c914426a97022d8205a875c48b211001c2
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Declare the sub-directories to be built here
fae13836a33b474a6aa2c147df8334f5b1ffae45Tinderbox User# Get the 'head' of the build environment. This includes default targets and
fae13836a33b474a6aa2c147df8334f5b1ffae45Tinderbox User# paths to tools
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntinclude $(AP_WORK)/build/NWGNUhead.inc
fae13836a33b474a6aa2c147df8334f5b1ffae45Tinderbox User# build this level's files
fae13836a33b474a6aa2c147df8334f5b1ffae45Tinderbox User# Make sure all needed macro's are defined
fae13836a33b474a6aa2c147df8334f5b1ffae45Tinderbox User# These directories will be at the beginning of the include list, followed by
fae13836a33b474a6aa2c147df8334f5b1ffae45Tinderbox User# These flags will come after CFLAGS
fae13836a33b474a6aa2c147df8334f5b1ffae45Tinderbox User# These defines will come after DEFINES
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntXDEFINES += \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# These flags will be added to the link.opt file
fae13836a33b474a6aa2c147df8334f5b1ffae45Tinderbox User# These values will be appended to the correct variables based on the value of
fae13836a33b474a6aa2c147df8334f5b1ffae45Tinderbox Userifeq "$(RELEASE)" "debug"
fae13836a33b474a6aa2c147df8334f5b1ffae45Tinderbox Userifeq "$(RELEASE)" "noopt"
fae13836a33b474a6aa2c147df8334f5b1ffae45Tinderbox Userifeq "$(RELEASE)" "release"
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# These are used by the link target if an NLM is being generated
fae13836a33b474a6aa2c147df8334f5b1ffae45Tinderbox User# This is used by the link 'name' directive to name the nlm. If left blank
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# TARGET_nlm (see below) will be used.
fae13836a33b474a6aa2c147df8334f5b1ffae45Tinderbox User# This is used by the link '-desc ' directive.
fae13836a33b474a6aa2c147df8334f5b1ffae45Tinderbox User# If left blank, NLM_NAME will be used.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserNLM_DESCRIPTION =
fae13836a33b474a6aa2c147df8334f5b1ffae45Tinderbox User# This is used by the '-threadname' directive. If left blank,
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# NLM_NAME Thread will be used.
fae13836a33b474a6aa2c147df8334f5b1ffae45Tinderbox UserNLM_THREAD_NAME =
fae13836a33b474a6aa2c147df8334f5b1ffae45Tinderbox User# If this is specified, it will override VERSION value in
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# If this is specified, it will override the default of 64K
fae13836a33b474a6aa2c147df8334f5b1ffae45Tinderbox UserNLM_STACK_SIZE =
fae13836a33b474a6aa2c147df8334f5b1ffae45Tinderbox User# If this is specified it will be used by the link '-entry' directive
fae13836a33b474a6aa2c147df8334f5b1ffae45Tinderbox UserNLM_ENTRY_SYM =
fae13836a33b474a6aa2c147df8334f5b1ffae45Tinderbox User# If this is specified it will be used by the link '-exit' directive
fae13836a33b474a6aa2c147df8334f5b1ffae45Tinderbox UserNLM_EXIT_SYM =
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# If this is specified it will be used by the link '-check' directive
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserNLM_CHECK_SYM =
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# If these are specified it will be used by the link '-flags' directive
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# If this is specified it will be linked in with the XDCData option in the def
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# by setting APACHE_UNIPROC in the environment
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# If there is an NLM target, put it here
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserTARGET_nlm = \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# If there is an LIB target, put it here
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserTARGET_lib = \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# These are the OBJ files needed to create the NLM target above.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Paths must all use the '/' character
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserFILES_nlm_objs = \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# These are the LIB files needed to create the NLM target above.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# These will be added as a library command in the link.opt file.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserFILES_nlm_libs = \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# These are the modules that the above NLM target depends on to load.
fae13836a33b474a6aa2c147df8334f5b1ffae45Tinderbox User# These will be added as a module command in the link.opt file.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserFILES_nlm_modules = \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# If the nlm has a msg file, put it's path here
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserFILE_nlm_msg =
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# If the nlm has a hlp file put it's path here
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserFILE_nlm_hlp =
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# If this is specified, it will override $(NWOS)\copyright.txt.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserFILE_nlm_copyright =
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Any additional imports go here
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserFILES_nlm_Ximports = \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Any symbols exported to here
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserFILES_nlm_exports = \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# These are the OBJ files needed to create the LIB target above.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Paths must all use the '/' character
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserFILES_lib_objs = \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# implement targets and dependancies (leave this section alone)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userlibs :: $(OBJDIR) $(TARGET_lib)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Usernlms :: libs $(TARGET_nlm)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Updated this target to create necessary directories and copy files to the
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userinstall :: nlms FORCE
fae13836a33b474a6aa2c147df8334f5b1ffae45Tinderbox User $(call COPY,$(OBJDIR)/*.nlm, $(INSTALLBASE)/modules/)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Any specialized rules here
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Include the 'tail' makefile that has targets that depend on variables defined
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# in this makefile
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userinclude $(APBUILD)/NWGNUtail.inc