From: Chris Lattner Date: Tue, 23 Jul 2002 19:21:31 +0000 (+0000) Subject: Allow directories to specify that they want to be built as a shared object by default X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=edf1f23e539e25e96d96995ca863b1bf1577df06;p=oota-llvm.git Allow directories to specify that they want to be built as a shared object by default git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3027 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Makefile.common b/Makefile.common index 46d18c61892..aef05750ace 100644 --- a/Makefile.common +++ b/Makefile.common @@ -29,6 +29,11 @@ #ENABLE_PURIFY = 1 #ENABLE_OPTIMIZED = 1 +ifdef SHARED_LIBRARY +# if SHARED_LIBRARY is specified, the default is to build the dynamic lib +dynamic :: +endif + # Default Rule: Make sure it's also a :: rule all :: diff --git a/Makefile.rules b/Makefile.rules index 46d18c61892..aef05750ace 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -29,6 +29,11 @@ #ENABLE_PURIFY = 1 #ENABLE_OPTIMIZED = 1 +ifdef SHARED_LIBRARY +# if SHARED_LIBRARY is specified, the default is to build the dynamic lib +dynamic :: +endif + # Default Rule: Make sure it's also a :: rule all ::