2004-06-27 Hideki Iwamoto <h-iwamoto@kit.hi-ho.ne.jp>
* Makefile.in: Support $(DESTDIR). * arm/Makefile.in: Ditto. * d30v/Makefile.in: Ditto. * doc/Makefile.in: Ditto. * fr30/Makefile.in: Ditto. * frv/Makefile.in: Ditto. * hp74x/Makefile.in: Ditto. * i386/Makefile.in: Ditto. * i960/Makefile.in: Ditto. * iq2000/Makefile.in: Ditto. * libnosys/Makefile.in: Ditto. * m32r/Makefile.in: Ditto. * m68hc11/Makefile.in: Ditto. * m68k/Makefile.in: Ditto. * mcore/Makefile.in: Ditto. * mips/Makefile.in: Ditto. * mn10200/Makefile.in: Ditto. * mn10300/Makefile.in: Ditto. * pa/Makefile.in: Ditto. * rs6000/Makefile.in: Ditto. * sparc/Makefile.in: Ditto. * sparc/libsys/Makefile.in: Ditto. * xstormy16/Makefile.in: Ditto.
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
# This currently works with Motorola's 68HC11 based target boards.
|
||||
# (should work with 68HC12 but not tested yet)
|
||||
|
||||
DESTDIR =
|
||||
srcdir = @srcdir@
|
||||
objdir = .
|
||||
srcroot = $(srcdir)/../..
|
||||
@@ -140,9 +141,9 @@ distclean maintainer-clean realclean: clean
|
||||
|
||||
.PHONY: install info install-info clean-info
|
||||
install: install-scripts
|
||||
$(INSTALL_PROGRAM) $(CRT0) $(tooldir)/lib${MULTISUBDIR}/$(CRT0)
|
||||
$(INSTALL_PROGRAM) $(CRT0) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(CRT0)
|
||||
@for bsp in ${BSP}; do\
|
||||
$(INSTALL_PROGRAM) $${bsp} $(tooldir)/lib${MULTISUBDIR}; \
|
||||
$(INSTALL_PROGRAM) $${bsp} $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \
|
||||
done
|
||||
|
||||
# Install the linker script in the correct place.
|
||||
@@ -156,10 +157,10 @@ install-scripts:
|
||||
name=`$$objdump -f $(CRT0) | sed '/^$$/d'`; \
|
||||
case $$name in \
|
||||
*elf32-m68hc11*) \
|
||||
$(INSTALL_DATA) ${srcdir}/sim-valid-m68hc11.ld $(tooldir)/lib${MULTISUBDIR}/sim-valid.ld \
|
||||
$(INSTALL_DATA) ${srcdir}/sim-valid-m68hc11.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/sim-valid.ld \
|
||||
;; \
|
||||
*elf32-m68hc12*) \
|
||||
$(INSTALL_DATA) ${srcdir}/sim-valid-m68hc12.ld $(tooldir)/lib${MULTISUBDIR}/sim-valid.ld \
|
||||
$(INSTALL_DATA) ${srcdir}/sim-valid-m68hc12.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/sim-valid.ld \
|
||||
;; \
|
||||
esac
|
||||
|
||||
|
Reference in New Issue
Block a user