diff options
author | jason <jason@8a072113-8704-0410-8d35-dd094bca7971> | 2008-10-28 01:38:50 +0000 |
---|---|---|
committer | jason <jason@8a072113-8704-0410-8d35-dd094bca7971> | 2008-10-28 01:38:50 +0000 |
commit | baba851215b44ac3b60b9248eb02bcce7eb76247 (patch) | |
tree | 8c0f5c006875532a30d4409f5e94b0f310ff00a7 /TESTING/MATGEN/Makefile | |
download | lapack-baba851215b44ac3b60b9248eb02bcce7eb76247.tar.gz lapack-baba851215b44ac3b60b9248eb02bcce7eb76247.tar.bz2 lapack-baba851215b44ac3b60b9248eb02bcce7eb76247.zip |
Move LAPACK trunk into position.
Diffstat (limited to 'TESTING/MATGEN/Makefile')
-rw-r--r-- | TESTING/MATGEN/Makefile | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/TESTING/MATGEN/Makefile b/TESTING/MATGEN/Makefile new file mode 100644 index 00000000..350cb250 --- /dev/null +++ b/TESTING/MATGEN/Makefile @@ -0,0 +1,99 @@ +include ../../make.inc + +####################################################################### +# This is the makefile to create a library of the test matrix +# generators used in LAPACK. The files are organized as follows: +# +# SCATGEN -- Auxiliary routines called from both REAL and COMPLEX +# DZATGEN -- Auxiliary routines called from both DOUBLE PRECISION +# and COMPLEX*16 +# SMATGEN -- Single precision real matrix generation routines +# CMATGEN -- Single precision complex matrix generation routines +# DMATGEN -- Double precision real matrix generation routines +# ZMATGEN -- Double precision complex matrix generation routines +# +# The library can be set up to include routines for any combination +# of the four precisions. To create or add to the library, enter make +# followed by one or more of the precisions desired. Some examples: +# make single +# make single complex +# make single double complex complex16 +# Alternatively, the command +# make +# without any arguments creates a library of all four precisions. +# The library is called +# tmglib.a +# and is created at the LAPACK directory level. +# +# To remove the object files after the library is created, enter +# make clean +# On some systems, you can force the source files to be recompiled by +# entering (for example) +# make single FRC=FRC +# +####################################################################### + +SCATGEN = slatm1.o slaran.o slarnd.o + +SMATGEN = slatms.o slatme.o slatmr.o \ + slagge.o slagsy.o slakf2.o slarge.o slaror.o slarot.o slatm2.o \ + slatm3.o slatm5.o slatm6.o + +CMATGEN = clatms.o clatme.o clatmr.o \ + clagge.o claghe.o clagsy.o clakf2.o clarge.o claror.o clarot.o \ + clatm1.o clarnd.o clatm2.o clatm3.o clatm5.o clatm6.o + +DZATGEN = dlatm1.o dlaran.o dlarnd.o + +DMATGEN = dlatms.o dlatme.o dlatmr.o \ + dlagge.o dlagsy.o dlakf2.o dlarge.o dlaror.o dlarot.o dlatm2.o \ + dlatm3.o dlatm5.o dlatm6.o + +ZMATGEN = zlatms.o zlatme.o zlatmr.o \ + zlagge.o zlaghe.o zlagsy.o zlakf2.o zlarge.o zlaror.o zlarot.o \ + zlatm1.o zlarnd.o zlatm2.o zlatm3.o zlatm5.o zlatm6.o + +all: ../../$(TMGLIB) + +ALLOBJ=$(SMATGEN) $(CMATGEN) $(SCATGEN) $(DMATGEN) $(ZMATGEN) \ + $(DZATGEN) + +../../$(TMGLIB): $(SMATGEN) $(CMATGEN) $(SCATGEN) $(DMATGEN) \ + $(ZMATGEN) $(DZATGEN) + $(ARCH) $(ARCHFLAGS) $@ $(ALLOBJ) + $(RANLIB) $@ + +single: $(SMATGEN) $(SCATGEN) + $(ARCH) $(ARCHFLAGS) ../../$(TMGLIB) $(SMATGEN) $(SCATGEN) + $(RANLIB) ../../$(TMGLIB) + +complex: $(CMATGEN) $(SCATGEN) + $(ARCH) $(ARCHFLAGS) ../../$(TMGLIB) $(CMATGEN) $(SCATGEN) + $(RANLIB) ../../$(TMGLIB) + +double: $(DMATGEN) $(DZATGEN) + $(ARCH) $(ARCHFLAGS) ../../$(TMGLIB) $(DMATGEN) $(DZATGEN) + $(RANLIB) ../../$(TMGLIB) + +complex16: $(ZMATGEN) $(DZATGEN) + $(ARCH) $(ARCHFLAGS) ../../$(TMGLIB) $(ZMATGEN) $(DZATGEN) + $(RANLIB) ../../$(TMGLIB) + +$(SCATGEN): $(FRC) +$(SMATGEN): $(FRC) +$(CMATGEN): $(FRC) +$(DZATGEN): $(FRC) +$(DMATGEN): $(FRC) +$(ZMATGEN): $(FRC) + +FRC: + @FRC=$(FRC) + +clean: ; \ + rm -f *.o + +.f.o: ; $(FORTRAN) $(OPTS) -c $< -o $@ + +slaran.o: slaran.f ; $(FORTRAN) $(NOOPT) -c $< +dlaran.o: dlaran.f ; $(FORTRAN) $(NOOPT) -c $< + |