Skip to content

Commit 1153e3a

Browse files
committed
filtered out -fopenmp and fix for mingw
1 parent 7c2c488 commit 1153e3a

File tree

2 files changed

+33
-30
lines changed

2 files changed

+33
-30
lines changed

lapack-netlib/Makefile

+30-28
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,25 @@
66

77
include make.inc
88

9-
all: lapack_install lib blas_testing lapack_testing
9+
all: lapack_install lib blas_testing lapack_testing
1010

1111
lib: lapacklib tmglib
1212
#lib: blaslib variants lapacklib tmglib
1313

1414
clean: cleanlib cleantesting cleanblas_testing cleancblas_testing
1515

1616
lapack_install:
17-
( cd INSTALL; $(MAKE); ./testlsame; ./testslamch; ./testdlamch; \
18-
./testsecond; ./testdsecnd; ./testieee; ./testversion )
17+
( cd INSTALL; $(MAKE) )
18+
# ./testlsame; ./testslamch; ./testdlamch; \
19+
# ./testsecond; ./testdsecnd; ./testieee; ./testversion )
1920

2021
blaslib:
2122
( cd BLAS/SRC; $(MAKE) )
2223

2324
cblaslib:
2425
( cd CBLAS; $(MAKE) )
2526

26-
lapacklib: lapack_install
27+
lapacklib: lapack_install
2728
( cd SRC; $(MAKE) )
2829

2930
lapackelib: lapacklib
@@ -36,35 +37,35 @@ lapacke_example: lapackelib
3637
( cd LAPACKE/example; $(MAKE) )
3738

3839
variants:
39-
( cd SRC/VARIANTS; $(MAKE) )
40+
( cd SRC/VARIANTS ; $(MAKE))
4041

4142
tmglib:
4243
( cd TESTING/MATGEN; $(MAKE) )
4344

44-
lapack_testing: lib
45-
( cd TESTING; $(MAKE) )
45+
lapack_testing: lib
46+
( cd TESTING ; $(MAKE) )
4647
./lapack_testing.py
4748

4849
variants_testing: lib variants
49-
( cd TESTING; rm -f xlintst*; $(MAKE) VARLIB='SRC/VARIANTS/LIB/cholrl.a'; \
50-
mv stest.out stest_cholrl.out; mv dtest.out dtest_cholrl.out; mv ctest.out ctest_cholrl.out; mv ztest.out ztest_cholrl.out )
51-
( cd TESTING; rm -f xlintst*; $(MAKE) VARLIB='SRC/VARIANTS/LIB/choltop.a'; \
52-
mv stest.out stest_choltop.out; mv dtest.out dtest_choltop.out; mv ctest.out ctest_choltop.out; mv ztest.out ztest_choltop.out )
53-
( cd TESTING; rm -f xlintst*; $(MAKE) VARLIB='SRC/VARIANTS/LIB/lucr.a'; \
54-
mv stest.out stest_lucr.out; mv dtest.out dtest_lucr.out; mv ctest.out ctest_lucr.out; mv ztest.out ztest_lucr.out )
55-
( cd TESTING; rm -f xlintst*; $(MAKE) VARLIB='SRC/VARIANTS/LIB/lull.a'; \
56-
mv stest.out stest_lull.out; mv dtest.out dtest_lull.out; mv ctest.out ctest_lull.out; mv ztest.out ztest_lull.out )
57-
( cd TESTING; rm -f xlintst*; $(MAKE) VARLIB='SRC/VARIANTS/LIB/lurec.a'; \
58-
mv stest.out stest_lurec.out; mv dtest.out dtest_lurec.out; mv ctest.out ctest_lurec.out; mv ztest.out ztest_lurec.out )
59-
( cd TESTING; rm -f xlintst*; $(MAKE) VARLIB='SRC/VARIANTS/LIB/qrll.a'; \
60-
mv stest.out stest_qrll.out; mv dtest.out dtest_qrll.out; mv ctest.out ctest_qrll.out; mv ztest.out ztest_qrll.out )
61-
50+
( cd TESTING ; rm -f xlintst* ; $(MAKE) VARLIB='SRC/VARIANTS/LIB/cholrl.a' ; \
51+
mv stest.out stest_cholrl.out ; mv dtest.out dtest_cholrl.out ; mv ctest.out ctest_cholrl.out ; mv ztest.out ztest_cholrl.out )
52+
( cd TESTING ; rm -f xlintst* ; $(MAKE) VARLIB='SRC/VARIANTS/LIB/choltop.a' ; \
53+
mv stest.out stest_choltop.out ; mv dtest.out dtest_choltop.out ; mv ctest.out ctest_choltop.out ; mv ztest.out ztest_choltop.out )
54+
( cd TESTING ; rm -f xlintst* ; $(MAKE) VARLIB='SRC/VARIANTS/LIB/lucr.a' ; \
55+
mv stest.out stest_lucr.out ; mv dtest.out dtest_lucr.out ; mv ctest.out ctest_lucr.out ; mv ztest.out ztest_lucr.out )
56+
( cd TESTING ; rm -f xlintst* ; $(MAKE) VARLIB='SRC/VARIANTS/LIB/lull.a' ; \
57+
mv stest.out stest_lull.out ; mv dtest.out dtest_lull.out ; mv ctest.out ctest_lull.out ; mv ztest.out ztest_lull.out )
58+
( cd TESTING ; rm -f xlintst* ; $(MAKE) VARLIB='SRC/VARIANTS/LIB/lurec.a' ; \
59+
mv stest.out stest_lurec.out ; mv dtest.out dtest_lurec.out ; mv ctest.out ctest_lurec.out ; mv ztest.out ztest_lurec.out )
60+
( cd TESTING ; rm -f xlintst* ; $(MAKE) VARLIB='SRC/VARIANTS/LIB/qrll.a' ; \
61+
mv stest.out stest_qrll.out ; mv dtest.out dtest_qrll.out ; mv ctest.out ctest_qrll.out ; mv ztest.out ztest_qrll.out )
62+
6263
blas_testing:
6364
( cd BLAS/TESTING; $(MAKE) -f Makeblat1 )
6465
( cd BLAS; ./xblat1s > sblat1.out ; \
6566
./xblat1d > dblat1.out ; \
6667
./xblat1c > cblat1.out ; \
67-
./xblat1z > zblat1.out )
68+
./xblat1z > zblat1.out )
6869
( cd BLAS/TESTING; $(MAKE) -f Makeblat2 )
6970
( cd BLAS; ./xblat2s < sblat2.in ; \
7071
./xblat2d < dblat2.in ; \
@@ -74,18 +75,18 @@ blas_testing:
7475
( cd BLAS; ./xblat3s < sblat3.in ; \
7576
./xblat3d < dblat3.in ; \
7677
./xblat3c < cblat3.in ; \
77-
./xblat3z < zblat3.in )
78+
./xblat3z < zblat3.in )
7879

