Mercurial > mxe-octave
annotate src/lapack.mk @ 3534:b86f53e6429f
correct URL for stable-octave release candidate
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 17 Feb 2014 12:05:56 -0500 |
parents | f5cc3c3a40e6 |
children | c21ca79d7980 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2142
diff
changeset
|
1 # This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See index.html for further information. |
1376
896bc60de2a9
improvements for packages: cblas lapack suitesparse
Alois Schlögl <alois.schloegl@gmail.com>
parents:
1374
diff
changeset
|
3 |
1374
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
4 PKG := lapack |
3486
f5cc3c3a40e6
Update lapack to 3.5.0
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
5 $(PKG)_VERSION := 3.5.0 |
f5cc3c3a40e6
Update lapack to 3.5.0
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
6 $(PKG)_CHECKSUM := 5870081889bf5d15fd977993daab29cf3c5ea970 |
1385
08b296ec290e
cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents:
1376
diff
changeset
|
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
1499
9e587ca588dc
remove $($PKG)_SUBDIR) from FILE and URL defintions
Mark Brand <mabrand@mabrand.nl>
parents:
1447
diff
changeset
|
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tgz |
1385
08b296ec290e
cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents:
1376
diff
changeset
|
9 $(PKG)_URL := http://www.netlib.org/$(PKG)/$($(PKG)_FILE) |
1735
0066ab1bad44
improved download URLs of packages: blas cblas gcc-mpc lapack
Volker Grabsch <vog@notjusthosting.com>
parents:
1551
diff
changeset
|
10 $(PKG)_URL_2 := ftp://ftp.eq.uc.pt/pub/software/math/netlib/$(PKG)/$($(PKG)_FILE) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3025
diff
changeset
|
11 $(PKG)_DEPS := |
1374
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
12 |
3246
0e705514af1b
Update lapack so compile correctly with openblas library (when enabled)
John Donoghue <john.donoghue@ieee.org>
parents:
3072
diff
changeset
|
13 ifeq ($(ENABLE_OPENBLAS),yes) |
0e705514af1b
Update lapack so compile correctly with openblas library (when enabled)
John Donoghue <john.donoghue@ieee.org>
parents:
3072
diff
changeset
|
14 $(PKG)_DEPS += openblas |
0e705514af1b
Update lapack so compile correctly with openblas library (when enabled)
John Donoghue <john.donoghue@ieee.org>
parents:
3072
diff
changeset
|
15 |
0e705514af1b
Update lapack so compile correctly with openblas library (when enabled)
John Donoghue <john.donoghue@ieee.org>
parents:
3072
diff
changeset
|
16 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) |
0e705514af1b
Update lapack so compile correctly with openblas library (when enabled)
John Donoghue <john.donoghue@ieee.org>
parents:
3072
diff
changeset
|
17 $(PKG)_BLAS_CONFIG_OPTS := -DBLAS_LIBRARIES=$(HOST_BINDIR)/libopenblas.dll |
0e705514af1b
Update lapack so compile correctly with openblas library (when enabled)
John Donoghue <john.donoghue@ieee.org>
parents:
3072
diff
changeset
|
18 else |
0e705514af1b
Update lapack so compile correctly with openblas library (when enabled)
John Donoghue <john.donoghue@ieee.org>
parents:
3072
diff
changeset
|
19 $(PKG)_BLAS_CONFIG_OPTS := -DBLAS_LIBRARIES=openblas |
0e705514af1b
Update lapack so compile correctly with openblas library (when enabled)
John Donoghue <john.donoghue@ieee.org>
parents:
3072
diff
changeset
|
20 endif |
0e705514af1b
Update lapack so compile correctly with openblas library (when enabled)
John Donoghue <john.donoghue@ieee.org>
parents:
3072
diff
changeset
|
21 endif |
0e705514af1b
Update lapack so compile correctly with openblas library (when enabled)
John Donoghue <john.donoghue@ieee.org>
parents:
3072
diff
changeset
|
22 |
3015
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
2997
diff
changeset
|
23 ifeq ($(ENABLE_64),yes) |
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
2997
diff
changeset
|
24 $(PKG)_DEFAULT_INTEGER_8_FLAG := -fdefault-integer-8 |
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
2997
diff
changeset
|
25 endif |
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
2997
diff
changeset
|
26 |
1374
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
27 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2464
diff
changeset
|
28 $(WGET) -q -O- 'http://www.netlib.org/lapack/' | \ |
1551
906b674321d5
package lapack: fix update macro
Mark Brand <mabrand@mabrand.nl>
parents:
1499
diff
changeset
|
29 $(SED) -n 's_.*>LAPACK, version \([0-9]\.[0-9]\.[0-9]\).*_\1_ip' | \ |
1374
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
30 head -1 |
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
31 endef |
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
32 |
3025
dea92be54fc8
Updated lapack for additional native mingw options
John Donoghue <john.donoghue@ieee.org>
parents:
3023
diff
changeset
|
33 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) |
3072
050e922d4003
[MSVC] enable LAPACK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
34 ifeq ($(MXE_SYSTEM),msvc) |
050e922d4003
[MSVC] enable LAPACK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
35 define $(PKG)_BUILD |
050e922d4003
[MSVC] enable LAPACK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
36 cd '$(1)' && \ |
050e922d4003
[MSVC] enable LAPACK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
37 cp INSTALL/make.inc.gfortran make.inc && \ |
050e922d4003
[MSVC] enable LAPACK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
38 sed -i -e 's/\(FORTRAN[ ]*\)=.*/\1= $(MXE_F77)/' \ |
3282
0f01d4dc9644
* src/lapack.mk: replace LOADER variable for MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3246
diff
changeset
|
39 -e 's/\(LOADER[ ]*\)=.*/\1= $(MXE_F77)/' \ |
3072
050e922d4003
[MSVC] enable LAPACK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
40 -e 's/\(CC[ ]*\)=.*/\1= $(MXE_CC)/' \ |
050e922d4003
[MSVC] enable LAPACK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
41 -e 's/\(CFLAGS[ ]*\)=.*/\1= -O2/' make.inc |
050e922d4003
[MSVC] enable LAPACK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
42 |
050e922d4003
[MSVC] enable LAPACK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
43 $(MAKE) -C '$(1)' -j '$(JOBS)' VERBOSE=1 lapacklib |
050e922d4003
[MSVC] enable LAPACK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
44 |
050e922d4003
[MSVC] enable LAPACK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
45 if [ $(BUILD_SHARED) = yes ]; then \ |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3282
diff
changeset
|
46 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_F77)' '$(1)/liblapack.a' --install '$(INSTALL)' --libdir '$(3)$(HOST_LIBDIR)' --bindir '$(3)$(HOST_BINDIR)' -lblas; \ |
3072
050e922d4003
[MSVC] enable LAPACK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
47 fi |
050e922d4003
[MSVC] enable LAPACK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
48 |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3282
diff
changeset
|
49 $(INSTALL) -d '$(3)$(HOST_LIBDIR)/pkgconfig' |
3072
050e922d4003
[MSVC] enable LAPACK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
50 $(SED) -e 's/@LAPACK_VERSION@/$($(PKG)_VERSION)/' \ |
050e922d4003
[MSVC] enable LAPACK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
51 -e 's,@prefix@,$(HOST_PREFIX),' \ |
050e922d4003
[MSVC] enable LAPACK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
52 -e 's,@libdir@,$${prefix}/lib,' '$(1)/lapack.pc.in' > '$(1)/lapack.pc' |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3282
diff
changeset
|
53 $(INSTALL) '$(1)/lapack.pc' '$(3)$(HOST_LIBDIR)/pkgconfig/' |
3072
050e922d4003
[MSVC] enable LAPACK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
54 |
050e922d4003
[MSVC] enable LAPACK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
55 endef |
050e922d4003
[MSVC] enable LAPACK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
56 else |
1374
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
57 define $(PKG)_BUILD |
2093
fc6612a2917b
package lapack: build with cmake
Mark Brand <mabrand@mabrand.nl>
parents:
2091
diff
changeset
|
58 cd '$(1)' && cmake \ |
3025
dea92be54fc8
Updated lapack for additional native mingw options
John Donoghue <john.donoghue@ieee.org>
parents:
3023
diff
changeset
|
59 -G 'MSYS Makefiles' \ |
dea92be54fc8
Updated lapack for additional native mingw options
John Donoghue <john.donoghue@ieee.org>
parents:
3023
diff
changeset
|
60 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
dea92be54fc8
Updated lapack for additional native mingw options
John Donoghue <john.donoghue@ieee.org>
parents:
3023
diff
changeset
|
61 -DCMAKE_Fortran_FLAGS='$($(PKG)_DEFAULT_INTEGER_8_FLAG)' \ |
3246
0e705514af1b
Update lapack so compile correctly with openblas library (when enabled)
John Donoghue <john.donoghue@ieee.org>
parents:
3072
diff
changeset
|
62 $($(PKG)_BLAS_CONFIG_OPTS) \ |
3025
dea92be54fc8
Updated lapack for additional native mingw options
John Donoghue <john.donoghue@ieee.org>
parents:
3023
diff
changeset
|
63 . |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3282
diff
changeset
|
64 $(MAKE) -C '$(1)/SRC' -j '$(JOBS)' VERBOSE=1 install DESTDIR='$(3)' |
3025
dea92be54fc8
Updated lapack for additional native mingw options
John Donoghue <john.donoghue@ieee.org>
parents:
3023
diff
changeset
|
65 |
dea92be54fc8
Updated lapack for additional native mingw options
John Donoghue <john.donoghue@ieee.org>
parents:
3023
diff
changeset
|
66 if [ $(BUILD_SHARED) = yes ]; then \ |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3282
diff
changeset
|
67 $(INSTALL) '$(1)/lib/liblapack.dll.a' '$(3)$(HOST_LIBDIR)/'; \ |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3282
diff
changeset
|
68 $(INSTALL) '$(1)/lib/liblapack.lib' '$(3)$(HOST_LIBDIR)/'; \ |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3282
diff
changeset
|
69 $(INSTALL) '$(1)/bin/liblapack.dll' '$(3)$(HOST_BINDIR)/'; \ |
3025
dea92be54fc8
Updated lapack for additional native mingw options
John Donoghue <john.donoghue@ieee.org>
parents:
3023
diff
changeset
|
70 fi |
dea92be54fc8
Updated lapack for additional native mingw options
John Donoghue <john.donoghue@ieee.org>
parents:
3023
diff
changeset
|
71 if [ $(BUILD_STATIC) = yes ]; then \ |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3282
diff
changeset
|
72 $(INSTALL) '$(1)/lib/liblapack.a' '$(3)$(HOST_LIBDIR)/'; \ |
3025
dea92be54fc8
Updated lapack for additional native mingw options
John Donoghue <john.donoghue@ieee.org>
parents:
3023
diff
changeset
|
73 fi |
dea92be54fc8
Updated lapack for additional native mingw options
John Donoghue <john.donoghue@ieee.org>
parents:
3023
diff
changeset
|
74 |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3282
diff
changeset
|
75 $(INSTALL) -d '$(3)$(HOST_LIBDIR)/pkgconfig' |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3282
diff
changeset
|
76 $(INSTALL) '$(1)/lapack.pc' '$(3)$(HOST_LIBDIR)/pkgconfig/' |
3025
dea92be54fc8
Updated lapack for additional native mingw options
John Donoghue <john.donoghue@ieee.org>
parents:
3023
diff
changeset
|
77 |
dea92be54fc8
Updated lapack for additional native mingw options
John Donoghue <john.donoghue@ieee.org>
parents:
3023
diff
changeset
|
78 endef |
3072
050e922d4003
[MSVC] enable LAPACK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
79 endif |
3025
dea92be54fc8
Updated lapack for additional native mingw options
John Donoghue <john.donoghue@ieee.org>
parents:
3023
diff
changeset
|
80 else |
dea92be54fc8
Updated lapack for additional native mingw options
John Donoghue <john.donoghue@ieee.org>
parents:
3023
diff
changeset
|
81 define $(PKG)_BUILD |
dea92be54fc8
Updated lapack for additional native mingw options
John Donoghue <john.donoghue@ieee.org>
parents:
3023
diff
changeset
|
82 cd '$(1)' && cmake \ |
2142
276f0c6d3cca
packages cgal, eigen, lapack: use CMAKE_TOOLCHAIN_FILE
Tony Theodore <tonyt@logyst.com>
parents:
2113
diff
changeset
|
83 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
2997 | 84 -DCMAKE_AR='$(MXE_AR)' \ |
85 -DCMAKE_RANLIB='$(MXE_RANLIB)' \ | |
3015
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
2997
diff
changeset
|
86 -DCMAKE_Fortran_FLAGS='$($(PKG)_DEFAULT_INTEGER_8_FLAG)' \ |
3246
0e705514af1b
Update lapack so compile correctly with openblas library (when enabled)
John Donoghue <john.donoghue@ieee.org>
parents:
3072
diff
changeset
|
87 $($(PKG)_BLAS_CONFIG_OPTS) \ |
2093
fc6612a2917b
package lapack: build with cmake
Mark Brand <mabrand@mabrand.nl>
parents:
2091
diff
changeset
|
88 . |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3282
diff
changeset
|
89 $(MAKE) -C '$(1)/SRC' -j '$(JOBS)' VERBOSE=1 install DESTDIR='$(3)' |
1374
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
90 endef |
3025
dea92be54fc8
Updated lapack for additional native mingw options
John Donoghue <john.donoghue@ieee.org>
parents:
3023
diff
changeset
|
91 endif |