aboutsummaryrefslogtreecommitdiff
path: root/BLAS/TESTING/Makeblat3
blob: e454b34858078985a626981101cb23cfdb9aff01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
include ../../make.inc

#######################################################################
#  This makefile creates the test programs for the BLAS 3 routines.
#  The test files are grouped as follows:
#       SBLAT3 -- Single precision real test routines
#       CBLAT3 -- Single precision complex test routines
#       DBLAT3 -- Double precision real test routines
#       ZBLAT3 -- Double precision complex test routines
#
#  Test programs can be generated for all or some of the four different
#  precisions.  To create the test programs, enter make followed by one
#  or more of the precisions desired.  Some examples:
#       make single
#       make single complex
#       make single double complex complex16
#  Alternatively, the command
#       make
#  without any arguments creates all four test programs.
#  The executable files which are created are called
#       ../xblat3s, ../xblat3d, ../xblat3c, and ../xblat3z
#
#  To remove the object files after the executable files have been
#  created, enter
#       make clean
#  To force the source files to be recompiled, enter, for example,
#       make single FRC=FRC
#
#######################################################################

SBLAT3 = sblat3.o
CBLAT3 = cblat3.o
DBLAT3 = dblat3.o
ZBLAT3 = zblat3.o

all: single double complex complex16

single: ../xblat3s
double: ../xblat3d
complex: ../xblat3c
complex16: ../xblat3z

../xblat3s: $(SBLAT3)
	$(LOADER) $(LOADOPTS) -o $@ $(SBLAT3) $(BLASLIB)

../xblat3c: $(CBLAT3)
	$(LOADER) $(LOADOPTS) -o $@ $(CBLAT3) $(BLASLIB)

../xblat3d: $(DBLAT3)
	$(LOADER) $(LOADOPTS) -o $@ $(DBLAT3) $(BLASLIB)

../xblat3z: $(ZBLAT3)
	$(LOADER) $(LOADOPTS) -o $@ $(ZBLAT3) $(BLASLIB)

$(SBLAT3): $(FRC)
$(CBLAT3): $(FRC)
$(DBLAT3): $(FRC)
$(ZBLAT3): $(FRC)

FRC:
	@FRC=$(FRC)

clean:
	rm -f *.o

.f.o:
	$(FORTRAN) $(OPTS) -c -o $@ $<