2018-10-31 13:47:52 +00:00
|
|
|
PYODIDE_ROOT=$(abspath ..)
|
|
|
|
include ../Makefile.envs
|
|
|
|
|
|
|
|
CLAPACK_VERSION=3.2.1
|
|
|
|
|
|
|
|
ROOT=$(abspath .)
|
|
|
|
|
|
|
|
SRC=$(ROOT)/CLAPACK-WA
|
|
|
|
|
|
|
|
|
|
|
|
all: $(SRC)/lapack_WA.bc
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf CLAPACK-WA
|
|
|
|
|
|
|
|
$(SRC)/lapack_WA.bc: $(SRC)/Makefile
|
|
|
|
# We build BLAS/LAPACK only for target.
|
|
|
|
# On host we include -LCLAPACK-WA path which has no effect on host.
|
|
|
|
# On target it gets rewritten by pywasmcross to the full patch of
|
|
|
|
# blas_WA.bc, lapack_WA.bc which are linked statically in scipy
|
|
|
|
# in each module that needs them.
|
|
|
|
emmake make -C CLAPACK-WA/
|
|
|
|
|
|
|
|
|
|
|
|
$(SRC)/Makefile:
|
|
|
|
wget -q -O clapack.tgz http://www.netlib.org/clapack/clapack.tgz
|
2018-10-31 17:08:57 +00:00
|
|
|
md5sum --quiet --check checksums || (rm -f clapack.tgz; false)
|
2018-10-31 13:47:52 +00:00
|
|
|
tar xzf clapack.tgz
|
|
|
|
rm -rf $(SRC)
|
|
|
|
mv CLAPACK-$(CLAPACK_VERSION) $(SRC)
|
|
|
|
( \
|
|
|
|
cd $(SRC); \
|
|
|
|
(cat ../patches/*.patch | patch -p1) \
|
|
|
|
)
|
2019-10-17 15:29:32 +00:00
|
|
|
touch $(SRC)/F2CLIBS/libf2c/arith.h
|