Debian Codegraph @

BLAS/SRC/Makefile

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 #######################################################################
2 # This is the makefile to create a library for the BLAS.
3 # The files are grouped as follows:
4 #
5 # SBLAS1 -- Single precision real BLAS routines
6 # CBLAS1 -- Single precision complex BLAS routines
7 # DBLAS1 -- Double precision real BLAS routines
8 # ZBLAS1 -- Double precision complex BLAS routines
9 #
10 # CB1AUX -- Real BLAS routines called by complex routines
11 # ZB1AUX -- D.P. real BLAS routines called by d.p. complex
12 # routines
13 #
14 # ALLBLAS -- Auxiliary routines for Level 2 and 3 BLAS
15 #
16 # SBLAS2 -- Single precision real BLAS2 routines
17 # CBLAS2 -- Single precision complex BLAS2 routines
18 # DBLAS2 -- Double precision real BLAS2 routines
19 # ZBLAS2 -- Double precision complex BLAS2 routines
20 #
21 # SBLAS3 -- Single precision real BLAS3 routines
22 # CBLAS3 -- Single precision complex BLAS3 routines
23 # DBLAS3 -- Double precision real BLAS3 routines
24 # ZBLAS3 -- Double precision complex BLAS3 routines
25 #
26 # The library can be set up to include routines for any combination
27 # of the four precisions. To create or add to the library, enter make
28 # followed by one or more of the precisions desired. Some examples:
29 # make single
30 # make single complex
31 # make single double complex complex16
32 # Note that these commands are not safe for parallel builds.
33 #
34 # Alternatively, the commands
35 # make all
36 # or
37 # make
38 # without any arguments creates a library of all four precisions.
39 # The name of the library is held in BLASLIB, which is set in the
40 # top-level make.inc
41 #
42 # To remove the object files after the library is created, enter
43 # make cleanobj
44 # To force the source files to be recompiled, enter, for example,
45 # make single FRC=FRC
46 #
47 #---------------------------------------------------------------------
48 #
49 # Edward Anderson, University of Tennessee
50 # March 26, 1990
51 # Susan Ostrouchov, Last updated September 30, 1994
52 # ejr, May 2006.
53 #
54 #######################################################################
55
56 TOPSRCDIR = ../..
57 include $(TOPSRCDIR)/make.inc
58
59 .SUFFIXES: .F .f90 .o
60 .F.o:
61 $(FC) $(FFLAGS) -c -o $@ $<
62 .f90.o:
63 $(FC) $(FFLAGS) -c -o $@ $<
64
65 .PHONY: all
66 all: $(BLASLIB)
67
68 #---------------------------------------------------------
69 # Comment out the next 6 definitions if you already have
70 # the Level 1 BLAS.
71 #---------------------------------------------------------
72 SBLAS1 = isamax.o sasum.o saxpy.o scopy.o sdot.o snrm2.o \
73 srot.o srotg.o sscal.o sswap.o sdsdot.o srotmg.o srotm.o
74 $(SBLAS1): $(FRC)
75
76 CBLAS1 = scabs1.o scasum.o scnrm2.o icamax.o caxpy.o ccopy.o \
77 cdotc.o cdotu.o csscal.o crotg.o cscal.o cswap.o csrot.o
78 $(CBLAS1): $(FRC)
79
80 DBLAS1 = idamax.o dasum.o daxpy.o dcopy.o ddot.o dnrm2.o \
81 drot.o drotg.o dscal.o dsdot.o dswap.o drotmg.o drotm.o
82 $(DBLAS1): $(FRC)
83
84 ZBLAS1 = dcabs1.o dzasum.o dznrm2.o izamax.o zaxpy.o zcopy.o \
85 zdotc.o zdotu.o zdscal.o zrotg.o zscal.o zswap.o zdrot.o
86 $(ZBLAS1): $(FRC)
87
88 CB1AUX = isamax.o sasum.o saxpy.o scopy.o snrm2.o sscal.o
89 $(CB1AUX): $(FRC)
90
91 ZB1AUX = idamax.o dasum.o daxpy.o dcopy.o dnrm2.o dscal.o
92 $(ZB1AUX): $(FRC)
93
94 #---------------------------------------------------------------------
95 # The following line defines auxiliary routines needed by both the
96 # Level 2 and Level 3 BLAS. Comment it out only if you already have
97 # both the Level 2 and 3 BLAS.
98 #---------------------------------------------------------------------
99 ALLBLAS = lsame.o xerbla.o xerbla_array.o
100 $(ALLBLAS): $(FRC)
101
102 #---------------------------------------------------------
103 # Comment out the next 4 definitions if you already have
104 # the Level 2 BLAS.
105 #---------------------------------------------------------
106 SBLAS2 = sgemv.o sgbmv.o ssymv.o ssbmv.o sspmv.o \
107 strmv.o stbmv.o stpmv.o strsv.o stbsv.o stpsv.o \
108 sger.o ssyr.o sspr.o ssyr2.o sspr2.o
109 $(SBLAS2): $(FRC)
110
111 CBLAS2 = cgemv.o cgbmv.o chemv.o chbmv.o chpmv.o \
112 ctrmv.o ctbmv.o ctpmv.o ctrsv.o ctbsv.o ctpsv.o \
113 cgerc.o cgeru.o cher.o chpr.o cher2.o chpr2.o
114 $(CBLAS2): $(FRC)
115
116 DBLAS2 = dgemv.o dgbmv.o dsymv.o dsbmv.o dspmv.o \
117 dtrmv.o dtbmv.o dtpmv.o dtrsv.o dtbsv.o dtpsv.o \
118 dger.o dsyr.o dspr.o dsyr2.o dspr2.o
119 $(DBLAS2): $(FRC)
120
121 ZBLAS2 = zgemv.o zgbmv.o zhemv.o zhbmv.o zhpmv.o \
122 ztrmv.o ztbmv.o ztpmv.o ztrsv.o ztbsv.o ztpsv.o \
123 zgerc.o zgeru.o zher.o zhpr.o zher2.o zhpr2.o
124 $(ZBLAS2): $(FRC)
125
126 #---------------------------------------------------------
127 # Comment out the next 4 definitions if you already have
128 # the Level 3 BLAS.
129 #---------------------------------------------------------
130 SBLAS3 = sgemm.o ssymm.o ssyrk.o ssyr2k.o strmm.o strsm.o sgemmtr.o
131 $(SBLAS3): $(FRC)
132
133 CBLAS3 = cgemm.o csymm.o csyrk.o csyr2k.o ctrmm.o ctrsm.o \
134 chemm.o cherk.o cher2k.o cgemmtr.o
135 $(CBLAS3): $(FRC)
136
137 DBLAS3 = dgemm.o dsymm.o dsyrk.o dsyr2k.o dtrmm.o dtrsm.o dgemmtr.o
138 $(DBLAS3): $(FRC)
139
140 ZBLAS3 = zgemm.o zsymm.o zsyrk.o zsyr2k.o ztrmm.o ztrsm.o \
141 zhemm.o zherk.o zher2k.o zgemmtr.o
142 $(ZBLAS3): $(FRC)
143
144 ALLOBJ = $(SBLAS1) $(SBLAS2) $(SBLAS3) $(DBLAS1) $(DBLAS2) $(DBLAS3) \
145 $(CBLAS1) $(CBLAS2) $(CBLAS3) $(ZBLAS1) \
146 $(ZBLAS2) $(ZBLAS3) $(ALLBLAS)
147
148 $(BLASLIB): $(ALLOBJ)
149 $(AR) $(ARFLAGS) $@ $^
150 $(RANLIB) $@
151
152 .PHONY: single double complex complex16
153 single: $(SBLAS1) $(ALLBLAS) $(SBLAS2) $(SBLAS3)
154 $(AR) $(ARFLAGS) $(BLASLIB) $^
155 $(RANLIB) $(BLASLIB)
156
157 double: $(DBLAS1) $(ALLBLAS) $(DBLAS2) $(DBLAS3)
158 $(AR) $(ARFLAGS) $(BLASLIB) $^
159 $(RANLIB) $(BLASLIB)
160
161 complex: $(CBLAS1) $(CB1AUX) $(ALLBLAS) $(CBLAS2) $(CBLAS3)
162 $(AR) $(ARFLAGS) $(BLASLIB) $^
163 $(RANLIB) $(BLASLIB)
164
165 complex16: $(ZBLAS1) $(ZB1AUX) $(ALLBLAS) $(ZBLAS2) $(ZBLAS3)
166 $(AR) $(ARFLAGS) $(BLASLIB) $^
167 $(RANLIB) $(BLASLIB)
168
169 FRC:
170 @FRC=$(FRC)
171
172 .PHONY: clean cleanobj cleanlib
173 clean: cleanobj cleanlib
174 cleanobj:
175 rm -f *.o
176 cleanlib:
177 #rm -f $(BLASLIB) # May point to a system lib, e.g. -lblas