tools/tools.mk
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Nov 23 16:34:49 2008 +0000 (2008-11-23)
changeset 1069 335ee9d69b80
parent 1001 c8ac48ba1411
permissions -rw-r--r--
Add binutils-2.19 and associated patchset (vampirised from Gentoo).

/trunk/patches/binutils/2.19/120-sh-targets.patch | 52 52 0 0 ++++
/trunk/patches/binutils/2.19/180-use-relro.patch | 14 14 0 0 +
/trunk/patches/binutils/2.19/160-use-new-ld-dtags.patch | 14 14 0 0 +
/trunk/patches/binutils/2.19/100-ppc64-pie.patch | 20 20 0 0 +
/trunk/patches/binutils/2.19/190-libiberty-pic.patch | 14 14 0 0 +
/trunk/patches/binutils/2.19/170-generate-gnu-hash.patch | 16 16 0 0 +
/trunk/patches/binutils/2.19/110-RPATH_ENVVAR-smack.patch | 17 17 0 0 +
/trunk/patches/binutils/2.19/140-pt-pax-flags-20081101.patch | 249 249 0 0 +++++++++++++++++
/trunk/patches/binutils/2.19/150-warn-textrel.patch | 48 48 0 0 +++
/trunk/patches/binutils/2.19/130-check_ldrunpath_length.patch | 31 31 0 0 ++
/trunk/config/binutils.in | 5 5 0 0 +
11 files changed, 480 insertions(+)
     1 # Makefile for the tools/ sub-directory
     2 
     3 # Here, we can update the config.* scripts.
     4 # If we're in CT_LIB_DIR, then CT_LIB_DIR == CT_TOP_DIR, and we can update those
     5 # scripts for later inclusion mainline. If CT_LIB_DIR != CT_TOP_DIR, then those
     6 # scripts are downloaded only for use in CT_TOP_DIR.
     7 
     8 # ----------------------------------------------------------
     9 # The tools help entry
    10 
    11 help-distrib::
    12 	@echo  '  updatetools        - Update the config tools'
    13 
    14 # ----------------------------------------------------------
    15 # Where to get tools from, and where to store them into
    16 # The tools are: config.guess and config.sub
    17 
    18 CONFIG_SUB_SRC="http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD"
    19 CONFIG_SUB_DEST=tools/config.sub
    20 CONFIG_GUESS_SRC="http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD"
    21 CONFIG_GUESS_DEST=tools/config.guess
    22 
    23 # Kludge: we have a step that is called 'tools', and thus we can not define a
    24 # rule here that is named 'tools'. Naming it 'tools/' does not help either.
    25 # Thus, prepend the top directory to have a single rule description. This is
    26 # not as bad as it seems, because it is only refered to by teo rules in this
    27 # file, but still it is a kludge...
    28 $(CT_TOP_DIR)/tools:
    29 	$(SILENT)mkdir -p tools
    30 
    31 PHONY += updatetools
    32 updatetools: $(CONFIG_SUB_DEST) $(CONFIG_GUESS_DEST)
    33 
    34 # ----------------------------------------------------------
    35 # How to retrieve the tools
    36 
    37 wget_opt=-o /dev/null
    38 ifeq ($(strip $(V)),2)
    39   wget_opt=
    40 endif
    41 
    42 $(CONFIG_SUB_DEST): .FORCE $(CT_TOP_DIR)/tools
    43 	@$(ECHO) '  WGET  $@'
    44 	$(SILENT)wget $(wget_opt) -O $@ $(CONFIG_SUB_SRC)
    45 	$(SILENT)chmod u+rwx,go+rx-w $@
    46 
    47 $(CONFIG_GUESS_DEST): .FORCE $(CT_TOP_DIR)/tools
    48 	@$(ECHO) '  WGET  $@'
    49 	$(SILENT)wget $(wget_opt) -O $@ $(CONFIG_GUESS_SRC)
    50 	$(SILENT)chmod u+rwx,go+rx-w $@
    51 
    52 # ----------------------------------------------------------
    53 # Clean up the mess
    54 
    55 distclean::
    56 	@$(ECHO) "  CLEAN tools"
    57 	$(SILENT)[ $(CT_TOP_DIR) = $(CT_LIB_DIR) ] || rm -rf $(CT_TOP_DIR)/tools