@@ -48,6 +48,7 @@ ifndef NO_CBLAS
48
48
@sed 's/common/openblas_config/g' cblas.h > "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/cblas.h"
49
49
endif
50
50
51
+ ifneq (($OSNAME), AIX)
51
52
ifndef NO_LAPACKE
52
53
@echo Copying LAPACKE header files to $(DESTDIR)$(OPENBLAS_INCLUDE_DIR)
53
54
@-install -pm644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke.h "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke.h"
@@ -72,6 +73,7 @@ ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS Android Haiku))
72
73
ln -fs $(LIBSONAME) $(LIBPREFIX).so ; \
73
74
ln -fs $(LIBSONAME) $(LIBPREFIX).so.$(MAJOR_VERSION)
74
75
endif
76
+
75
77
ifeq ($(OSNAME), $(filter $(OSNAME),FreeBSD OpenBSD NetBSD DragonFly))
76
78
@cp $(LIBSONAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
77
79
@cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \
@@ -93,6 +95,33 @@ ifeq ($(OSNAME), CYGWIN_NT)
93
95
endif
94
96
endif
95
97
98
+ else
99
+ #install on AIX has different options syntax
100
+ ifndef NO_LAPACKE
101
+ @echo Copying LAPACKE header files to $(DESTDIR)$(OPENBLAS_INCLUDE_DIR)
102
+ @-install -M 644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke.h "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke.h"
103
+ @-install -M 644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke_config.h "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke_config.h"
104
+ @-install -M 644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke_mangling_with_flags.h.in "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke_mangling.h"
105
+ @-install -M 644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke_utils.h "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke_utils.h"
106
+ endif
107
+
108
+ #for install static library
109
+ ifndef NO_STATIC
110
+ @echo Copying the static library to $(DESTDIR)$(OPENBLAS_LIBRARY_DIR)
111
+ @install -M 644 $(LIBNAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
112
+ @cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \
113
+ ln -fs $(LIBNAME) $(LIBPREFIX).$(LIBSUFFIX)
114
+ endif
115
+ #for install shared library
116
+ ifndef NO_SHARED
117
+ @echo Copying the shared library to $(DESTDIR)$(OPENBLAS_LIBRARY_DIR)
118
+ @install -M 755 $(LIBSONAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
119
+ @cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \
120
+ ln -fs $(LIBSONAME) $(LIBPREFIX).so ; \
121
+ ln -fs $(LIBSONAME) $(LIBPREFIX).so.$(MAJOR_VERSION)
122
+ endif
123
+
124
+ endif
96
125
97
126
#Generating openblas.pc
98
127
@echo Generating openblas.pc in "$(DESTDIR)$(OPENBLAS_PKGCONFIG_DIR)"
0 commit comments