annotate src/cblas.mk @ 2988:aca8511e7751

qt.mk: link to correct files in bin directory
author John W. Eaton <jwe@octave.org>
date Thu, 16 May 2013 13:32:57 -0400
parents b5321bdec505
children dabfd7db980c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 1946
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 := cblas
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
1611
7b1b796a871f update package cblas
Mark Brand <mabrand@mabrand.nl>
parents: 1415
diff changeset
6 $(PKG)_CHECKSUM := d6970cf52592ef67674a61c78bbd055a4e9d4680
1374
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
7 $(PKG)_SUBDIR := CBLAS
1385
08b296ec290e cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents: 1376
diff changeset
8 $(PKG)_FILE := $(PKG).tgz
08b296ec290e cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents: 1376
diff changeset
9 $(PKG)_URL := http://www.netlib.org/blas/blast-forum/$($(PKG)_FILE)
1735
0066ab1bad44 improved download URLs of packages: blas cblas gcc-mpc lapack
Volker Grabsch <vog@notjusthosting.com>
parents: 1611
diff changeset
10 $(PKG)_URL_2 := ftp://ftp.eq.uc.pt/pub/software/math/netlib/blas/blast-forum/$($(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
1385
08b296ec290e cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents: 1376
diff changeset
13 define $(PKG)_UPDATE
08b296ec290e cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents: 1376
diff changeset
14 echo 1
08b296ec290e cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents: 1376
diff changeset
15 endef
1374
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
16
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
17 define $(PKG)_BUILD
1385
08b296ec290e cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents: 1376
diff changeset
18 cp '$(1)/Makefile.LINUX' '$(1)/Makefile.MINGW32'
08b296ec290e cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents: 1376
diff changeset
19 $(SED) -i 's,CBDIR =.*,CBDIR = $(1),g' '$(1)/Makefile.MINGW32'
08b296ec290e cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents: 1376
diff changeset
20 $(SED) -i 's,FC =.*,FC = $(TARGET)-gfortran,g' '$(1)/Makefile.MINGW32'
1415
ed62f43e8977 bugfix for package cblas: replace "make" with $(MAKE)
Tony Theodore <tonyt@logyst.com>
parents: 1390
diff changeset
21 $(SED) -i 's, make , $(MAKE) ,g' '$(1)/Makefile'
1611
7b1b796a871f update package cblas
Mark Brand <mabrand@mabrand.nl>
parents: 1415
diff changeset
22 rm '$(1)/Makefile.in'
1946
c6831f324cc3 improved coding style regarding creation of symlinks
Volker Grabsch <vog@notjusthosting.com>
parents: 1735
diff changeset
23 ln -sf '$(1)/Makefile.MINGW32' '$(1)/Makefile.in'
1385
08b296ec290e cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents: 1376
diff changeset
24 mkdir '$(1)/MINGW32'
08b296ec290e cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents: 1376
diff changeset
25 $(MAKE) -C '$(1)' -j '$(JOBS)' alllib
08b296ec290e cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents: 1376
diff changeset
26 cd '$(1)' && $(TARGET)-ar cr libcblas.a src/*.o
1374
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
27
1385
08b296ec290e cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents: 1376
diff changeset
28 $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
1390
7fae546007a1 fix dummy permissions (664 -> 644)
Volker Grabsch <vog@notjusthosting.com>
parents: 1385
diff changeset
29 $(INSTALL) -m644 '$(1)/libcblas.a' '$(PREFIX)/$(TARGET)/lib/'
1385
08b296ec290e cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents: 1376
diff changeset
30 $(INSTALL) -d '$(PREFIX)/$(TARGET)/include'
1611
7b1b796a871f update package cblas
Mark Brand <mabrand@mabrand.nl>
parents: 1415
diff changeset
31 $(INSTALL) -m644 '$(1)/include/cblas.h' '$(PREFIX)/$(TARGET)/include/'
7b1b796a871f update package cblas
Mark Brand <mabrand@mabrand.nl>
parents: 1415
diff changeset
32 $(INSTALL) -m644 '$(1)/include/cblas_f77.h' '$(PREFIX)/$(TARGET)/include/'
1374
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
33 endef