| 1 |
include ../../make.inc |
| 2 |
|
| 3 |
####################################################################### |
| 4 |
# This makefile creates the test programs for the BLAS 2 routines. |
| 5 |
# The test files are grouped as follows: |
| 6 |
# SBLAT2 -- Single precision real test routines |
| 7 |
# CBLAT2 -- Single precision complex test routines |
| 8 |
# DBLAT2 -- Double precision real test routines |
| 9 |
# ZBLAT2 -- 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 |
# ../xblat2s, ../xblat2d, ../xblat2c, and ../xblat2z |
| 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 |
SBLAT2 = sblat2.o |
| 32 |
|
| 33 |
CBLAT2 = cblat2.o |
| 34 |
|
| 35 |
DBLAT2 = dblat2.o |
| 36 |
|
| 37 |
ZBLAT2 = zblat2.o |
| 38 |
|
| 39 |
all: single double complex complex16 |
| 40 |
|
| 41 |
single: ../xblat2s |
| 42 |
double: ../xblat2d |
| 43 |
complex: ../xblat2c |
| 44 |
complex16: ../xblat2z |
| 45 |
|
| 46 |
../xblat2s: $(SBLAT2) |
| 47 |
$(LOADER) $(LOADOPTS) $(SBLAT2) \ |
| 48 |
$(BLASLIB) -o ../xblat2s |
| 49 |
|
| 50 |
../xblat2c: $(CBLAT2) |
| 51 |
$(LOADER) $(LOADOPTS) $(CBLAT2) \ |
| 52 |
$(BLASLIB) -o ../xblat2c |
| 53 |
|
| 54 |
../xblat2d: $(DBLAT2) |
| 55 |
$(LOADER) $(LOADOPTS) $(DBLAT2) \ |
| 56 |
$(BLASLIB) -o ../xblat2d |
| 57 |
|
| 58 |
../xblat2z: $(ZBLAT2) |
| 59 |
$(LOADER) $(LOADOPTS) $(ZBLAT2) \ |
| 60 |
$(BLASLIB) -o ../xblat2z |
| 61 |
|
| 62 |
$(SBLAT2): $(FRC) |
| 63 |
$(CBLAT2): $(FRC) |
| 64 |
$(DBLAT2): $(FRC) |
| 65 |
$(ZBLAT2): $(FRC) |
| 66 |
|
| 67 |
FRC: |
| 68 |
@FRC=$(FRC) |
| 69 |
|
| 70 |
clean: |
| 71 |
rm -f *.o |
| 72 |
|
| 73 |
.f.o: |
| 74 |
$(FORTRAN) $(OPTS) -c $< -o $@ |