You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/lapack.mk

34 lines
1.3 KiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

# This file is part of MXE. See LICENSE.md for licensing information.
PKG := lapack
$(PKG)_WEBSITE := https://www.netlib.org/lapack/
$(PKG)_DESCR := Reference LAPACKLinear Algebra PACKage
$(PKG)_IGNORE :=
$(PKG)_VERSION := 3.8.0
$(PKG)_CHECKSUM := deb22cc4a6120bff72621155a9917f485f96ef8319ac074a7afbc68aab88bcf6
$(PKG)_GH_CONF := Reference-LAPACK/lapack/tags,v
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_DEPS := cc cblas
define $(PKG)_BUILD
cd '$(BUILD_DIR)' && '$(TARGET)-cmake' '$(SOURCE_DIR)' \
-DCMAKE_AR='$(PREFIX)/bin/$(TARGET)-ar' \
-DCMAKE_RANLIB='$(PREFIX)/bin/$(TARGET)-ranlib' \
-DBLAS_LIBRARIES=blas \
-DCBLAS=OFF \
-DLAPACKE=ON
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
# if blas/cblas routines are used directly, add to pkg-config call
'$(TARGET)-gfortran' \
-W -Wall -Werror -pedantic \
'$(PWD)/src/$(PKG)-test.f' -o '$(PREFIX)/$(TARGET)/bin/test-lapack.exe' \
`'$(TARGET)-pkg-config' $(PKG) --cflags --libs`
'$(TARGET)-gfortran' \
-W -Wall -Werror -pedantic \
'$(PWD)/src/$(PKG)-test.c' -o '$(PREFIX)/$(TARGET)/bin/test-lapacke.exe' \
`'$(TARGET)-pkg-config' lapacke cblas --cflags --libs`
endef