Skip to content

Commit 9c22170

Browse files
authored
Merge pull request #37 from xianyi/develop
rebase
2 parents 9afc561 + 51019fe commit 9c22170

19 files changed

Lines changed: 4687 additions & 2878 deletions

File tree

Makefile

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,21 @@ ifneq ($(INTERFACE64), 0)
5656
@echo " Use 64 bits int (equivalent to \"-i8\" in Fortran) "
5757
endif
5858
endif
59-
60-
@echo " C compiler ... $(C_COMPILER) (command line : $(CC))"
59+
@$(CC) --version > /dev/null 2>&1;\
60+
if [ $$? -eq 0 ]; then \
61+
cverinfo=`$(CC) --version | sed -n '1p'`; \
62+
echo " C compiler ... $(C_COMPILER) (cmd & version : $${cverinfo})";\
63+
else \
64+
echo " C compiler ... $(C_COMPILER) (command line : $(CC))";\
65+
fi
6166
ifeq ($(NOFORTRAN), $(filter 0,$(NOFORTRAN)))
62-
@echo " Fortran compiler ... $(F_COMPILER) (command line : $(FC))"
67+
@$(FC) --version > /dev/null 2>&1;\
68+
if [ $$? -eq 0 ]; then \
69+
fverinfo=`$(FC) --version | sed -n '1p'`; \
70+
echo " Fortran compiler ... $(F_COMPILER) (cmd & version : $${fverinfo})";\
71+
else \
72+
echo " Fortran compiler ... $(F_COMPILER) (command line : $(FC))";\
73+
fi
6374
endif
6475
ifneq ($(OSNAME), AIX)
6576
@echo -n " Library Name ... $(LIBNAME)"
@@ -68,9 +79,9 @@ else
6879
endif
6980

7081
ifndef SMP
71-
@echo " (Single threaded) "
82+
@echo " (Single-threading) "
7283
else
73-
@echo " (Multi threaded; Max num-threads is $(NUM_THREADS))"
84+
@echo " (Multi-threading; Max num-threads is $(NUM_THREADS))"
7485
endif
7586

7687
ifeq ($(USE_OPENMP), 1)
@@ -317,7 +328,7 @@ lapack-test :
317328
$(MAKE) -j 1 -C $(NETLIB_LAPACK_DIR)/TESTING/EIG xeigtstc xeigtstd xeigtsts xeigtstz
318329
$(MAKE) -j 1 -C $(NETLIB_LAPACK_DIR)/TESTING/LIN xlintstc xlintstd xlintstds xlintstrfd xlintstrfz xlintsts xlintstz xlintstzc xlintstrfs xlintstrfc
319330
ifneq ($(CROSS), 1)
320-
( cd $(NETLIB_LAPACK_DIR)/INSTALL; make all; ./testlsame; ./testslamch; ./testdlamch; \
331+
( cd $(NETLIB_LAPACK_DIR)/INSTALL; $(MAKE) all; ./testlsame; ./testslamch; ./testdlamch; \
321332
./testsecond; ./testdsecnd; ./testieee; ./testversion )
322333
(cd $(NETLIB_LAPACK_DIR); ./lapack_testing.py -r -b TESTING)
323334
endif

0 commit comments

Comments
 (0)