NWGNUmodident revision 70953fb44a7140fe206c3a5f011e24209c8c5c6a
5cd4555ad444fd391002ae32450572054369fd42Rob Austein#
5cd4555ad444fd391002ae32450572054369fd42Rob Austein# Make sure all needed macro's are defined
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington
cfa2326b5c96a3a4c720262e077b2baf9fc27970Tinderbox User#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Get the 'head' of the build environment if necessary. This includes default
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# targets and paths to tools
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellingtonifndef EnvironmentDefined
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellingtoninclude $(AP_WORK)\build\NWGNUhead.inc
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrewsendif
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# These directories will be at the beginning of the include list, followed by
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# INCDIRS
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark AndrewsXINCDIRS += \
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington $(AP_WORK)/include \
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews $(NWOS) \
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater $(AP_WORK)/modules/arch/netware \
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews $(APR)/include \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley $(APRUTIL)/include \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley $(APR) \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley $(EOLIST)
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# These flags will come after CFLAGS
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
94bd918b63001277f1b28ae4581645f8a835688fBob HalleyXCFLAGS += \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley -prefix pre_nw.h \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley $(EOLIST)
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# These defines will come after DEFINES
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
94bd918b63001277f1b28ae4581645f8a835688fBob HalleyXDEFINES += \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(EOLIST)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# These flags will be added to the link.opt file
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark Andrews#
cfa2326b5c96a3a4c720262e077b2baf9fc27970Tinderbox UserXLFLAGS += \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(EOLIST)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# These values will be appended to the correct variables based on the value of
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# RELEASE
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinifeq "$(RELEASE)" "debug"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinXINCDIRS += \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(EOLIST)
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
94bd918b63001277f1b28ae4581645f8a835688fBob HalleyXCFLAGS += \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley $(EOLIST)
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
94bd918b63001277f1b28ae4581645f8a835688fBob HalleyXDEFINES += \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley $(EOLIST)
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
94bd918b63001277f1b28ae4581645f8a835688fBob HalleyXLFLAGS += \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(EOLIST)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinendif
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinifeq "$(RELEASE)" "noopt"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinXINCDIRS += \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(EOLIST)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinXCFLAGS += \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(EOLIST)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinXDEFINES += \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(EOLIST)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinXLFLAGS += \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(EOLIST)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinendif
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinifeq "$(RELEASE)" "release"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinXINCDIRS += \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(EOLIST)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinXCFLAGS += \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(EOLIST)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinXDEFINES += \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(EOLIST)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinXLFLAGS += \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(EOLIST)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinendif
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# These are used by the link target if an NLM is being generated
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# This is used by the link 'name' directive to name the nlm. If left blank
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# TARGET_nlm (see below) will be used.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinNLM_NAME = modident
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# This is used by the link '-desc ' directive.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If left blank, NLM_NAME will be used.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinNLM_DESCRIPTION = Apache $(VERSION_STR) Remote User Identity Module
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# This is used by the '-threadname' directive. If left blank,
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# NLM_NAME Thread will be used.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinNLM_THREAD_NAME = Mod_Ident Module
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If this is specified, it will override VERSION value in
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# $(AP_WORK)\build\NWGNUenvironment.inc
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
8b9fc7617b8f54641708c985697848e6cc10a5bbMark AndrewsNLM_VERSION =
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If this is specified, it will override the default of 64K
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinNLM_STACK_SIZE = 8192
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
4eb998928b9aef0ceda42d7529980d658138698aEvan Hunt#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If this is specified it will be used by the link '-entry' directive
4eb998928b9aef0ceda42d7529980d658138698aEvan Hunt#
4eb998928b9aef0ceda42d7529980d658138698aEvan HuntNLM_ENTRY_SYM = _LibCPrelude
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
4eb998928b9aef0ceda42d7529980d658138698aEvan Hunt#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If this is specified it will be used by the link '-exit' directive
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinNLM_EXIT_SYM = _LibCPostlude
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If this is specified it will be used by the link '-check' directive
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinNLM_CHECK_SYM =
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If these are specified it will be used by the link '-flags' directive
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# If this is specified it will be linked in with the XDCData option in the def
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# by setting APACHE_UNIPROC in the environment
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
94bd918b63001277f1b28ae4581645f8a835688fBob HalleyXDCDATA =
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews#
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# If there is an NLM target, put it here
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
94bd918b63001277f1b28ae4581645f8a835688fBob HalleyTARGET_nlm = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(OBJDIR)/modident.nlm \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(EOLIST)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# If there is an LIB target, put it here
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinTARGET_lib = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(EOLIST)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews#
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews# These are the OBJ files needed to create the NLM target above.
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews# Paths must all use the '/' character
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFILES_nlm_objs = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(OBJDIR)/mod_ident.o \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(EOLIST)
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
4eb998928b9aef0ceda42d7529980d658138698aEvan Hunt#
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews# These are the LIB files needed to create the NLM target above.
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# These will be added as a library command in the link.opt file.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFILES_nlm_libs = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein libcpre.o \
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews $(EOLIST)
4eb998928b9aef0ceda42d7529980d658138698aEvan Hunt
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews#
561a29af8c54a216e7d30b5b4f6e0d21661654ecMark Andrews# These are the modules that the above NLM target depends on to load.
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# These will be added as a module command in the link.opt file.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
94bd918b63001277f1b28ae4581645f8a835688fBob HalleyFILES_nlm_modules = \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley aprlib \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein libc \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(EOLIST)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If the nlm has a msg file, put it's path here
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
4eb998928b9aef0ceda42d7529980d658138698aEvan HuntFILE_nlm_msg =
4eb998928b9aef0ceda42d7529980d658138698aEvan Hunt
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews# If the nlm has a hlp file put it's path here
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFILE_nlm_hlp =
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# If this is specified, it will override $(NWOS)\copyright.txt.
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFILE_nlm_copyright =
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Any additional imports go here
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFILES_nlm_Ximports = \
561a29af8c54a216e7d30b5b4f6e0d21661654ecMark Andrews @$(APR)/aprlib.imp \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein @$(NWOS)/httpd.imp \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein @libc.imp \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley $(EOLIST)
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# Any symbols exported to here
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
94bd918b63001277f1b28ae4581645f8a835688fBob HalleyFILES_nlm_exports = \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley ident_module \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley $(EOLIST)
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# These are the OBJ files needed to create the LIB target above.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Paths must all use the '/' character
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFILES_lib_objs = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(EOLIST)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# implement targets and dependancies (leave this section alone)
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
94bd918b63001277f1b28ae4581645f8a835688fBob Halleylibs :: $(OBJDIR) $(TARGET_lib)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinnlms :: libs $(TARGET_nlm)
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Updated this target to create necessary directories and copy files to the
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininstall :: nlms FORCE
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# Any specialized rules here
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# Include the 'tail' makefile that has targets that depend on variables defined
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# in this makefile
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
94bd918b63001277f1b28ae4581645f8a835688fBob Halleyinclude $(AP_WORK)\build\NWGNUtail.inc
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
94bd918b63001277f1b28ae4581645f8a835688fBob Halley