NWGNUmakefile revision ac7985784d08a3655291f24f711812b4d8b1cbcf
5cd4555ad444fd391002ae32450572054369fd42Rob Austein#
5cd4555ad444fd391002ae32450572054369fd42Rob Austein# Declare the sub-directories to be built here
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington
fd4dcaddae08b0fb28b0ec4faf26a9d8b1f923caAutomatic UpdaterSUBDIRS = \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(EOLIST)
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# Get the 'head' of the build environment. This includes default targets and
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# paths to tools
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrewsinclude $(AP_WORK)\build\NWGNUhead.inc
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# build this level's files
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# Make sure all needed macro's are defined
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews#
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Hunt
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews
c40265eba0c99708887d68e67901924065ba2514Brian Wellington#
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# These directories will be at the beginning of the include list, followed by
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# INCDIRS
c40265eba0c99708887d68e67901924065ba2514Brian Wellington#
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonXINCDIRS += \
c40265eba0c99708887d68e67901924065ba2514Brian Wellington $(EOLIST)
c40265eba0c99708887d68e67901924065ba2514Brian Wellington
c40265eba0c99708887d68e67901924065ba2514Brian Wellington#
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# These flags will come after CFLAGS
c40265eba0c99708887d68e67901924065ba2514Brian Wellington#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinXCFLAGS += \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(EOLIST)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark Andrews# These defines will come after DEFINES
fd4dcaddae08b0fb28b0ec4faf26a9d8b1f923caAutomatic Updater#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinXDEFINES += \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(EOLIST)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# These flags will be added to the link.opt file
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark AndrewsXLFLAGS += \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(EOLIST)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# These values will be appended to the correct variables based on the value of
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# RELEASE
c40265eba0c99708887d68e67901924065ba2514Brian Wellington#
c40265eba0c99708887d68e67901924065ba2514Brian Wellingtonifeq "$(RELEASE)" "debug"
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonXINCDIRS += \
c40265eba0c99708887d68e67901924065ba2514Brian Wellington $(EOLIST)
c40265eba0c99708887d68e67901924065ba2514Brian Wellington
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonXCFLAGS += \
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews $(EOLIST)
a26ad011f382d12058478704cb5e90e6f4366d01Andreas Gustafsson
bca7f81db58d4803fb6d8d352132445cf61eb1acMark AndrewsXDEFINES += \
c40265eba0c99708887d68e67901924065ba2514Brian Wellington $(EOLIST)
c40265eba0c99708887d68e67901924065ba2514Brian Wellington
3bc4221346e5045c5679dd0d84f4f7d888a9da79Mark AndrewsXLFLAGS += \
92551304a9abff9284de5b79a48e83d781989339Mark Andrews $(EOLIST)
c40265eba0c99708887d68e67901924065ba2514Brian Wellingtonendif
c40265eba0c99708887d68e67901924065ba2514Brian Wellington
c40265eba0c99708887d68e67901924065ba2514Brian Wellingtonifeq "$(RELEASE)" "noopt"
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonXINCDIRS += \
c40265eba0c99708887d68e67901924065ba2514Brian Wellington $(EOLIST)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
85c5ed3577655f4f710f0af5ee93edd71c336055Evan HuntXCFLAGS += \
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Hunt $(EOLIST)
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Hunt
85c5ed3577655f4f710f0af5ee93edd71c336055Evan HuntXDEFINES += \
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Hunt $(EOLIST)
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Hunt
85c5ed3577655f4f710f0af5ee93edd71c336055Evan HuntXLFLAGS += \
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Hunt $(EOLIST)
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Huntendif
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Hunt
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Huntifeq "$(RELEASE)" "release"
85c5ed3577655f4f710f0af5ee93edd71c336055Evan HuntXINCDIRS += \
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Hunt $(EOLIST)
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Hunt
85c5ed3577655f4f710f0af5ee93edd71c336055Evan HuntXCFLAGS += \
c40265eba0c99708887d68e67901924065ba2514Brian Wellington $(EOLIST)
c40265eba0c99708887d68e67901924065ba2514Brian Wellington
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonXDEFINES += \
c40265eba0c99708887d68e67901924065ba2514Brian Wellington $(EOLIST)
c40265eba0c99708887d68e67901924065ba2514Brian Wellington
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonXLFLAGS += \
c40265eba0c99708887d68e67901924065ba2514Brian Wellington $(EOLIST)
c40265eba0c99708887d68e67901924065ba2514Brian Wellingtonendif
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews#
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.
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews#
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark AndrewsNLM_NAME =
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews#
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# This is used by the link '-desc ' directive.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If left blank, NLM_NAME will be used.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
3bc4221346e5045c5679dd0d84f4f7d888a9da79Mark AndrewsNLM_DESCRIPTION =
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# This is used by the '-threadname' directive. If left blank,
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# NLM_NAME Thread will be used.
c40265eba0c99708887d68e67901924065ba2514Brian Wellington#
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonNLM_THREAD_NAME =
a26ad011f382d12058478704cb5e90e6f4366d01Andreas Gustafsson
a26ad011f382d12058478704cb5e90e6f4366d01Andreas Gustafsson#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If this is specified, it will override VERSION value in
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# $(AP_WORK)\build\NWGNUenvironment.inc
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinNLM_VERSION =
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
a26ad011f382d12058478704cb5e90e6f4366d01Andreas Gustafsson# If this is specified, it will override the default of 64K
a26ad011f382d12058478704cb5e90e6f4366d01Andreas Gustafsson#
3bc4221346e5045c5679dd0d84f4f7d888a9da79Mark AndrewsNLM_STACK_SIZE =
3bc4221346e5045c5679dd0d84f4f7d888a9da79Mark Andrews
3bc4221346e5045c5679dd0d84f4f7d888a9da79Mark Andrews
3bc4221346e5045c5679dd0d84f4f7d888a9da79Mark Andrews#
3bc4221346e5045c5679dd0d84f4f7d888a9da79Mark Andrews# If this is specified it will be used by the link '-entry' directive
3bc4221346e5045c5679dd0d84f4f7d888a9da79Mark Andrews#
3bc4221346e5045c5679dd0d84f4f7d888a9da79Mark AndrewsNLM_ENTRY_SYM =
3bc4221346e5045c5679dd0d84f4f7d888a9da79Mark Andrews
3bc4221346e5045c5679dd0d84f4f7d888a9da79Mark Andrews#
3bc4221346e5045c5679dd0d84f4f7d888a9da79Mark Andrews# If this is specified it will be used by the link '-exit' directive
92551304a9abff9284de5b79a48e83d781989339Mark Andrews#
92551304a9abff9284de5b79a48e83d781989339Mark AndrewsNLM_EXIT_SYM =
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
561a29af8c54a216e7d30b5b4f6e0d21661654ecMark Andrews# If this is specified it will be used by the link '-check' directive
561a29af8c54a216e7d30b5b4f6e0d21661654ecMark Andrews#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinNLM_CHECK_SYM =
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
92551304a9abff9284de5b79a48e83d781989339Mark Andrews#
92551304a9abff9284de5b79a48e83d781989339Mark Andrews# If these are specified it will be used by the link '-flags' directive
7791dd06ea69d0fb2494788ad4c24d568f40bcdfMark Andrews#
e9359db5e958bf05f9b9c5fe3c27d533f0f05550Mark AndrewsNLM_FLAGS =
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
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
7791dd06ea69d0fb2494788ad4c24d568f40bcdfMark Andrews#
7791dd06ea69d0fb2494788ad4c24d568f40bcdfMark AndrewsXDCDATA =
c40265eba0c99708887d68e67901924065ba2514Brian Wellington
c40265eba0c99708887d68e67901924065ba2514Brian Wellington#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If there is an NLM target, put it here
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinTARGET_nlm = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(OBJDIR)/cernmeta.nlm \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(OBJDIR)/expires.nlm \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(OBJDIR)/headers.nlm \
c40265eba0c99708887d68e67901924065ba2514Brian Wellington $(OBJDIR)/mimemagi.nlm \
c40265eba0c99708887d68e67901924065ba2514Brian Wellington $(OBJDIR)/modident.nlm \
c40265eba0c99708887d68e67901924065ba2514Brian Wellington $(OBJDIR)/uniqueid.nlm \
c40265eba0c99708887d68e67901924065ba2514Brian Wellington $(OBJDIR)/usertrk.nlm \
c40265eba0c99708887d68e67901924065ba2514Brian Wellington $(OBJDIR)/modversion.nlm \
c40265eba0c99708887d68e67901924065ba2514Brian Wellington $(EOLIST)
c40265eba0c99708887d68e67901924065ba2514Brian Wellington
c40265eba0c99708887d68e67901924065ba2514Brian Wellington#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If there is an LIB target, put it here
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinTARGET_lib = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(EOLIST)
c40265eba0c99708887d68e67901924065ba2514Brian Wellington
c40265eba0c99708887d68e67901924065ba2514Brian Wellington#
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# These are the OBJ files needed to create the NLM target above.
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# Paths must all use the '/' character
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFILES_nlm_objs = \
c40265eba0c99708887d68e67901924065ba2514Brian Wellington $(EOLIST)
6043e41fcf5dc91aa8a981c966512d73bdec31c1Mark Andrews
6043e41fcf5dc91aa8a981c966512d73bdec31c1Mark Andrews#
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 Wellington#
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonFILES_nlm_libs = \
c40265eba0c99708887d68e67901924065ba2514Brian Wellington $(EOLIST)
c40265eba0c99708887d68e67901924065ba2514Brian Wellington
c40265eba0c99708887d68e67901924065ba2514Brian Wellington#
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 Wellington#
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonFILES_nlm_modules = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(EOLIST)
c40265eba0c99708887d68e67901924065ba2514Brian Wellington
c40265eba0c99708887d68e67901924065ba2514Brian Wellington#
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# If the nlm has a msg file, put it's path here
c40265eba0c99708887d68e67901924065ba2514Brian Wellington#
FILE_nlm_msg =
#
# If the nlm has a hlp file put it's path here
#
FILE_nlm_hlp =
#
# If this is specified, it will override $(NWOS)\copyright.txt.
#
FILE_nlm_copyright =
#
# Any additional imports go here
#
FILES_nlm_Ximports = \
$(EOLIST)
#
# Any symbols exported to here
#
FILES_nlm_exports = \
$(EOLIST)
#
# These are the OBJ files needed to create the LIB target above.
# Paths must all use the '/' character
#
FILES_lib_objs = \
$(EOLIST)
#
# implement targets and dependancies (leave this section alone)
#
libs :: $(OBJDIR) $(TARGET_lib)
nlms :: libs $(TARGET_nlm)
#
# Updated this target to create necessary directories and copy files to the
# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
#
install :: nlms FORCE
copy $(OBJDIR)\*.nlm $(INSTALL)\$(BASEDIR)\modules\*.*
#
# Any specialized rules here
#
#
# Include the 'tail' makefile that has targets that depend on variables defined
# in this makefile
#
include $(AP_WORK)\build\NWGNUtail.inc