1 |
jds |
129 |
# |
2 |
|
|
# Jamfile to build generic Ascend4 blas library |
3 |
|
|
# (see http://www.freetype.org/jam/index.html) |
4 |
|
|
# |
5 |
|
|
# This file is part of the Ascend Build System. |
6 |
|
|
# |
7 |
|
|
# Copyright (C) 2005 Jerry D. St.Clair |
8 |
|
|
# |
9 |
|
|
# The Ascend Build System is free software; you can redistribute |
10 |
|
|
# it and/or modify it under the terms of the GNU General Public |
11 |
|
|
# License as published by the Free Software Foundation; either |
12 |
|
|
# version 2 of the License, or (at your option) any later version. |
13 |
|
|
# |
14 |
|
|
# This program is distributed in hope that it will be useful, |
15 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 |
|
|
# GNU General Public License for more details. |
18 |
|
|
# |
19 |
|
|
# You should have received a copy of the GNU General Public License |
20 |
|
|
# along with the program; if not, write to the Free Software |
21 |
|
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139 USA. |
22 |
|
|
# Check the file named COPYING. |
23 |
|
|
#--------------------------------------------------------------------------- |
24 |
|
|
# |
25 |
|
|
# UNDER CONSTRUCTION |
26 |
|
|
# |
27 |
|
|
# This Jamfile builds the generic Ascend blas functionality as a |
28 |
|
|
# static library. This library comprises a blas subset common to |
29 |
|
|
# minos, lsode, and other F77 codes connected to Ascend. |
30 |
|
|
# |
31 |
|
|
# If you have a blas library (e.g. libblas.a or libblas.lib) tuned |
32 |
|
|
# to your hardware, use it instead. To do that, set the BLASLIB |
33 |
|
|
# variable in ../jam/Jamrules to point that library's location |
34 |
|
|
# (e.g., /usr/lib/libblas.a or c:\\blas\\lib\\libblas.lib) |
35 |
|
|
# |
36 |
|
|
# This file is part of the ASCEND jam build system rooted at ../../jam. |
37 |
|
|
# See ../../jam/ReadMe.txt for more information. |
38 |
|
|
# |
39 |
|
|
#------------------------------------------------------------------------- |
40 |
|
|
# |
41 |
|
|
# File-specific Build Instructions |
42 |
|
|
# |
43 |
|
|
# 1. Follow the general instructions in ../../jam/ReadMe.txt for your platform. |
44 |
|
|
# |
45 |
|
|
# 2. To compile blas only, run: |
46 |
|
|
# jam blas |
47 |
|
|
# |
48 |
|
|
#--------------------------------------------------------------------------- |
49 |
|
|
|
50 |
|
|
SubDir TOP blas ; |
51 |
|
|
if ! $(JAMRULES_ALREADY_SEEN) |
52 |
|
|
{ |
53 |
|
|
include $(TOP)$(SLASH)jam$(SLASH)Jamrules ; |
54 |
|
|
} |
55 |
|
|
|
56 |
|
|
DEPENDS all : libs blas ; |
57 |
|
|
NOTFILE libs blas ; |
58 |
|
|
|
59 |
|
|
#========================================================================= |
60 |
|
|
# blas module |
61 |
|
|
#========================================================================= |
62 |
|
|
if $(FORTRAN) |
63 |
|
|
{ |
64 |
|
|
ASC_BLAS_SOURCES = |
65 |
|
|
dasum.f |
66 |
|
|
daxpy.f |
67 |
|
|
dcopy.f |
68 |
|
|
ddot.f |
69 |
|
|
dnrm2.f |
70 |
|
|
dscal.f |
71 |
|
|
idamax.f |
72 |
|
|
dtrsv.f |
73 |
|
|
dswap.f |
74 |
|
|
dgemv.f |
75 |
|
|
dtrsm.f |
76 |
|
|
xerbla.f |
77 |
|
|
lsame.f |
78 |
|
|
dgemm.f |
79 |
|
|
; |
80 |
|
|
|
81 |
|
|
LOCATE_TARGET = $(BUILD_DIR)$(SLASH)blas ; |
82 |
|
|
|
83 |
|
|
Library $(ASC_BLAS_LIBROOT) : $(ASC_BLAS_SOURCES) ; |
84 |
jds |
216 |
# MakeLocate $(ASC_BLAS_LIB) : $(BUILD_DIR) ; |
85 |
jds |
129 |
|
86 |
|
|
DEPENDS libs blas : $(ASC_BLAS_LIB) ; |
87 |
|
|
} |
88 |
|
|
else |
89 |
|
|
{ |
90 |
|
|
Echo ERROR bulding blas - FORTRAN is required but not defined. ; |
91 |
|
|
} |