41.1 Building the TestCases Library Variants
The library for ordinary release is test/libtestcases.al and test/libtestcases.a. The exact name is specified by the variable
TCLIBRARYNAME.
The target libraryvariants builds, in fact, several variants of the libraries and
takes the dependencies given in test/Makefile.dep into account.
543⟨building library variants 463⟩+
≡ (462 542) ⊲463
VARIANTADDITIONALFLAGSordinary=-ltestcases -laldorunit -lextio -lalgebra
VARIANTADDITIONALFLAGSdebug =-ltestcasesd -laldorunitd -lextiod \
-lalgebrad #-DTRACE
VARIANTADDITIONALFLAGSgmp =-ltestcases-gmp -laldorunit-gmp \
-lextio-gmp -lalgebra-gmp
all: checklib.extio checklib.aldorunit
$(MAKE) SUBLIBRARYNAME=$(TCLIBRARYNAME) \
SUBLIBPREFIX=$(TCLIBPREFIX) \
libraryvariants
checklib.%:
@if [ ! -f "${ALDORROOT}/lib/lib$*.al" ]; then \
echo "============================================="; \
echo "Cannot find the libary"; \
echo " ${ALDORROOT}/lib/lib$*.al"; \
echo "It can be downloaded from"; \
echo " http://www.risc.uni-linz.ac.at/software/aldor"; \
echo "============================================="; \
exit 1; \
fi
Defines:
VARIANTADDITIONALFLAGS, used in chunks 445 and 453.
Uses ALDORROOT 429, all 350, libraryvariants 444b, TCLIBPREFIX 541,
and TCLIBRARYNAME 541.