From 378acfe826e2759b1464bd9f9d7c02e22e14ea05 Mon Sep 17 00:00:00 2001 From: Zhang Xianyi Date: Thu, 8 Nov 2012 22:08:01 +0800 Subject: [PATCH] Added NO_SHARED flag to disable generating the shared library. --- Makefile | 2 ++ Makefile.rule | 3 +++ 2 files changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 9a2a8b765..c49a328d9 100644 --- a/Makefile +++ b/Makefile @@ -80,6 +80,7 @@ endif @echo shared : +ifndef NO_SHARED ifeq ($(OSNAME), Linux) $(MAKE) -C exports so -ln -fs $(LIBSONAME) $(LIBPREFIX).so @@ -103,6 +104,7 @@ endif ifeq ($(OSNAME), CYGWIN_NT) $(MAKE) -C exports dll endif +endif tests : ifndef NOFORTRAN diff --git a/Makefile.rule b/Makefile.rule index 077bf9267..f667c1661 100644 --- a/Makefile.rule +++ b/Makefile.rule @@ -45,6 +45,9 @@ VERSION = 0.2.4 # automatically detected by the the script. # NUM_THREADS = 24 +# if you don't need generate the shared library, please comment it in. +# NO_SHARED = 1 + # If you don't need CBLAS interface, please comment it in. # NO_CBLAS = 1