Mercurial > mxe-octave
annotate src/openblas.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 | 977df9a1bf1d |
children | d9ad49065108 |
rev | line source |
---|---|
3067
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
1 # This file is part of MXE. |
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
2 # See index.html for further information. |
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
3 |
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
4 PKG := openblas |
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
4714 | 6 $(PKG)_VERSION := 0.3.0 |
7 $(PKG)_CHECKSUM := 7f7f54f933ee342167c421ff7fa808174d30e925 | |
3067
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
8 $(PKG)_SUBDIR := OpenBLAS-$($(PKG)_VERSION) |
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
9 $(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz |
4557 | 10 $(PKG)_URL := https://github.com/xianyi/OpenBLAS/archive/v$($(PKG)_VERSION).tar.gz |
3067
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
11 $(PKG)_DEPS := |
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
12 |
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
13 $(PKG)_MAKE_OPTS := PREFIX=$(HOST_PREFIX) DYNAMIC_ARCH=1 NO_LAPACK=1 |
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
14 |
3850
e8571962313f
openblas.mk: also set make options for native builds
John W. Eaton <jwe@octave.org>
parents:
3802
diff
changeset
|
15 ifeq ($(MXE_NATIVE_BUILD),yes) |
e8571962313f
openblas.mk: also set make options for native builds
John W. Eaton <jwe@octave.org>
parents:
3802
diff
changeset
|
16 ## This may also be needed on some systems: NO_AVX2=1 |
e8571962313f
openblas.mk: also set make options for native builds
John W. Eaton <jwe@octave.org>
parents:
3802
diff
changeset
|
17 $(PKG)_MAKE_OPTS += NO_CBLAS=1 USE_THREAD=1 CC=$(MXE_CC) FC=$(MXE_F77) |
e8571962313f
openblas.mk: also set make options for native builds
John W. Eaton <jwe@octave.org>
parents:
3802
diff
changeset
|
18 else |
3802 | 19 $(PKG)_MAKE_OPTS += NO_CBLAS=1 USE_THREAD=1 CC=$(MXE_CC) FC=$(MXE_F77) HOSTCC=gcc HOSTFC=gfortran CROSS=1 CROSS_SUFFIX=$(MXE_TOOL_PREFIX) |
3067
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
20 endif |
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
21 |
4734
80461a9e516c
override default xerbla with version from Octave
John W. Eaton <jwe@octave.org>
parents:
4714
diff
changeset
|
22 ifeq ($(MXE_WINDOWS_BUILD),yes) |
80461a9e516c
override default xerbla with version from Octave
John W. Eaton <jwe@octave.org>
parents:
4714
diff
changeset
|
23 $(PKG)_MAKE_OPTS += EXTRALIB=-lxerbla |
80461a9e516c
override default xerbla with version from Octave
John W. Eaton <jwe@octave.org>
parents:
4714
diff
changeset
|
24 endif |
80461a9e516c
override default xerbla with version from Octave
John W. Eaton <jwe@octave.org>
parents:
4714
diff
changeset
|
25 |
4304
0db33a326eec
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
4273
diff
changeset
|
26 ifeq ($(ENABLE_FORTRAN_INT64),yes) |
3568
f44dd0186692
allow native unixy builds of openblas to work on 64-bit systems
John W. Eaton <jwe@octave.org>
parents:
3508
diff
changeset
|
27 $(PKG)_MAKE_OPTS += BINARY=64 INTERFACE64=1 |
3067
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
28 endif |
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
29 |
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
30 define $(PKG)_UPDATE |
4624 | 31 $(WGET) -q -O- 'https://github.com/xianyi/OpenBLAS/tags' | \ |
32 $(SED) -n 's|.*releases/tag/v\([^"]*\).*|\1|p' | $(SORT) -Vr | \ | |
33 head -1 | |
3067
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
34 endef |
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
35 |
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
36 define $(PKG)_BUILD |
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
37 $(MAKE) -C '$(1)' -j '$(JOBS)' $($(PKG)_MAKE_OPTS) |
3681
f0b359d91bf0
openblas: update to 0.2.10
John Donoghue <john.donoghue@ieee.org>
parents:
3568
diff
changeset
|
38 $(MAKE) -C '$(1)' -j 1 $($(PKG)_MAKE_OPTS) install |
3067
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
39 endef |