From 42fe455d3789b8e7913f463f85cd5606d7fb6efe Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 7 Aug 2006 23:12:15 +0000 Subject: 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29551 91177308-0d34-0410-b5e6-96231b3b80d8 --- projects/sample/lib/sample/Makefile | 6 ++---- projects/sample/tools/sample/Makefile | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'projects/sample') diff --git a/projects/sample/lib/sample/Makefile b/projects/sample/lib/sample/Makefile index 6b1ea05..c85ae1a 100644 --- a/projects/sample/lib/sample/Makefile +++ b/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/projects/sample/tools/sample/Makefile b/projects/sample/tools/sample/Makefile index 1127f75..39da928 100644 --- a/projects/sample/tools/sample/Makefile +++ b/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. -- cgit v1.1