comparison src/openblas.mk @ 3067:bdb4b64f2ff8

Add initial openblas codebase to mxe * src/openblas.mk: New file. * index.html: openblas 0.2.6 package information.
author John Donoghue <john.donoghue@ieee.org>
date Tue, 18 Jun 2013 21:04:49 -0400
parents
children 31241ea2a057
comparison
equal deleted inserted replaced
3066:23e3e2955cf5 3067:bdb4b64f2ff8
1 # This file is part of MXE.
2 # See index.html for further information.
3
4 PKG := openblas
5 $(PKG)_IGNORE :=
6 $(PKG)_CHECKSUM := f5c040660cb83630f9ac3e34a907889dcfac3415
7 $(PKG)_SUBDIR := OpenBLAS-$($(PKG)_VERSION)
8 $(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz
9 $(PKG)_URL := http://github.com/xianyi/OpenBLAS/archive/v$($(PKG)_VERSION).tar.gz
10 $(PKG)_DEPS :=
11
12 $(PKG)_MAKE_OPTS := PREFIX=$(HOST_PREFIX) DYNAMIC_ARCH=1 NO_LAPACK=1
13
14 ifneq ($(MXE_NATIVE_BUILD),yes)
15 $(PKG)_MAKE_OPTS += NO_CBLAS=1 USE_THREAD=0 CC=$(MXE_CC) FC=$(MXE_F77) HOSTCC=gcc HOSTFC=gfortran CROSS=1
16 endif
17
18 ifeq ($(ENABLE_64),yes)
19 $(PKG)_MAKE_OPTS += BINARY=64
20 else
21 $(PKG)_MAKE_OPTS += BINARY=32
22 endif
23
24 define $(PKG)_UPDATE
25 echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2;
26 echo $($(PKG)_VERSION)
27 endef
28
29 define $(PKG)_BUILD
30 $(MAKE) -C '$(1)' -j '$(JOBS)' $($(PKG)_MAKE_OPTS)
31 $(MAKE) -C '$(1)' -j 1 PREFIX='$(HOST_PREFIX)' install
32 if [ $(BUILD_SHARED) = yes ]; then \
33 $(INSTALL) $(HOST_LIBDIR)/libopenblas.dll $(HOST_BINDIR)/; \
34 fi
35 endef