# Makefile for eispack tests

srcdir =	@srcdir@
VPATH =		@srcdir@

prefix =	@prefix@
exec_prefix =	@exec_prefix@

bindir =	$(exec_prefix)/bin
libdir =	$(exec_prefix)/lib
incdir =	$(prefix)/include
infodir =	$(prefix)/info

INSTALL =	@INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA =	@INSTALL_DATA@

SHELL =		/bin/sh
CC =		@CC@
FC =		f77
AR =		ar
RM =		rm
RANLIB =	@RANLIB@
DEFS =		@DEFS@
LIBS =		@LIBS@
CFLAGS =	@CFLAGS@
LDFLAGS =	@LDFLAGS@
FFLAGS =	-O

LIB =		../libeispack.a

TESTS =		cgtest chtest rbltest rggtest rgtest rltest \
		rsbtest rsgabtest rsgbatest rsgtest rsptest \
		rstest rsttest rttest

TESTSOUT =	cgtest.out chtest.out rbltest.out rggtest.out \
		rgest.out rltest.out rsbtest.out rsgabtest.out \
		rsgbatest.out rsgtest.out rsptest.out rstest.out \
		rsttest.out rttest.out

PROGS =		ch comments newst oldstript rs rsb rsg \
		rsgab rsgba rsp rst stript

MOREPROGS =	cgeispak cheispak rbleispk rblres rg rgeispak rggeispk \
		rleispak rlres rsbeispk rseispak rsgabpk rsgabr rsgbapk \
		rsgeispk rspeispk rsteispk treds

INPUTS =	file33 file34 file35 file36 file37 file38 file39 file40 \
		file41 file42 file43 file44 file45 file46 file47 file48 \
		file49 file50 file51 file52

.SUFFIXES:	.f .in .out 

.f:
		$(FC) $(FFLAGS) -o $@ $< $(LIB)

.in:
		cp $(D?)$? $@


all :		$(PROGS) $(TESTS) $(INPUTS)

tests :		$(TESTSOUT)
		

#
# Clean up the local directory.
#

clean :
		rm -f *~ *! *.BAK nohup.out

clobber :	clean
		$(RM) -f *.o $(LIB)
		$(RM) -f Makefile
