Static library is still built for shared lib generation.
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
ifeq ($(NOFORTRAN), 1)
$(error OpenBLAS: Detecting fortran compiler failed. Please install fortran compiler, e.g. gfortran, ifort, openf90.)
endif
+ifeq ($(NO_STATIC), 1)
+ifeq ($(NO_SHARED), 1)
+ $(error OpenBLAS: neither static nor shared are enabled.)
+endif
+endif
@-ln -fs $(LIBNAME) $(LIBPREFIX).$(LIBSUFFIX)
@for d in $(SUBDIRS) ; \
do if test -d $$d; then \
endif
#for install static library
+ifndef NO_STATIC
@echo Copying the static library to $(DESTDIR)$(OPENBLAS_LIBRARY_DIR)
@install -pm644 $(LIBNAME) $(DESTDIR)$(OPENBLAS_LIBRARY_DIR)
@cd $(DESTDIR)$(OPENBLAS_LIBRARY_DIR) ; \
ln -fs $(LIBNAME) $(LIBPREFIX).$(LIBSUFFIX)
+endif
#for install shared library
ifndef NO_SHARED
@echo Copying the shared library to $(DESTDIR)$(OPENBLAS_LIBRARY_DIR)
# automatically detected by the the script.
# NUM_THREADS = 24
+# if you don't need to install the static library, please comment it in.
+# NO_STATIC = 1
+
# if you don't need generate the shared library, please comment it in.
# NO_SHARED = 1