mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 14:37:16 +08:00
24 lines
758 B
Smalltalk
24 lines
758 B
Smalltalk
|
include Make.inc
|
||
|
|
||
|
all: libatlas.so libf77blas.so libcblas.so libblas.so liblapack.so.3.4.0
|
||
|
|
||
|
|
||
|
libatlas.so: libatlas.a
|
||
|
ld $(LDFLAGS) -shared -soname $@ -o $@ --whole-archive libatlas.a \
|
||
|
--no-whole-archive -lc $(LIBS)
|
||
|
|
||
|
libf77blas.so : libf77blas.a libatlas.so
|
||
|
ld $(LDFLAGS) -shared -soname libblas.so.3 -o $@ --whole-archive \
|
||
|
libf77blas.a --no-whole-archive $(F77SYSLIB) -L. -latlas
|
||
|
|
||
|
libcblas.so : libcblas.a libatlas.so
|
||
|
ld $(LDFLAGS) -shared -soname $@ -o $@ --whole-archive libcblas.a \
|
||
|
-L. -latlas
|
||
|
|
||
|
libblas.so: libf77blas.so
|
||
|
ln -s $< $@
|
||
|
|
||
|
liblapack.so.3.4.0 : liblapack.a libcblas.so libblas.so
|
||
|
ld $(LDFLAGS) -shared -soname liblapack.so.3 -o $@ --whole-archive \
|
||
|
liblapack.a --no-whole-archive $(F77SYSLIB) -L. -lcblas -lblas -lgcc_s
|