From edf1f23e539e25e96d96995ca863b1bf1577df06 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 23 Jul 2002 19:21:31 +0000 Subject: [PATCH] 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 --- Makefile.common | 5 +++++ Makefile.rules | 5 +++++ 2 files changed, 10 insertions(+) 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 ::