@@ -28,9 +28,6 @@ SUBDIRS_ALL = $(SUBDIRS) test ctest utest exports benchmark ../laswp ../bench
2828.PHONY : all libs netlib $(RELA ) test ctest shared install
2929.NOTPARALLEL : all libs $(RELA ) prof lapack-test install blas-test
3030
31- # source: https://stackoverflow.com/questions/52674/simplest-way-to-reverse-the-order-of-strings-in-a-make-variable/14260762#14260762
32- reverse = $(if $(wordlist 2,2,$(1 ) ) ,$(call reverse,$(wordlist 2,$(words $(1 ) ) ,$(1 ) ) ) $(firstword $(1 ) ) ,$(1 ) )
33-
3431all :: libs netlib $(RELA ) tests shared
3532 @echo
3633 @echo " OpenBLAS build complete. ($( LIB_COMPONENTS) )"
@@ -84,8 +81,8 @@ ifeq ($(OSNAME), Darwin)
8481 @echo "install_name_tool -id /new/absolute/path/to/$(LIBDYNNAME) $(LIBDYNNAME)"
8582endif
8683 @echo
87- @echo "To install the library, you can run"
88- @echo " make $(call reverse,$(MAKEFLAGS)) PREFIX=/path/to/your/installation install"
84+ @echo "To install the library, you can run \"make PREFIX=/path/to/your/installation install\". "
85+ @echo
8986
9087shared :
9188ifndef NO_SHARED
@@ -245,7 +242,7 @@ ifndef NOFORTRAN
245242 -@echo "CC = $(CC)" >> $(NETLIB_LAPACK_DIR)/make.inc
246243 -@echo "override CFLAGS = $(LAPACK_CFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
247244 -@echo "ARCH = $(AR)" >> $(NETLIB_LAPACK_DIR)/make.inc
248- -@echo "ARCHFLAGS = -ru" >> $(NETLIB_LAPACK_DIR)/make.inc
245+ -@echo "ARCHFLAGS = $(ARFLAGS) -ru" >> $(NETLIB_LAPACK_DIR)/make.inc
249246 -@echo "RANLIB = $(RANLIB)" >> $(NETLIB_LAPACK_DIR)/make.inc
250247 -@echo "LAPACKLIB = ../$(LIBNAME)" >> $(NETLIB_LAPACK_DIR)/make.inc
251248 -@echo "TMGLIB = ../$(LIBNAME)" >> $(NETLIB_LAPACK_DIR)/make.inc
0 commit comments