include ../make.inc

#######################################################################
#  This is the makefile to create a library for the BLAS.
#  The files are grouped as follows:
#
#       DBLAS1 -- Double precision real BLAS routines
#       DBLAS2 -- Double precision real BLAS2 routines
#       DBLAS3 -- Double precision real BLAS3 routines
#
#      ALLBLAS -- Auxiliary routines for Level 2 and 3 BLAS
#
#  The library is called
#       blas.a
#
#  To remove the object files after the library is created, enter
#       make clean
#  To force the source files to be recompiled, enter, for example,
#       make single FRC=FRC
#
#---------------------------------------------------------------------
#
#  Edward Anderson, University of Tennessee
#  March 26, 1990
#  Susan Ostrouchov, Last updated September 30, 1994
#######################################################################
#  Modifed by David R. Musicant to contain those parts necessary      #
#  for the ASVM project.                                              #
#######################################################################

all: double
 
DBLAS1 = idamax.o dscal.o dswap.o
$(DBLAS1): $(FRC)

DBLAS2 = dtrmv.o dger.o dgemv.o
$(DBLAS2): $(FRC)

DBLAS3 = dtrsm.o dgemm.o dtrmm.o
$(DBLAS3): $(FRC)

ALLBLAS  = lsame.o xerbla.o
$(ALLBLAS) : $(FRC)

double: $(DBLAS1) $(ALLBLAS) $(DBLAS2) $(DBLAS3)
	$(ARCH) $(ARCHFLAGS) $(BLASLIB) $(DBLAS1) $(ALLBLAS) \
	$(DBLAS2) $(DBLAS3)
	$(RANLIB) $(BLASLIB)

FRC:
	@FRC=$(FRC)

clean:
	rm -f *.o

.c.o: 
	$(CC) $(CFLAGS) -c $*.c
