| 1 |
include ../../make.inc |
| 2 |
|
| 3 |
####################################################################### |
| 4 |
# This makefile creates the test programs for the BLAS 1 routines. |
| 5 |
# The test files are grouped as follows: |
| 6 |
# SBLAT1 -- Single precision real test routines |
| 7 |
# CBLAT1 -- Single precision complex test routines |
| 8 |
# DBLAT1 -- Double precision real test routines |
| 9 |
# ZBLAT1 -- Double precision complex test routines |
| 10 |
# |
| 11 |
# Test programs can be generated for all or some of the four different |
| 12 |
# precisions. To create the test programs, enter make followed by one |
| 13 |
# or more of the precisions desired. Some examples: |
| 14 |
# make single |
| 15 |
# make single complex |
| 16 |
# make single double complex complex16 |
| 17 |
# Alternatively, the command |
| 18 |
# make |
| 19 |
# without any arguments creates all four test programs. |
| 20 |
# The executable files which are created are called |
| 21 |
# ../xblat1s, ../xblat1d, ../xblat1c, and ../xblat1z |
| 22 |
# |
| 23 |
# To remove the object files after the executable files have been |
| 24 |
# created, enter |
| 25 |
# make clean |
| 26 |
# To force the source files to be recompiled, enter, for example, |
| 27 |
# make single FRC=FRC |
| 28 |
# |
| 29 |
####################################################################### |
| 30 |
|
| 31 |
SBLAT1 = sblat1.o |
| 32 |
|
| 33 |
CBLAT1 = cblat1.o |
| 34 |
|
| 35 |
DBLAT1 = dblat1.o |
| 36 |
|
| 37 |
ZBLAT1 = zblat1.o |
| 38 |
|
| 39 |
all: single double complex complex16 |
| 40 |
|
| 41 |
single: ../xblat1s |
| 42 |
double: ../xblat1d |
| 43 |
complex: ../xblat1c |
| 44 |
complex16: ../xblat1z |
| 45 |
|
| 46 |
../xblat1s: $(SBLAT1) |
| 47 |
$(LOADER) $(LOADOPTS) $(SBLAT1) \ |
| 48 |
$(BLASLIB) -o ../xblat1s |
| 49 |
|
| 50 |
../xblat1c: $(CBLAT1) |
| 51 |
$(LOADER) $(LOADOPTS) $(CBLAT1) \ |
| 52 |
$(BLASLIB) -o ../xblat1c |
| 53 |
|
| 54 |
../xblat1d: $(DBLAT1) |
| 55 |
$(LOADER) $(LOADOPTS) $(DBLAT1) \ |
| 56 |
$(BLASLIB) -o ../xblat1d |
| 57 |
|
| 58 |
../xblat1z: $(ZBLAT1) |
| 59 |
$(LOADER) $(LOADOPTS) $(ZBLAT1) \ |
| 60 |
$(BLASLIB) -o ../xblat1z |
| 61 |
|
| 62 |
$(SBLAT1): $(FRC) |
| 63 |
$(CBLAT1): $(FRC) |
| 64 |
$(DBLAT1): $(FRC) |
| 65 |
$(ZBLAT1): $(FRC) |
| 66 |
|
| 67 |
FRC: |
| 68 |
@FRC=$(FRC) |
| 69 |
|
| 70 |
clean: |
| 71 |
rm -f *.o |
| 72 |
|
| 73 |
.f.o: |
| 74 |
$(FORTRAN) $(OPTS) -c $< -o $@ |