annotate src/openblas.mk @ 3548:26bd1899d7a7

build_packages.m: update for general-1.3.4 * build_packages.m: update general to 1.3.4.
author John Donoghue <john.donoghue@ieee.org>
date Sun, 23 Feb 2014 20:31:49 -0500
parents a6b2b4f9532e
children f44dd0186692
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 :=
3480
13be64f9f16d move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents: 3240
diff changeset
6 $(PKG)_VERSION := 0.2.8
3240
d99f6d03618c Update openblas to 0.2.8
John Donoghue <john.donoghue@ieee.org>
parents: 3096
diff changeset
7 $(PKG)_CHECKSUM := d012ebc2b8dcd3e95f667dff08318a81479a47c3
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
bdb4b64f2ff8 Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
10 $(PKG)_URL := http://github.com/xianyi/OpenBLAS/archive/v$($(PKG)_VERSION).tar.gz
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
bdb4b64f2ff8 Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
15 ifneq ($(MXE_NATIVE_BUILD),yes)
3508
a6b2b4f9532e openblas: Pass CROSS_SUFFIX to Make.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
16 $(PKG)_MAKE_OPTS += NO_CBLAS=1 USE_THREAD=0 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
17 endif
bdb4b64f2ff8 Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
18
bdb4b64f2ff8 Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
19 ifeq ($(ENABLE_64),yes)
bdb4b64f2ff8 Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
20 $(PKG)_MAKE_OPTS += BINARY=64
bdb4b64f2ff8 Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
21 else
bdb4b64f2ff8 Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
22 $(PKG)_MAKE_OPTS += BINARY=32
bdb4b64f2ff8 Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
23 endif
bdb4b64f2ff8 Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
24
bdb4b64f2ff8 Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
25 define $(PKG)_UPDATE
bdb4b64f2ff8 Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
26 echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2;
bdb4b64f2ff8 Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
27 echo $($(PKG)_VERSION)
bdb4b64f2ff8 Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
28 endef
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)_BUILD
bdb4b64f2ff8 Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
31 $(MAKE) -C '$(1)' -j '$(JOBS)' $($(PKG)_MAKE_OPTS)
3078
31241ea2a057 Updates for openblas compile
John Donoghue <john.donoghue@ieee.org>
parents: 3067
diff changeset
32 $(MAKE) -C '$(1)' -j 1 PREFIX='$(HOST_PREFIX)' $($(PKG)_MAKE_OPTS) install
3067
bdb4b64f2ff8 Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
33 if [ $(BUILD_SHARED) = yes ]; then \
3096
3b9908a79b71 Create/verify HOST_BINDIR before installing openblas.dll
John Donoghue <john.donoghue@ieee.org>
parents: 3078
diff changeset
34 $(INSTALL) -d $(HOST_BINDIR); \
3067
bdb4b64f2ff8 Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
35 $(INSTALL) $(HOST_LIBDIR)/libopenblas.dll $(HOST_BINDIR)/; \
bdb4b64f2ff8 Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
36 fi
bdb4b64f2ff8 Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
37 endef