From ae7bd20d37d539dc35a2d9b549320321a1802264 Mon Sep 17 00:00:00 2001 From: Tony Theodore Date: Wed, 2 May 2012 02:31:25 +1000 Subject: package lapack: use $(TARGET)-ranlib and add test program --- src/lapack-test.f | 10 ++++++++++ src/lapack.mk | 6 ++++++ 2 files changed, 16 insertions(+) create mode 100644 src/lapack-test.f diff --git a/src/lapack-test.f b/src/lapack-test.f new file mode 100644 index 0000000..9872d3b --- /dev/null +++ b/src/lapack-test.f @@ -0,0 +1,10 @@ +* +* This file is part of MXE. +* See index.html for further information. +* + INTEGER MAJOR, MINOR, PATCH +* + CALL ILAVER ( MAJOR,MINOR, PATCH ) + WRITE(*,*) "LAPACK ",MAJOR,".",MINOR,".",PATCH +* + END diff --git a/src/lapack.mk b/src/lapack.mk index 28edd27..54aa0fd 100644 --- a/src/lapack.mk +++ b/src/lapack.mk @@ -20,6 +20,12 @@ define $(PKG)_BUILD cd '$(1)' && cmake \ -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ -DCMAKE_AR='$(PREFIX)/bin/$(TARGET)-ar' \ + -DCMAKE_RANLIB='$(PREFIX)/bin/$(TARGET)-ranlib' \ . $(MAKE) -C '$(1)/SRC' -j '$(JOBS)' install + + '$(TARGET)-gfortran' \ + -W -Wall -Werror -pedantic \ + '$(2).f' -o '$(PREFIX)/$(TARGET)/bin/test-lapack.exe' \ + -llapack endef -- cgit v0.12