@@ -58,14 +58,14 @@ ifndef NO_LAPACKE
58
58
endif
59
59
60
60
#for install static library
61
- ifndef NO_STATIC
61
+ ifneq ($( NO_STATIC),1)
62
62
@echo Copying the static library to $(DESTDIR)$(OPENBLAS_LIBRARY_DIR)
63
63
@install -pm644 $(LIBNAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
64
64
@cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \
65
65
ln -fs $(LIBNAME) $(LIBPREFIX).$(LIBSUFFIX)
66
66
endif
67
67
#for install shared library
68
- ifndef NO_SHARED
68
+ ifneq ($( NO_SHARED),1)
69
69
@echo Copying the shared library to $(DESTDIR)$(OPENBLAS_LIBRARY_DIR)
70
70
ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS Android Haiku))
71
71
@install -pm755 $(LIBSONAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
@@ -106,14 +106,14 @@ ifndef NO_LAPACKE
106
106
endif
107
107
108
108
#for install static library
109
- ifndef NO_STATIC
109
+ ifneq ($( NO_STATIC),1)
110
110
@echo Copying the static library to $(DESTDIR)$(OPENBLAS_LIBRARY_DIR)
111
111
@installbsd -c -m 644 $(LIBNAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
112
112
@cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \
113
113
ln -fs $(LIBNAME) $(LIBPREFIX).$(LIBSUFFIX)
114
114
endif
115
115
#for install shared library
116
- ifndef NO_SHARED
116
+ ifneq ($( NO_SHARED),1)
117
117
@echo Copying the shared library to $(DESTDIR)$(OPENBLAS_LIBRARY_DIR)
118
118
@installbsd -c -m 755 $(LIBSONAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
119
119
@cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \
@@ -138,7 +138,7 @@ endif
138
138
@echo "SET(OpenBLAS_VERSION \"${VERSION}\")" > "$(DESTDIR)$(OPENBLAS_CMAKE_DIR)/$(OPENBLAS_CMAKE_CONFIG)"
139
139
@echo "SET(OpenBLAS_INCLUDE_DIRS ${OPENBLAS_INCLUDE_DIR})" >> "$(DESTDIR)$(OPENBLAS_CMAKE_DIR)/$(OPENBLAS_CMAKE_CONFIG)"
140
140
141
- ifndef NO_SHARED
141
+ ifneq ($( NO_SHARED),1)
142
142
#ifeq logical or
143
143
ifeq ($(OSNAME), $(filter $(OSNAME),Linux FreeBSD NetBSD OpenBSD DragonFly))
144
144
@echo "SET(OpenBLAS_LIBRARIES ${OPENBLAS_LIBRARY_DIR}/$(LIBPREFIX).so)" >> "$(DESTDIR)$(OPENBLAS_CMAKE_DIR)/$(OPENBLAS_CMAKE_CONFIG)"
0 commit comments