include ../make.inc

#######################################################################
#  This is the makefile to create a library for LAPACK.
#  The files are organized as follows:
#       ALLAUX -- Auxiliary routines called from all precisions
#       DLASRC -- Double precision real LAPACK routines
#
#  The library is called
#       lapack.a
#  and is created at the next higher 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
#
#----------------------------------------------------------------------
#
#  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.                                              #
#######################################################################
 
ALLAUX = ilaenv.o lsame.o xerbla.o

DLASRC = dgetri.o dgetrf.o dtrtri.o dlaswp.o dgetf2.o dtrti2.o


all: double

double: $(DLASRC) $(ALLAUX)
	$(ARCH) $(ARCHFLAGS) $(LAPACKLIB) $(DLASRC) $(ALLAUX)
	$(RANLIB) $(LAPACKLIB)

$(ALLAUX): $(FRC)
$(DLASRC): $(FRC)

FRC:
	@FRC=$(FRC)

clean:
	rm -f *.o

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

