#**********************************************************************
#
#     Copyright (C) 1991-1992  Roland W. Freund and Noel M. Nachtigal
#     All rights reserved.
#
#**********************************************************************
#
#  Makefile for the LAPACK subdirectory.
#

#
#  Files in this directory:
#
LIB = liblapk.a
OBJ = dlamch.o slamch.o lsame.o
SRC = d2s.sed slamch.f 

#
#  Makefile include files.
#
include ../../header.mak
include ../../incl/local.mak

#
#  This is the local help target.
#
help::
	@echo "   make lib     - make the LAPACK library"
	@echo "   make nolib   - remove LAPACK library"

#
#  Dependencies for files in this directory.
#
d2s.sed:	../../incl/d2s.sed
	@echo Making conversion script $@
	@cp ../../incl/d2s.sed $@
	@echo "s/dlamc/slamc/g" >> $@
	@echo "s/DLAMC/SLAMC/g" >> $@
slamch.f:	dlamch.f d2s.sed
	@echo Making $@
	@sed -f d2s.sed dlamch.f > $@

#
#  LAPACK library target.
#
$(LIB):	$(OBJ)
	@echo Making $@
	@$(AR) $(ARFLAGS) $@ $(OBJ)
	@$(RANLIB) $@
