# Common Makefile for my modified BLAS subroutines

# This Makefile works together with GNU make.
# GNU make can be obtained from any FTP archive near you.
# The Danish FTP archive currently has the GNU make in the file:
#    ftp://ftp.denet.dk/pub/gnu/make-3.75.tar.gz

# Source directory is one level above:
SRCDIR = ..

# Directory for libraries and .o files
OBJECTDIR = ${ARCH}

# Make-directory command
MKDIR = mkdir -p

BLASBINS = czcgemm.o czcgemm2.o cczgemm.o cczgemm2.o \
	czcgemv.o cczgemv.o newczcgemm.o newczcgemv.o zgerc.o

libmyblas.a: ${BLASBINS}
	ar r $@ ${BLASBINS}

#####################################################################
#
# Fundamental rules for libraries and .o files
#

# Dependency search path (GNU make special):
VPATH = ${SRCDIR}

# General rule for making .o files:
.f.o:
	${FC} -c ${FFLAGS} $<

clean:
	rm -f *.o *.i *.lst
