Skip to content

Commit 95ed812

Browse files
authored
Merge pull request #4290 from martin-frbg/issue4275-2
Put more build information into Makefile.conf_last
2 parents 273f4e8 + 3ad2700 commit 95ed812

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,25 @@ ifeq ($(DYNAMIC_OLDER), 1)
210210
@echo DYNAMIC_OLDER=1 >> Makefile.conf_last
211211
endif
212212
endif
213+
@echo TARGET=$(CORE) >> Makefile.conf_last
213214
ifdef USE_THREAD
214215
@echo USE_THREAD=$(USE_THREAD) >> Makefile.conf_last
215216
endif
217+
ifdef SMP
218+
ifdef NUM_THREADS
219+
@echo NUM_THREADS=$(NUM_THREADS) >> Makefile.conf_last
220+
else
221+
@echo NUM_THREADS=$(NUM_CORES) >> Makefile.conf_last
222+
endif
223+
endif
224+
ifeq ($(USE_OPENMP),1)
225+
@echo USE_OPENMP=1 >> Makefile.conf_last
226+
endif
227+
ifeq ($(INTERFACE64),1)
228+
@echo INTERFACE64=1 >> Makefile.conf_last
229+
endif
230+
@echo THELIBNAME=$(LIBNAME) >> Makefile.conf_last
231+
@echo THELIBSONAME=$(LIBSONAME) >> Makefile.conf_last
216232
@-ln -fs $(LIBNAME) $(LIBPREFIX).$(LIBSUFFIX)
217233
@touch lib.grd
218234

Makefile.install

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ export GOTOBLAS_MAKEFILE = 1
33
-include $(TOPDIR)/Makefile.conf_last
44
include ./Makefile.system
55

6+
ifdef THELIBNAME
7+
LIBNAME=$(THELIBNAME)
8+
LIBSONAME=$(THELIBSONAME)
9+
endif
10+
ifeq ($(INTERFACE64),1)
11+
USE_64BITINT=1
12+
endif
13+
614
PREFIX ?= /opt/OpenBLAS
715

816
OPENBLAS_INCLUDE_DIR := $(PREFIX)/include

0 commit comments

Comments
 (0)