kusano 7d535a
include ../../make.inc
kusano 7d535a
kusano 7d535a
#######################################################################
kusano 7d535a
#  This is the makefile to create a library of the test matrix
kusano 7d535a
#  generators used in LAPACK.  The files are organized as follows:
kusano 7d535a
#
kusano 7d535a
#     SCATGEN  -- Auxiliary routines called from both REAL and COMPLEX
kusano 7d535a
#     DZATGEN  -- Auxiliary routines called from both DOUBLE PRECISION
kusano 7d535a
#                 and COMPLEX*16
kusano 7d535a
#     SMATGEN  -- Single precision real matrix generation routines
kusano 7d535a
#     CMATGEN  -- Single precision complex matrix generation routines
kusano 7d535a
#     DMATGEN  -- Double precision real matrix generation routines
kusano 7d535a
#     ZMATGEN  -- Double precision complex matrix generation routines
kusano 7d535a
#
kusano 7d535a
#  The library can be set up to include routines for any combination
kusano 7d535a
#  of the four precisions.  To create or add to the library, enter make
kusano 7d535a
#  followed by one or more of the precisions desired.  Some examples:
kusano 7d535a
#       make single
kusano 7d535a
#       make single complex
kusano 7d535a
#       make single double complex complex16
kusano 7d535a
#  Alternatively, the command
kusano 7d535a
#       make
kusano 7d535a
#  without any arguments creates a library of all four precisions.
kusano 7d535a
#  The library is called
kusano 7d535a
#       libtmglib.a
kusano 7d535a
#  and is created at the LAPACK directory level.
kusano 7d535a
#
kusano 7d535a
#  To remove the object files after the library is created, enter
kusano 7d535a
#       make clean
kusano 7d535a
#
kusano 7d535a
#######################################################################
kusano 7d535a
ALLAUX  = lsamen.o
kusano 7d535a
kusano 7d535a
SCATGEN = slatm1.o slaran.o slarnd.o slaruv.o slabad.o slarnv.o
kusano 7d535a
SLASRC  = slatb4.o slaset.o slartg.o
kusano 7d535a
SMATGEN = slatms.o slatme.o slatmr.o \
kusano 7d535a
	  slagge.o slagsy.o slarge.o slaror.o slarot.o slatm2.o slatm3.o
kusano 7d535a
SINTRINSIC  = r_lg10.o r_sign.o pow_dd.o
kusano 7d535a
kusano 7d535a
DZATGEN = dlatm1.o dlaran.o dlarnd.o dlaruv.o dlabad.o dlarnv.o
kusano 7d535a
DLASRC  = dlatb4.o dlaset.o dlartg.o
kusano 7d535a
DMATGEN = dlatms.o dlatme.o dlatmr.o \
kusano 7d535a
	  dlagge.o dlagsy.o dlarge.o dlaror.o dlarot.o dlatm2.o dlatm3.o
kusano 7d535a
DINTRINSIC  = d_lg10.o d_sign.o pow_dd.o
kusano 7d535a
kusano 7d535a
CLASRC  = clatb4.o claset.o clartg.o clarnv.o clacgv.o csymv.o
kusano 7d535a
CMATGEN = clatms.o clatme.o clatmr.o \
kusano 7d535a
	  clagge.o clagsy.o clarge.o claror.o clarot.o clatm2.o clatm3.o \
kusano 7d535a
	  claghe.o clarnd.o cdotc.o
kusano 7d535a
kusano 7d535a
ZLASRC  = zlatb4.o zlaset.o zlartg.o zlarnv.o zlacgv.o zsymv.o
kusano 7d535a
ZMATGEN = zlatms.o zlatme.o zlatmr.o \
kusano 7d535a
	  zlagge.o zlagsy.o zlarge.o zlaror.o zlarot.o zlatm2.o zlatm3.o \
kusano 7d535a
	  zlaghe.o zlarnd.o zdotc.o
kusano 7d535a
kusano 7d535a
all: single double complex complex16
kusano 7d535a
kusano 7d535a
single: $(SMATGEN) $(SCATGEN) $(SLASRC) $(SINTRINSIC) $(ALLAUX)
kusano 7d535a
	$(ARCH) $(ARCHFLAGS) ../$(TMGLIB) $(SMATGEN) $(SCATGEN) \
kusano 7d535a
	        $(SLASRC) $(SINTRINSIC) $(ALLAUX)
kusano 7d535a
	$(RANLIB) ../$(TMGLIB)
kusano 7d535a
kusano 7d535a
double: $(DMATGEN) $(DZATGEN) $(DLASRC) $(DINTRINSIC) $(ALLAUX)
kusano 7d535a
	$(ARCH) $(ARCHFLAGS) ../$(TMGLIB) $(DMATGEN) $(DZATGEN) \
kusano 7d535a
	        $(DLASRC) $(DINTRINSIC) $(ALLAUX)
kusano 7d535a
	$(RANLIB) ../$(TMGLIB)
kusano 7d535a
kusano 7d535a
complex: $(CMATGEN) $(SCATGEN) $(CLASRC) $(SINTRINSIC) $(ALLAUX)
kusano 7d535a
	$(ARCH) $(ARCHFLAGS) ../$(TMGLIB) $(CMATGEN) $(SCATGEN) \
kusano 7d535a
	        $(CLASRC) $(SINTRINSIC) $(ALLAUX)
kusano 7d535a
	$(RANLIB) ../$(TMGLIB)
kusano 7d535a
kusano 7d535a
complex16: $(ZMATGEN) $(DZATGEN) $(ZLASRC) $(DINSTRINSIC) $(ALLAUX)
kusano 7d535a
	$(ARCH) $(ARCHFLAGS) ../$(TMGLIB) $(ZMATGEN) $(DZATGEN) \
kusano 7d535a
	        $(ZLASRC) $(DINTRINSIC) $(ALLAUX)
kusano 7d535a
	$(RANLIB) ../$(TMGLIB)
kusano 7d535a
kusano 7d535a
clean:
kusano 7d535a
	rm -f *.o ../$(TMGLIB)
kusano 7d535a
kusano 7d535a
.c.o: ; $(CC) $(CFLAGS) $(CDEFS) -c $<