NWGNUmakefile revision ac7985784d08a3655291f24f711812b4d8b1cbcf
5cd4555ad444fd391002ae32450572054369fd42Rob Austein# Declare the sub-directories to be built here
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# Get the 'head' of the build environment. This includes default targets and
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# paths to tools
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrewsinclude $(AP_WORK)\build\NWGNUhead.inc
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# build this level's files
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# Make sure all needed macro's are defined
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# These directories will be at the beginning of the include list, followed by
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# These flags will come after CFLAGS
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark Andrews# These defines will come after DEFINES
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinXDEFINES += \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# These flags will be added to the link.opt file
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# These values will be appended to the correct variables based on the value of
c40265eba0c99708887d68e67901924065ba2514Brian Wellingtonifeq "$(RELEASE)" "debug"
bca7f81db58d4803fb6d8d352132445cf61eb1acMark AndrewsXDEFINES += \
c40265eba0c99708887d68e67901924065ba2514Brian Wellingtonifeq "$(RELEASE)" "noopt"
85c5ed3577655f4f710f0af5ee93edd71c336055Evan HuntXDEFINES += \
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Huntifeq "$(RELEASE)" "release"
85c5ed3577655f4f710f0af5ee93edd71c336055Evan HuntXINCDIRS += \
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews# These are used by the link target if an NLM is being generated
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews# This is used by the link 'name' directive to name the nlm. If left blank
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews# TARGET_nlm (see below) will be used.
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# This is used by the link '-desc ' directive.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If left blank, NLM_NAME will be used.
3bc4221346e5045c5679dd0d84f4f7d888a9da79Mark AndrewsNLM_DESCRIPTION =
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# This is used by the '-threadname' directive. If left blank,
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# NLM_NAME Thread will be used.
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonNLM_THREAD_NAME =
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If this is specified, it will override VERSION value in
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# $(AP_WORK)\build\NWGNUenvironment.inc
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinNLM_VERSION =
a26ad011f382d12058478704cb5e90e6f4366d01Andreas Gustafsson# If this is specified, it will override the default of 64K
3bc4221346e5045c5679dd0d84f4f7d888a9da79Mark AndrewsNLM_STACK_SIZE =
3bc4221346e5045c5679dd0d84f4f7d888a9da79Mark Andrews# If this is specified it will be used by the link '-entry' directive
3bc4221346e5045c5679dd0d84f4f7d888a9da79Mark AndrewsNLM_ENTRY_SYM =
3bc4221346e5045c5679dd0d84f4f7d888a9da79Mark Andrews# If this is specified it will be used by the link '-exit' directive
92551304a9abff9284de5b79a48e83d781989339Mark AndrewsNLM_EXIT_SYM =
561a29af8c54a216e7d30b5b4f6e0d21661654ecMark Andrews# If this is specified it will be used by the link '-check' directive
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinNLM_CHECK_SYM =
92551304a9abff9284de5b79a48e83d781989339Mark Andrews# If these are specified it will be used by the link '-flags' directive
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If this is specified it will be linked in with the XDCData option in the def
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# by setting APACHE_UNIPROC in the environment
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If there is an NLM target, put it here
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinTARGET_nlm = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If there is an LIB target, put it here
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinTARGET_lib = \
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# These are the OBJ files needed to create the NLM target above.
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# Paths must all use the '/' character
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFILES_nlm_objs = \
6043e41fcf5dc91aa8a981c966512d73bdec31c1Mark Andrews# These are the LIB files needed to create the NLM target above.
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# These will be added as a library command in the link.opt file.
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonFILES_nlm_libs = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# These are the modules that the above NLM target depends on to load.
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# These will be added as a module command in the link.opt file.
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonFILES_nlm_modules = \
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# If the nlm has a msg file, put it's path here
# If this is specified, it will override $(NWOS)\copyright.txt.
# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
include $(AP_WORK)\build\NWGNUtail.inc