[llvm-commits] CVS: llvm/runtime/GCCLibraries/crtend/Makefile
Chris Lattner
lattner at cs.uiuc.edu
Sun Jan 29 18:04:08 PST 2006
Changes in directory llvm/runtime/GCCLibraries/crtend:
Makefile updated: 1.31 -> 1.32
---
Log message:
fix make install/uninstall of libcrtend.
---
Diffs of the changes: (+19 -0)
Makefile | 19 +++++++++++++++++++
1 files changed, 19 insertions(+)
Index: llvm/runtime/GCCLibraries/crtend/Makefile
diff -u llvm/runtime/GCCLibraries/crtend/Makefile:1.31 llvm/runtime/GCCLibraries/crtend/Makefile:1.32
--- llvm/runtime/GCCLibraries/crtend/Makefile:1.31 Fri Jan 27 16:06:50 2006
+++ llvm/runtime/GCCLibraries/crtend/Makefile Sun Jan 29 20:03:56 2006
@@ -59,8 +59,27 @@
all-local:: $(LibName.BCA)
+ifdef BYTECODE_DESTINATION
+BytecodeDestDir := $(BYTECODE_DESTINATION)
+else
+BytecodeDestDir := $(PROJ_libdir)
+endif
+
+DestBytecodeLib = $(BytecodeDestDir)/lib$(LIBRARYNAME).a
+install-bytecode-local:: $(DestBytecodeLib)
+install-local:: $(DestBytecodeLib)
+
$(LibName.BCA): $(SYMBOLHACKEDOBJS) $(LibDir)/.dir $(LLVMToolDir)/llvm-ar
$(Echo) Building $(BuildMode) Bytecode Archive $(notdir $@)
$(Verb) $(RM) -f $@
$(Verb) $(LArchive) $@ $(SYMBOLHACKEDOBJS)
+$(DestBytecodeLib): $(BytecodeDestDir) $(LibName.BCA)
+ $(Echo) Installing $(BuildMode) Bytecode Archive $(DestBytecodeLib)
+ $(Verb) $(DataInstall) $(LibName.BCA) $(DestBytecodeLib)
+
+uninstall-local::
+ $(Echo) Uninstalling $(BuildMode) Bytecode Archive $(DestBytecodeLib)
+ -$(Verb) $(RM) -f $(DestBytecodeLib)
+
+
More information about the llvm-commits
mailing list