7980
cblas_testing: blaslib
80-
( cd CBLAS; $(MAKE) cblas_testing )
81-
( cd CBLAS; $(MAKE) runtst )
81+
( cd CBLAS ; $(MAKE) cblas_testing)
82+
( cd CBLAS ; $(MAKE) runtst)
8283

8384

8485

8586
html:
8687
@echo "LAPACK HTML PAGES GENRATION with Doxygen"
8788
doxygen DOCS/Doxyfile
88-
@echo "=================="
89+
@echo "=================="
8990
@echo "LAPACK HTML PAGES GENRATED in DOCS/explore-html"
9091
@echo "Usage: open DOCS/explore-html/index.html"
9192
@echo "Online version available at http://www.netlib.org/lapack/explore-html/"
@@ -110,7 +111,7 @@ cleanlib:
110111
( cd LAPACKE; $(MAKE) clean )
111112

112113

113-
cleanblas_testing:
114+
cleanblas_testing:
114115
( cd BLAS/TESTING; $(MAKE) -f Makeblat1 clean )
115116
( cd BLAS/TESTING; $(MAKE) -f Makeblat2 clean )
116117
( cd BLAS/TESTING; $(MAKE) -f Makeblat3 clean )
@@ -124,5 +125,6 @@ cleantesting:
124125
( cd TESTING/EIG; $(MAKE) clean )
125126
( cd TESTING; rm -f xlin* xeig* )
126127

127-
cleanall: cleanlib cleanblas_testing cleancblas_testing cleantesting
128-
rm -f *.a TESTING/*.out INSTALL/test* BLAS/*.out
128+
cleanall: cleanlib cleanblas_testing cleancblas_testing cleantesting
129+
rm -f *.a TESTING/*.out INSTALL/test* BLAS/*.out
130+

lapack-netlib/SRC/Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,7 @@ ZLASRC = $(filter-out $(ZLAPACKOBJS),$(ZLASRC_O))
525525
DSLASRC = $(filter-out $(SLAPACKOBJS),$(DSLASRC_O))
526526
ZCLASRC = $(filter-out $(CLAPACKOBJS),$(ZCLASRC_O))
527527

528+
OPTS1 = $(filter-out -fopenmp, $(OPTS))
528529
#end filter out
529530

530531

@@ -588,10 +589,10 @@ clean:
588589
rm -f *.o DEPRECATED/*.o
589590

590591
.f.o:
591-
$(FORTRAN) $(OPTS) -c -o $@ $<
592+
$(FORTRAN) $(OPTS1) -c -o $@ $<
592593

593594
.F.o:
594-
$(FORTRAN) $(OPTS) -c $< -o $@
595+
$(FORTRAN) $(OPTS1) -c $< -o $@
595596

596597
slaruv.o: slaruv.f ; $(FORTRAN) $(NOOPT) -c -o $@ $<
597598
dlaruv.o: dlaruv.f ; $(FORTRAN) $(NOOPT) -c -o $@ $<

0 commit comments

Comments
 (0)