|
kusano |
7d535a |
include ../make.inc
|
|
kusano |
7d535a |
HEADER = ../SRC
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#######################################################################
|
|
kusano |
7d535a |
# This is the makefile to create a library for C-BLAS.
|
|
kusano |
7d535a |
# The files are organized as follows:
|
|
kusano |
7d535a |
#
|
|
kusano |
7d535a |
# SBLAS1 -- Single precision real BLAS routines
|
|
kusano |
7d535a |
# CBLAS1 -- Single precision complex BLAS routines
|
|
kusano |
7d535a |
# DBLAS1 -- Double precision real BLAS routines
|
|
kusano |
7d535a |
# ZBLAS1 -- Double precision complex BLAS routines
|
|
kusano |
7d535a |
#
|
|
kusano |
7d535a |
# CB1AUX -- Real BLAS routines called by complex routines
|
|
kusano |
7d535a |
# ZB1AUX -- D.P. real BLAS routines called by d.p. complex
|
|
kusano |
7d535a |
# routines
|
|
kusano |
7d535a |
#
|
|
kusano |
7d535a |
# ALLBLAS -- Auxiliary routines for Level 2 and 3 BLAS
|
|
kusano |
7d535a |
#
|
|
kusano |
7d535a |
# SBLAS2 -- Single precision real BLAS2 routines
|
|
kusano |
7d535a |
# CBLAS2 -- Single precision complex BLAS2 routines
|
|
kusano |
7d535a |
# DBLAS2 -- Double precision real BLAS2 routines
|
|
kusano |
7d535a |
# ZBLAS2 -- Double precision complex BLAS2 routines
|
|
kusano |
7d535a |
#
|
|
kusano |
7d535a |
# SBLAS3 -- Single precision real BLAS3 routines
|
|
kusano |
7d535a |
# CBLAS3 -- Single precision complex BLAS3 routines
|
|
kusano |
7d535a |
# DBLAS3 -- Double precision real BLAS3 routines
|
|
kusano |
7d535a |
# ZBLAS3 -- Double precision complex BLAS3 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 |
# blas.a
|
|
kusano |
7d535a |
# and is created at the next higher 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 |
|
|
kusano |
7d535a |
SBLAS1 = isamax.o sasum.o saxpy.o scopy.o sdot.o snrm2.o \
|
|
kusano |
7d535a |
srot.o sscal.o sswap.o
|
|
kusano |
7d535a |
SBLAS2 = sgemv.o ssymv.o strsv.o sger.o ssyr2.o
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
DBLAS1 = idamax.o dasum.o daxpy.o dcopy.o ddot.o dnrm2.o \
|
|
kusano |
7d535a |
drot.o dscal.o dswap.o
|
|
kusano |
7d535a |
DBLAS2 = dgemv.o dsymv.o dtrsv.o dger.o dsyr2.o
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
CBLAS1 = icamax.o scasum.o caxpy.o ccopy.o scnrm2.o \
|
|
kusano |
7d535a |
cscal.o cswap.o
|
|
kusano |
7d535a |
CBLAS2 = cgemv.o chemv.o ctrsv.o cgerc.o cher2.o
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
ZBLAS1 = izamax.o dzasum.o zaxpy.o zcopy.o dznrm2.o \
|
|
kusano |
7d535a |
zscal.o dcabs1.o zswap.o
|
|
kusano |
7d535a |
ZBLAS2 = zgemv.o zhemv.o ztrsv.o zgerc.o zher2.o
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
all: single double complex complex16
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
single: $(SBLAS1) $(SBLAS2) $(SBLAS3)
|
|
kusano |
7d535a |
$(ARCH) $(ARCHFLAGS) $(BLASLIB) $(SBLAS1) $(ALLBLAS) $(SBLAS2) $(SBLAS3)
|
|
kusano |
7d535a |
$(RANLIB) $(BLASLIB)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
double: $(DBLAS1) $(DBLAS2) $(DBLAS3)
|
|
kusano |
7d535a |
$(ARCH) $(ARCHFLAGS) $(BLASLIB) $(DBLAS1) $(ALLBLAS) $(DBLAS2) $(DBLAS3)
|
|
kusano |
7d535a |
$(RANLIB) $(BLASLIB)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
complex: $(CBLAS1) $(CBLAS2) $(CBLAS3)
|
|
kusano |
7d535a |
$(ARCH) $(ARCHFLAGS) $(BLASLIB) $(CBLAS1) $(ALLBLAS) $(CBLAS2) $(CBLAS3)
|
|
kusano |
7d535a |
$(RANLIB) $(BLASLIB)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
complex16: $(ZBLAS1) $(ZBLAS2) $(ZBLAS3)
|
|
kusano |
7d535a |
$(ARCH) $(ARCHFLAGS) $(BLASLIB) $(ZBLAS1) $(ALLBLAS) $(ZBLAS2) $(ZBLAS3)
|
|
kusano |
7d535a |
$(RANLIB) $(BLASLIB)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
.c.o:
|
|
kusano |
7d535a |
$(CC) $(CFLAGS) $(CDEFS) -I$(HEADER) -c $< $(VERBOSE)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
clean:
|
|
kusano |
7d535a |
rm -f *.o ../lib/libblas.a
|