| Line 1... |
Line 1... |
| 1 |
#-*- Makefile -*-
|
1 |
#-*- Makefile -*-
|
| 2 |
include ../../gnuwin32/MkRules
|
2 |
include ../../gnuwin32/MkRules
|
| 3 |
|
3 |
|
| 4 |
all: ../../../$(BINDIR)/Rblas.dll
|
4 |
all: ../../../$(BINDIR)/Rblas.dll
|
| 5 |
|
5 |
|
| 6 |
## suppress lots of warnings: this is a dummy
|
- |
|
| 7 |
blas00.o: blas00.c
|
- |
|
| 8 |
$(CC) -O3 -I../../include -c $< -o $@
|
- |
|
| 9 |
|
- |
|
| 10 |
## Rblas.dll imports xerbla_ from R.dll
|
6 |
## Rblas.dll imports xerbla_ from R.dll
|
| 11 |
## OpenBLAS 0.3.29 includes [dz]gemmtr but ATLAS does not.
|
7 |
## OpenBLAS 0.3.29 includes [dz]gemmtr but ATLAS does not.
|
| 12 |
## So to use latter, copy [dz]gemmtr.f from ../../modules/lapack
|
8 |
## So to use latter, copy [dz]gemmtr.f from ../../modules/lapack
|
| 13 |
## and add dgemmtr.o zgemmtr.o to the dependencies.
|
9 |
## and add dgemmtr.o zgemmtr.o to the dependencies.
|
| 14 |
ifeq "$(USE_ATLAS)" "YES"
|
10 |
ifeq "$(USE_ATLAS)" "YES"
|
| 15 |
../../../$(BINDIR)/Rblas.dll: blas00.o ../../gnuwin32/dllversion.o
|
11 |
../../../$(BINDIR)/Rblas.dll: ../../gnuwin32/dllversion.o
|
| 16 |
@$(ECHO) -------- Building $@ --------
|
12 |
@$(ECHO) -------- Building $@ --------
|
| 17 |
$(DLL) -s -shared $(DLLFLAGS) -o $@ $^ Rblas.def \
|
13 |
$(DLL) -s -shared $(DLLFLAGS) -o $@ $^ Rblas.def \
|
| 18 |
-L../../../$(IMPDIR) -lR -L"$(ATLAS_PATH)" -lf77blas -latlas
|
14 |
-L../../../$(IMPDIR) -lR -L"$(ATLAS_PATH)" -lf77blas -latlas
|
| 19 |
else ifeq "$(USE_OPENBLAS)" "YES"
|
15 |
else ifeq "$(USE_OPENBLAS)" "YES"
|
| 20 |
../../../$(BINDIR)/Rblas.dll: blas00.o ../../gnuwin32/dllversion.o
|
16 |
../../../$(BINDIR)/Rblas.dll: ../../gnuwin32/dllversion.o
|
| 21 |
@$(ECHO) -------- Building $@ --------
|
17 |
@$(ECHO) -------- Building $@ --------
|
| 22 |
$(DLL) -s -shared $(DLLFLAGS) -o $@ $^ Rblas.def \
|
18 |
$(DLL) -s -shared $(DLLFLAGS) -o $@ $^ Rblas.def \
|
| 23 |
-L../../../$(IMPDIR) -lR $(shell $(PKG_CONFIG) --libs openblas)
|
19 |
-L../../../$(IMPDIR) -lR $(shell $(PKG_CONFIG) --libs openblas)
|
| 24 |
else
|
20 |
else
|
| 25 |
../../../$(BINDIR)/Rblas.dll: blas.o blas2.o cmplxblas.o cmplxblas2.o ../../gnuwin32/dllversion.o
|
21 |
../../../$(BINDIR)/Rblas.dll: blas.o blas2.o cmplxblas.o cmplxblas2.o ../../gnuwin32/dllversion.o
|
| 26 |
@$(ECHO) -------- Building $@ --------
|
22 |
@$(ECHO) -------- Building $@ --------
|
| 27 |
$(DLL) -s -shared $(DLLFLAGS) -o $@ $^ Rblas.def -L../../../$(IMPDIR) -lR $(FLIBS)
|
23 |
$(DLL) -s -shared $(DLLFLAGS) -o $@ $^ Rblas.def -L../../../$(IMPDIR) -lR $(FLIBS)
|
| 28 |
endif
|
24 |
endif
|
| 29 |
|
25 |
|
| 30 |
distclean clean:
|
26 |
distclean clean:
|
| 31 |
@$(RM) ../../../$(BINDIR)/Rblas.dll *~ blas00.o blas00.d blas.o cmplxblas.o
|
27 |
@$(RM) ../../../$(BINDIR)/Rblas.dll *~ blas.o cmplxblas.o
|
| 32 |
|
28 |
|