diff options
author | Chris Lattner <sabre@nondot.org> | 2006-01-30 02:03:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-01-30 02:03:56 +0000 |
commit | bc3814f5e070029d36fa145611577525928fc4ae (patch) | |
tree | 4320a92654ce6564728695398814c963a9de5586 /runtime | |
parent | 715bd76487b1848387a73048f4e30fee5c4d4f92 (diff) | |
download | llvm-bc3814f5e070029d36fa145611577525928fc4ae.tar.gz llvm-bc3814f5e070029d36fa145611577525928fc4ae.tar.bz2 llvm-bc3814f5e070029d36fa145611577525928fc4ae.tar.xz |
fix make install/uninstall of libcrtend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25796 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/GCCLibraries/crtend/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/runtime/GCCLibraries/crtend/Makefile b/runtime/GCCLibraries/crtend/Makefile index 129aff2d54..285f4be6d5 100644 --- a/runtime/GCCLibraries/crtend/Makefile +++ b/runtime/GCCLibraries/crtend/Makefile @@ -59,8 +59,27 @@ SYMBOLHACKEDOBJS := $(ObjDir)/comp_main.bc $(ObjDir)/comp_genericeh.bc \ 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) + + |