summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhang Xianyi <traits.zhang@gmail.com>2017-04-11 11:56:10 +0800
committerZhang Xianyi <traits.zhang@gmail.com>2017-04-11 12:01:18 +0800
commit90dd190a6d658be780f257dbd4994f9798a0b983 (patch)
tree382533e598f8dccc9babc0ee001b134f92e9e4e8
parentab9ec4ab4e57106f4e92f63175017aa372713724 (diff)
downloadopenblas-90dd190a6d658be780f257dbd4994f9798a0b983.tar.gz
openblas-90dd190a6d658be780f257dbd4994f9798a0b983.tar.bz2
openblas-90dd190a6d658be780f257dbd4994f9798a0b983.zip
Build shared library for Android.
-rw-r--r--Makefile2
-rw-r--r--Makefile.install2
-rw-r--r--exports/Makefile2
3 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 2071e1099..6883e51cf 100644
--- a/Makefile
+++ b/Makefile
@@ -81,7 +81,7 @@ endif
shared :
ifndef NO_SHARED
-ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS))
+ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS Android))
@$(MAKE) -C exports so
@ln -fs $(LIBSONAME) $(LIBPREFIX).so
@ln -fs $(LIBSONAME) $(LIBPREFIX).so.$(MAJOR_VERSION)
diff --git a/Makefile.install b/Makefile.install
index 4c35c9391..24fe8c820 100644
--- a/Makefile.install
+++ b/Makefile.install
@@ -66,7 +66,7 @@ endif
#for install shared library
ifndef NO_SHARED
@echo Copying the shared library to $(DESTDIR)$(OPENBLAS_LIBRARY_DIR)
-ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS))
+ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS Android))
@install -pm755 $(LIBSONAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
@cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \
ln -fs $(LIBSONAME) $(LIBPREFIX).so ; \
diff --git a/exports/Makefile b/exports/Makefile
index 5632b6fff..dad63e22d 100644
--- a/exports/Makefile
+++ b/exports/Makefile
@@ -118,7 +118,7 @@ endif
dllinit.$(SUFFIX) : dllinit.c
$(CC) $(CFLAGS) -c -o $(@F) -s $<
-ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS))
+ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS Android))
so : ../$(LIBSONAME)