[llvm-commits] CVS: llvm/Makefile.rules

Reid Spencer reid at x10sys.com
Sun Dec 12 23:28:32 PST 2004



Changes in directory llvm:

Makefile.rules updated: 1.259 -> 1.260
---
Log message:

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.


---
Diffs of the changes:  (+8 -2)

Index: llvm/Makefile.rules
diff -u llvm/Makefile.rules:1.259 llvm/Makefile.rules:1.260
--- llvm/Makefile.rules:1.259	Sun Dec 12 21:59:35 2004
+++ llvm/Makefile.rules	Mon Dec 13 01:28:21 2004
@@ -594,13 +594,19 @@
 	-$(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) $@
 






More information about the llvm-commits mailing list