summaryrefslogtreecommitdiffstats
path: root/llvm/projects/sample
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-08-07 23:12:15 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-08-07 23:12:15 +0000
commite6458c3fb23c2aa557cdd568c2533329b2667209 (patch)
tree397a8390263d5bb594aaa9b99cedcd16f9e40328 /llvm/projects/sample
parent1ee75ce65d37a52295cdc07f8378d3ccbd45c49a (diff)
downloadbcm5719-llvm-e6458c3fb23c2aa557cdd568c2533329b2667209.tar.gz
bcm5719-llvm-e6458c3fb23c2aa557cdd568c2533329b2667209.zip
For PR780:
1. Change the usage of LOADABLE_MODULE so that it implies all the things necessary to make a loadable module. This reduces the user's burdern to get a loadable module correctly built. 2. Document the usage of LOADABLE_MODULE in the MakefileGuide 3. Adjust the makefile for lib/Transforms/Hello to use the new specification for building loadable modules 4. Adjust the sample project to not attempt to build a shared library for its little library. This was just wasteful and not instructive at all. llvm-svn: 29551
Diffstat (limited to 'llvm/projects/sample')
-rw-r--r--llvm/projects/sample/lib/sample/Makefile6
-rw-r--r--llvm/projects/sample/tools/sample/Makefile2
2 files changed, 3 insertions, 5 deletions
diff --git a/llvm/projects/sample/lib/sample/Makefile b/llvm/projects/sample/lib/sample/Makefile
index 6b1ea05361b..c85ae1a711c 100644
--- a/llvm/projects/sample/lib/sample/Makefile
+++ b/llvm/projects/sample/lib/sample/Makefile
@@ -9,10 +9,8 @@ LEVEL=../..
# Give the name of a library. This will build a dynamic version.
#
LIBRARYNAME=sample
-SHARED_LIBRARY=1
-LOADABLE_MODULE=1
-#DONT_BUILD_RELINKED=1
-#ARCHIVE_LIBRARY=1
+DONT_BUILD_RELINKED=1
+BUILD_ARCHIVE=1
#
# Include Makefile.common so we know what to do.
diff --git a/llvm/projects/sample/tools/sample/Makefile b/llvm/projects/sample/tools/sample/Makefile
index 1127f755755..39da928329e 100644
--- a/llvm/projects/sample/tools/sample/Makefile
+++ b/llvm/projects/sample/tools/sample/Makefile
@@ -14,7 +14,7 @@ TOOLNAME=sample
# List libraries that we'll need
# We use LIBS because sample is a dynamic library.
#
-USEDLIBS = sample
+USEDLIBS = sample.a
#
# Include Makefile.common so we know what to do.
OpenPOWER on IntegriCloud