kusano 7d535a
include ../make.inc
kusano 7d535a
kusano 7d535a
#######################################################################
kusano 7d535a
#  This makefile creates the test programs for the linear equation
kusano 7d535a
#  routines in SuperLU.  The test files are grouped as follows:
kusano 7d535a
#
kusano 7d535a
#       ALINTST -- Auxiliary test routines
kusano 7d535a
#       SLINTST -- Single precision real test routines
kusano 7d535a
#       DLINTST -- Double precision real test routines
kusano 7d535a
#       CLINTST -- Double precision complex test routines
kusano 7d535a
#       ZLINTST -- Double precision complex test routines
kusano 7d535a
#
kusano 7d535a
#  Test programs can be generated for all or some of the four different
kusano 7d535a
#  precisions.  Enter make followed by one or more of the data types
kusano 7d535a
#  desired.  Some examples:
kusano 7d535a
#       make single
kusano 7d535a
#       make single double
kusano 7d535a
#  Alternatively, the command
kusano 7d535a
#       make
kusano 7d535a
#  without any arguments creates all four test programs.
kusano 7d535a
#  The executable files are called
kusano 7d535a
#       stest
kusano 7d535a
#       dtest
kusano 7d535a
#       ctest
kusano 7d535a
#       ztest
kusano 7d535a
#
kusano 7d535a
#  To remove the object files after the executable files have been
kusano 7d535a
#  created, enter
kusano 7d535a
#       make clean
kusano 7d535a
#  On some systems, you can force the source files to be recompiled by
kusano 7d535a
#  entering (for example)
kusano 7d535a
#       make single FRC=FRC
kusano 7d535a
#
kusano 7d535a
#######################################################################
kusano 7d535a
kusano 7d535a
HEADER  = ../SRC
kusano 7d535a
kusano 7d535a
ALINTST = sp_ienv.o
kusano 7d535a
kusano 7d535a
SLINTST = sdrive.o sp_sconvert.o sgst01.o sgst02.o sgst04.o sgst07.o 
kusano 7d535a
kusano 7d535a
DLINTST = ddrive.o sp_dconvert.o dgst01.o dgst02.o dgst04.o dgst07.o 
kusano 7d535a
kusano 7d535a
CLINTST = cdrive.o sp_cconvert.o cgst01.o cgst02.o cgst04.o cgst07.o
kusano 7d535a
kusano 7d535a
ZLINTST = zdrive.o sp_zconvert.o zgst01.o zgst02.o zgst04.o zgst07.o
kusano 7d535a
kusano 7d535a
all: testmat single double complex complex16
kusano 7d535a
kusano 7d535a
testmat:
kusano 7d535a
	(cd MATGEN; $(MAKE))
kusano 7d535a
kusano 7d535a
single: ./stest stest.out
kusano 7d535a
kusano 7d535a
./stest: $(SLINTST) $(ALINTST) $(SUPERLULIB) $(TMGLIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(SLINTST) $(ALINTST) \
kusano 7d535a
        $(TMGLIB) $(SUPERLULIB) $(BLASLIB) -lm -o $@
kusano 7d535a
kusano 7d535a
stest.out: stest stest.csh
kusano 7d535a
	@echo Testing SINGLE PRECISION linear equation routines 
kusano 7d535a
	csh stest.csh
kusano 7d535a
kusano 7d535a
double: ./dtest dtest.out
kusano 7d535a
kusano 7d535a
./dtest: $(DLINTST) $(ALINTST) $(SUPERLULIB) $(TMGLIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(DLINTST) $(ALINTST) \
kusano 7d535a
        $(TMGLIB) $(SUPERLULIB) $(BLASLIB) -lm -o $@
kusano 7d535a
kusano 7d535a
dtest.out: dtest dtest.csh
kusano 7d535a
	@echo Testing DOUBLE PRECISION linear equation routines 
kusano 7d535a
	csh dtest.csh
kusano 7d535a
kusano 7d535a
complex: ./ctest ctest.out
kusano 7d535a
kusano 7d535a
./ctest: $(CLINTST) $(ALINTST) $(SUPERLULIB) $(TMGLIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(CLINTST) $(ALINTST) \
kusano 7d535a
	$(TMGLIB) $(SUPERLULIB) $(BLASLIB) -lm -o $@
kusano 7d535a
kusano 7d535a
ctest.out: ctest ctest.csh
kusano 7d535a
	@echo Testing SINGLE COMPLEX linear equation routines 
kusano 7d535a
	csh ctest.csh
kusano 7d535a
kusano 7d535a
complex16: ./ztest ztest.out
kusano 7d535a
kusano 7d535a
./ztest: $(ZLINTST) $(ALINTST) $(SUPERLULIB) $(TMGLIB)
kusano 7d535a
	$(LOADER) $(LOADOPTS) $(ZLINTST) $(ALINTST) \
kusano 7d535a
	$(TMGLIB) $(SUPERLULIB) $(BLASLIB) -lm -o $@
kusano 7d535a
kusano 7d535a
ztest.out: ztest ztest.csh
kusano 7d535a
	@echo Testing DOUBLE COMPLEX linear equation routines 
kusano 7d535a
	csh ztest.csh
kusano 7d535a
kusano 7d535a
##################################
kusano 7d535a
# Do not optimize this routine   #
kusano 7d535a
##################################
kusano 7d535a
dlamch.o: dlamch.c ; $(CC) -c $<
kusano 7d535a
kusano 7d535a
timer.o:  timer.c ; $(CC) -O -c $<
kusano 7d535a
kusano 7d535a
.c.o:
kusano 7d535a
	$(CC) $(CFLAGS) $(CDEFS) -I$(HEADER) -c $< $(VERBOSE)
kusano 7d535a
kusano 7d535a
clean:	
kusano 7d535a
	rm -f *.o *test *.out
kusano 7d535a