mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Add DESTDIR support for installation, to support RPM etc.
llvm-svn: 10940
This commit is contained in:
parent
d901dc68f1
commit
705759b8b6
@ -482,9 +482,9 @@ LIBNAME_BC := $(DESTLIBBYTECODE)/lib$(LIBRARYNAME).bc
|
|||||||
# dynamic target builds a shared object version of the library...
|
# dynamic target builds a shared object version of the library...
|
||||||
dynamic:: $(LIBNAME_CUR)
|
dynamic:: $(LIBNAME_CUR)
|
||||||
bytecodelib:: $(LIBNAME_BC)
|
bytecodelib:: $(LIBNAME_BC)
|
||||||
install-bytecode-library:: $(LLVMGCCDIR)/bytecode-libs/lib$(LIBRARYNAME).bc
|
install-bytecode-library:: $(DESTDIR)$(LLVMGCCDIR)/bytecode-libs/lib$(LIBRARYNAME).bc
|
||||||
|
|
||||||
$(LLVMGCCDIR)/bytecode-libs/lib$(LIBRARYNAME).bc: $(LIBNAME_BC)
|
$(DESTDIR)$(LLVMGCCDIR)/bytecode-libs/lib$(LIBRARYNAME).bc: $(LIBNAME_BC)
|
||||||
@${ECHO} ======= Installing $(LIBRARYNAME) bytecode library =======
|
@${ECHO} ======= Installing $(LIBRARYNAME) bytecode library =======
|
||||||
cp $< $@
|
cp $< $@
|
||||||
|
|
||||||
@ -544,7 +544,7 @@ $(LIBNAME_G): $(ObjectsG) $(LibSubDirs) $(DESTLIBDEBUG)/.dir
|
|||||||
|
|
||||||
install-dynamic-library: $(LIBNAME_CUR)
|
install-dynamic-library: $(LIBNAME_CUR)
|
||||||
$(MKDIR) $(libdir)
|
$(MKDIR) $(libdir)
|
||||||
$(VERB) $(LIBTOOL) --mode=install $(INSTALL) $(LIBNAME_CUR) $(libdir)/lib$(LIBRARYNAME)$(SHLIBEXT)
|
$(VERB) $(LIBTOOL) --mode=install $(INSTALL) $(LIBNAME_CUR) $(DESTDIR)$(libdir)/lib$(LIBRARYNAME)$(SHLIBEXT)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Rules for building static archive libraries.
|
# Rules for building static archive libraries.
|
||||||
@ -569,7 +569,7 @@ $(LIBNAME_AG): $(ObjectsG) $(LibSubDirs) $(DESTLIBDEBUG)/.dir
|
|||||||
|
|
||||||
install-archive-library: $(LIBNAME_ACUR)
|
install-archive-library: $(LIBNAME_ACUR)
|
||||||
$(MKDIR) $(libdir)
|
$(MKDIR) $(libdir)
|
||||||
$(VERB) $(LIBTOOL) --mode=install $(INSTALL) $(LIBNAME_ACUR) $(libdir)/lib$(LIBRARYNAME).a
|
$(VERB) $(LIBTOOL) --mode=install $(INSTALL) $(LIBNAME_ACUR) $(DESTDIR)$(libdir)/lib$(LIBRARYNAME).a
|
||||||
|
|
||||||
#
|
#
|
||||||
# Rules for building .o libraries.
|
# Rules for building .o libraries.
|
||||||
@ -599,7 +599,7 @@ $(LIBNAME_OBJG): $(ObjectsG) $(LibSubDirs) $(DESTLIBDEBUG)/.dir
|
|||||||
|
|
||||||
install-single-object-library: $(LIBNAME_OBJCUR)
|
install-single-object-library: $(LIBNAME_OBJCUR)
|
||||||
$(MKDIR) $(libdir)
|
$(MKDIR) $(libdir)
|
||||||
$(VERB) $(LIBTOOL) --mode=install $(INSTALL) $(LIBNAME_OBJCUR) $(libdir)/$(LIBRARYNAME).o
|
$(VERB) $(LIBTOOL) --mode=install $(INSTALL) $(LIBNAME_OBJCUR) $(DESTDIR)$(libdir)/$(LIBRARYNAME).o
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -699,7 +699,7 @@ $(TOOLEXENAME_P): $(ObjectsP) $(USED_LIB_PATHS_P) $(DESTTOOLPROFILE)/.dir
|
|||||||
|
|
||||||
install:: $(TOOLEXENAMES)
|
install:: $(TOOLEXENAMES)
|
||||||
$(MKDIR) $(bindir)
|
$(MKDIR) $(bindir)
|
||||||
$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) -c -m 0755 $(TOOLEXENAMES) $(bindir)/$(TOOLNAME)
|
$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) -c -m 0755 $(TOOLEXENAMES) $(DESTDIR)$(bindir)/$(TOOLNAME)
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user