Added NO_SHARED flag to disable generating the shared library.
authorZhang Xianyi <xianyi@iscas.ac.cn>
Thu, 8 Nov 2012 14:08:01 +0000 (22:08 +0800)
committerZhang Xianyi <traits.zhang@gmail.com>
Thu, 8 Nov 2012 16:14:15 +0000 (00:14 +0800)
Makefile
Makefile.rule

index 9a2a8b7..c49a328 100644 (file)
--- 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
index 077bf92..f667c16 100644 (file)
@@ -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