Mercurial > mxe-octave
annotate src/blas.mk @ 4734:80461a9e516c
override default xerbla with version from Octave
* mingw-blas-1-xerbla.patch, blas.mk: Build default libxerbla lib.
* mingw-lapack-1-xerbla.patch, lapack.mk: Use external libxerbla.
* mingw-openblas-1-xerbla.patch, openblas.mk: Likewise.
* src/qrupdate-1-fixes.patch: Likewise.
* default-octave.mk: Also install libxerbla.dll as libxerbla-octave.dll.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 21 Jun 2018 01:32:10 -0400 |
parents | 8c99783a675e |
children | e617e117f94d |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
1765
diff
changeset
|
1 # This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See index.html for further information. |
1374
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
3 |
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
4 PKG := blas |
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
4629
8c99783a675e
* src/blas.mk: update verssion/checksum for to v3.8.0
John Donoghue
parents:
4580
diff
changeset
|
6 $(PKG)_VERSION := 3.8.0 |
8c99783a675e
* src/blas.mk: update verssion/checksum for to v3.8.0
John Donoghue
parents:
4580
diff
changeset
|
7 $(PKG)_CHECKSUM := ee21dc04e563f50ccf173c957f98d2ff47702cb4 |
4046
4e4f1eaa0aa3
blas.mk: Fix pkg subdir name.
John W. Eaton <jwe@octave.org>
parents:
4045
diff
changeset
|
8 $(PKG)_SUBDIR := BLAS-$($(PKG)_VERSION) |
4045 | 9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tgz |
1385
08b296ec290e
cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents:
1374
diff
changeset
|
10 $(PKG)_URL := http://www.netlib.org/$(PKG)/$($(PKG)_FILE) |
1735
0066ab1bad44
improved download URLs of packages: blas cblas gcc-mpc lapack
Volker Grabsch <vog@notjusthosting.com>
parents:
1390
diff
changeset
|
11 $(PKG)_URL_2 := ftp://ftp.eq.uc.pt/pub/software/math/netlib/$(PKG)/$($(PKG)_FILE) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3021
diff
changeset
|
12 $(PKG)_DEPS := |
1374
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
13 |
4304
0db33a326eec
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
4110
diff
changeset
|
14 ifeq ($(ENABLE_FORTRAN_INT64),yes) |
3015
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
15 $(PKG)_DEFAULT_INTEGER_8_FLAG := -fdefault-integer-8 |
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
16 endif |
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
17 |
1374
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
18 define $(PKG)_UPDATE |
4580
5875a3c3404c
update additional PKG_UPDATE rules
John Donoghue <john.donoghue@ieee.org>
parents:
4415
diff
changeset
|
19 $(WGET) -q -O- ftp://ftp.eq.uc.pt/pub/software/math/netlib/blas/ | \ |
5875a3c3404c
update additional PKG_UPDATE rules
John Donoghue <john.donoghue@ieee.org>
parents:
4415
diff
changeset
|
20 $(SED) -n 's|.*>blas-\([0-9\.]*\).tgz<.*|\1|p' | \ |
5875a3c3404c
update additional PKG_UPDATE rules
John Donoghue <john.donoghue@ieee.org>
parents:
4415
diff
changeset
|
21 tail -1 |
1374
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
22 endef |
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
23 |
4734
80461a9e516c
override default xerbla with version from Octave
John W. Eaton <jwe@octave.org>
parents:
4629
diff
changeset
|
24 $(PKG)_TARGETS = BLASLIB=libblas.a |
80461a9e516c
override default xerbla with version from Octave
John W. Eaton <jwe@octave.org>
parents:
4629
diff
changeset
|
25 ifeq ($(MXE_WINDOWS_BUILD),yes) |
80461a9e516c
override default xerbla with version from Octave
John W. Eaton <jwe@octave.org>
parents:
4629
diff
changeset
|
26 $(PKG)_TARGETS += XERBLALIB=libxerbla.a |
80461a9e516c
override default xerbla with version from Octave
John W. Eaton <jwe@octave.org>
parents:
4629
diff
changeset
|
27 $(PKG)_LIBXERBLA = -lxerbla |
80461a9e516c
override default xerbla with version from Octave
John W. Eaton <jwe@octave.org>
parents:
4629
diff
changeset
|
28 endif |
80461a9e516c
override default xerbla with version from Octave
John W. Eaton <jwe@octave.org>
parents:
4629
diff
changeset
|
29 |
1374
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
30 define $(PKG)_BUILD |
3015
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
31 $(SED) -i 's,$$(FORTRAN),$(MXE_F77) $(MXE_F77_PICFLAG) $($(PKG)_DEFAULT_INTEGER_8_FLAG),g' '$(1)/Makefile' |
4734
80461a9e516c
override default xerbla with version from Octave
John W. Eaton <jwe@octave.org>
parents:
4629
diff
changeset
|
32 $(MAKE) -C '$(1)' ARCH=$(MXE_AR) RANLIB=$(MXE_RANLIB) $($(PKG)_TARGETS) -j '$(JOBS)' |
1374
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
33 |
2860
c2976176699e
Generate shared libraries for blas.
John W. Eaton <jwe@octave.org>
parents:
2365
diff
changeset
|
34 if [ $(BUILD_SHARED) = yes ]; then \ |
4734
80461a9e516c
override default xerbla with version from Octave
John W. Eaton <jwe@octave.org>
parents:
4629
diff
changeset
|
35 if [ -n "$($(PKG)_LIBXERBLA)" ]; then \ |
80461a9e516c
override default xerbla with version from Octave
John W. Eaton <jwe@octave.org>
parents:
4629
diff
changeset
|
36 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_F77)' '$(1)/libxerbla.a' --install '$(INSTALL)' --libdir '$(3)$(HOST_LIBDIR)' --bindir '$(3)$(HOST_BINDIR)'; \ |
80461a9e516c
override default xerbla with version from Octave
John W. Eaton <jwe@octave.org>
parents:
4629
diff
changeset
|
37 $(INSTALL) '$(3)/$(HOST_BINDIR)/libxerbla.dll' '$(3)$(HOST_BINDIR)/libxerbla-blas.dll'; \ |
80461a9e516c
override default xerbla with version from Octave
John W. Eaton <jwe@octave.org>
parents:
4629
diff
changeset
|
38 fi; \ |
80461a9e516c
override default xerbla with version from Octave
John W. Eaton <jwe@octave.org>
parents:
4629
diff
changeset
|
39 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_F77)' '$(1)/libblas.a' --install '$(INSTALL)' --libdir '$(3)$(HOST_LIBDIR)' --bindir '$(3)$(HOST_BINDIR)' $($(PKG)_LIBXERBLA); \ |
2860
c2976176699e
Generate shared libraries for blas.
John W. Eaton <jwe@octave.org>
parents:
2365
diff
changeset
|
40 fi |
3021
6ea3d6ad4f44
Update for build static compile option
John Donoghue <john.donoghue@ieee.org>
parents:
3015
diff
changeset
|
41 |
6ea3d6ad4f44
Update for build static compile option
John Donoghue <john.donoghue@ieee.org>
parents:
3015
diff
changeset
|
42 if [ $(BUILD_STATIC) = yes ]; then \ |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
43 $(INSTALL) -d '$(3)$(HOST_LIBDIR)'; \ |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
44 $(INSTALL) '$(1)/libblas.a' '$(3)$(HOST_LIBDIR)/'; \ |
4734
80461a9e516c
override default xerbla with version from Octave
John W. Eaton <jwe@octave.org>
parents:
4629
diff
changeset
|
45 if [ -n "$($(PKG)_LIBXERBLA)" ]; then \ |
80461a9e516c
override default xerbla with version from Octave
John W. Eaton <jwe@octave.org>
parents:
4629
diff
changeset
|
46 $(INSTALL) '$(1)/libxerbla.a' '$(3)$(HOST_LIBDIR)/'; \ |
80461a9e516c
override default xerbla with version from Octave
John W. Eaton <jwe@octave.org>
parents:
4629
diff
changeset
|
47 fi; \ |
3021
6ea3d6ad4f44
Update for build static compile option
John Donoghue <john.donoghue@ieee.org>
parents:
3015
diff
changeset
|
48 fi |
1374
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
49 endef |