diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-13 07:28:21 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-13 07:28:21 +0000 |
| commit | 65086be55f589be3d93fd86860434f87bbf64f9b (patch) | |
| tree | 27c7879db4b417a41d0bcda91a6ac17e88f544d4 | |
| parent | 0230a5eead535ee3960455ba17a750766bbba7e4 (diff) | |
| download | bcm5719-llvm-65086be55f589be3d93fd86860434f87bbf64f9b.tar.gz bcm5719-llvm-65086be55f589be3d93fd86860434f87bbf64f9b.zip | |
Implement a new feature, BYTECODE_DESTINATION, to allow a user makefile to
specify where the bytecode library is to be installed. This allows the
default location ($prefix/lib) to be overridden, for special case runtime
libraries like the cfe runtime libs.
llvm-svn: 18879
| -rw-r--r-- | llvm/Makefile.rules | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/llvm/Makefile.rules b/llvm/Makefile.rules index e2f5794db38..8327399f91b 100644 --- a/llvm/Makefile.rules +++ b/llvm/Makefile.rules @@ -594,13 +594,19 @@ ifneq ($(strip $(LibName.BCA)),) -$(Verb) $(RM) -f $(LibName.BCA) endif -DestBytecodeLib = $(bytecode_libdir)/lib$(LIBRARYNAME).a +ifdef BYTECODE_DESTINATION +BytecodeDestDir := $(BYTECODE_DESTINATION) +else +BytecodeDestDir := $(libdir) +endif + +DestBytecodeLib = $(BytecodeDestDir)/lib$(LIBRARYNAME).a install-bytecode-local:: $(DestBytecodeLib) install-local:: $(DestBytecodeLib) -$(DestBytecodeLib): $(bytecode_libdir) $(LibName.BCA) +$(DestBytecodeLib): $(BytecodeDestDir) $(LibName.BCA) $(Echo) Installing $(BuildMode) Bytecode Archive $(DestBytecodeLib) $(Verb) $(INSTALL) $(LibName.BCA) $@ |

