Mercurial > mxe-octave
annotate src/blas.mk @ 3015:ec6f91539788
initial support for --enable-64
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 04 Jun 2013 12:33:15 -0400 |
parents | b6c7244a2f66 |
children | 6ea3d6ad4f44 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
1765
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. |
1374
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
3 |
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
4 PKG := blas |
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
1765
b7d33ba09080
update package: blas
Volker Grabsch <vog@notjusthosting.com>
parents:
1735
diff
changeset
|
6 $(PKG)_CHECKSUM := a643b737c30a0a5b823e11e33c9d46a605122c61 |
1374
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
7 $(PKG)_SUBDIR := BLAS |
1385
08b296ec290e
cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents:
1374
diff
changeset
|
8 $(PKG)_FILE := $(PKG).tgz |
08b296ec290e
cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents:
1374
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:
1390
diff
changeset
|
10 $(PKG)_URL_2 := ftp://ftp.eq.uc.pt/pub/software/math/netlib/$(PKG)/$($(PKG)_FILE) |
1374
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
11 $(PKG)_DEPS := gcc |
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
12 |
3015
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
13 ifeq ($(ENABLE_64),yes) |
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
14 $(PKG)_DEFAULT_INTEGER_8_FLAG := -fdefault-integer-8 |
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
15 endif |
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
16 |
1374
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
17 define $(PKG)_UPDATE |
1385
08b296ec290e
cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents:
1374
diff
changeset
|
18 echo 1 |
1374
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
19 endef |
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
20 |
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
21 define $(PKG)_BUILD |
3015
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
22 $(SED) -i 's,$$(FORTRAN),$(MXE_F77) $(MXE_F77_PICFLAG) $($(PKG)_DEFAULT_INTEGER_8_FLAG),g' '$(1)/Makefile' |
1385
08b296ec290e
cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents:
1374
diff
changeset
|
23 $(MAKE) -C '$(1)' -j '$(JOBS)' |
2997 | 24 cd '$(1)' && $(MXE_AR) cr libblas.a *.o |
1374
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
25 |
2860
c2976176699e
Generate shared libraries for blas.
John W. Eaton <jwe@octave.org>
parents:
2365
diff
changeset
|
26 if [ $(BUILD_SHARED) = yes ]; then \ |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
2997
diff
changeset
|
27 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_F77)' '$(1)/libblas.a' --install '$(INSTALL)' --libdir '$(HOST_LIBDIR)' --bindir '$(HOST_BINDIR)'; \ |
2860
c2976176699e
Generate shared libraries for blas.
John W. Eaton <jwe@octave.org>
parents:
2365
diff
changeset
|
28 fi |
1374
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
29 endef |