mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:50:30 +00:00
Move bytecode_libdir def'n to Makefile.config.in from Makefile.rules, so it
lives near the other installation dirs (like libdir, bindir, etc.). Move the rule for making bytecode_libdir out of the ifdef LIBRARYNAME...endif. llvm-svn: 10964
This commit is contained in:
parent
a034c6e129
commit
2ad4ba012c
@ -187,6 +187,7 @@ sysconfdir = @sysconfdir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
localstatedir = @localstatedir@
|
||||
libdir = @libdir@
|
||||
bytecode_libdir = $(LLVMGCCDIR)/bytecode-libs
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
mandir = @mandir@
|
||||
|
@ -454,6 +454,11 @@ endif
|
||||
# of it. For this reason, sometimes it's useful to use libraries as .a files.
|
||||
###########################################################################
|
||||
|
||||
# Install rule for making bytecode library directory if it does not exist.
|
||||
# Trigger this by making libraries that need to be installed here depend on it.
|
||||
$(DESTDIR)$(bytecode_libdir):
|
||||
$(MKDIR) $@
|
||||
|
||||
ifdef LIBRARYNAME
|
||||
|
||||
# Make sure there isn't any extranous whitespace on the LIBRARYNAME option
|
||||
@ -482,12 +487,8 @@ LIBNAME_BC := $(DESTLIBBYTECODE)/lib$(LIBRARYNAME).bc
|
||||
# dynamic target builds a shared object version of the library...
|
||||
dynamic:: $(LIBNAME_CUR)
|
||||
bytecodelib:: $(LIBNAME_BC)
|
||||
bytecode_libdir = $(LLVMGCCDIR)/bytecode-libs
|
||||
install-bytecode-library:: $(DESTDIR)$(bytecode_libdir)/lib$(LIBRARYNAME).bc
|
||||
|
||||
$(DESTDIR)$(bytecode_libdir):
|
||||
$(MKDIR) $@
|
||||
|
||||
$(DESTDIR)$(bytecode_libdir)/lib$(LIBRARYNAME).bc: $(LIBNAME_BC) $(DESTDIR)$(bytecode_libdir)
|
||||
@${ECHO} ======= Installing $(LIBRARYNAME) bytecode library =======
|
||||
cp $< $@
|
||||
|
Loading…
Reference in New Issue
Block a user