aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-23 19:21:31 +0000
committerChris Lattner <sabre@nondot.org>2002-07-23 19:21:31 +0000
commitedf1f23e539e25e96d96995ca863b1bf1577df06 (patch)
tree343055804a1c3e4ea0661945156cef6dd5d2abde
parente58a01fc5d1cfe0da5d00b55aabf0454e66eca75 (diff)
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
-rw-r--r--Makefile.common5
-rw-r--r--Makefile.rules5
2 files changed, 10 insertions, 0 deletions
diff --git a/Makefile.common b/Makefile.common
index 46d18c6189..aef05750ac 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 46d18c6189..aef05750ac 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 ::