diff options
author | Tony Theodore <tonyt@logyst.com> | 2012-05-01 16:31:25 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2012-05-01 16:31:25 (GMT) |
commit | ae7bd20d37d539dc35a2d9b549320321a1802264 (patch) | |
tree | e6b606d21fad5473669470bf822c5ba1fdfd772f | |
parent | ae7b6c23c1c626e0f30608d6cb91607c4184dbaf (diff) | |
download | mxe-ae7bd20d37d539dc35a2d9b549320321a1802264.zip mxe-ae7bd20d37d539dc35a2d9b549320321a1802264.tar.gz mxe-ae7bd20d37d539dc35a2d9b549320321a1802264.tar.bz2 |
package lapack: use $(TARGET)-ranlib and add test program
-rw-r--r-- | src/lapack-test.f | 10 | ||||
-rw-r--r-- | src/lapack.mk | 6 |
2 files changed, 16 insertions, 0 deletions
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 |