From: Reid Spencer Date: Mon, 13 Dec 2004 07:28:21 +0000 (+0000) Subject: Implement a new feature, BYTECODE_DESTINATION, to allow a user makefile to X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=8f094f3a8b396fc2c6029ca155b6a090046c8cb7;p=oota-llvm.git 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18879 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Makefile.rules b/Makefile.rules index e2f5794db38..8327399f91b 100644 --- a/Makefile.rules +++ b/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) $@