Changeset 128
- Timestamp:
- 06/18/06 23:49:02 (6 years ago)
- Files:
-
- trunk/freewrt/toolchain/gcc/Makefile (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/freewrt/toolchain/gcc/Makefile
r65 r128 1 # Makefile for to build a gcc/uClibc toolchain 2 # 3 # Copyright (C) 2002-2003 Erik Andersen <andersen@uclibc.org> 4 # Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org> 5 # Copyright (C) 2005 Felix Fietkau <openwrt@nbd.name> 6 # 7 # This program is free software; you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation; either version 2 of the License, or 10 # (at your option) any later version. 11 # 12 # This program is distributed in the hope that it will be useful, 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 # General Public License for more details. 16 # 17 # You should have received a copy of the GNU General Public License 18 # along with this program; if not, write to the Free Software 19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 1 # $FreeWRT$ 20 2 21 3 include $(TOPDIR)/rules.mk … … 23 5 GCC_VERSION:=3.4.4 24 6 GCC_SITE:=ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-$(GCC_VERSION) \ 25 http://mirrors.rcn.net/pub/sourceware/gcc/releases/gcc-$(GCC_VERSION) 26 7 http://mirrors.rcn.net/pub/sourceware/gcc/releases/gcc-$(GCC_VERSION) 27 8 GCC_SOURCE:=gcc-$(GCC_VERSION).tar.bz2 28 9 GCC_DIR:=$(TOOL_BUILD_DIR)/gcc-$(GCC_VERSION) 29 10 GCC_CAT:=bzcat 30 GCC_STRIP_HOST_BINARIES:=true31 11 32 12 TARGET_LANGUAGES:=c,c++ 33 34 #############################################################35 #36 # build the first pass gcc compiler37 #38 #############################################################39 13 40 14 GCC_BUILD_DIR1:=$(TOOL_BUILD_DIR)/gcc-$(GCC_VERSION)-initial … … 53 27 $(SCRIPT_DIR)/patch-kernel.sh $(GCC_DIR) ./$(GCC_VERSION) \*.patch 54 28 $(SED) 's,\(version_string.. = "[0-9\.]*\).*\(";\),\1 (FreeWrt)\2,' $(GCC_DIR)/gcc/version.c 55 $(SED) 's,\(bug_report_url.. = "\).*\(";\),\1<URL:http://www.freewrt.org/development >\2,' $(GCC_DIR)/gcc/version.c29 $(SED) 's,\(bug_report_url.. = "\).*\(";\),\1<URL:http://www.freewrt.org/development/freewrt>\2,' $(GCC_DIR)/gcc/version.c 56 30 touch $@ 57 31 … … 81 55 $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)-gcc: $(GCC_BUILD_DIR1)/.compiled 82 56 PATH=$(TARGET_PATH) $(MAKE) -C $(GCC_BUILD_DIR1) install-gcc 83 84 #############################################################85 #86 # second pass compiler build. Build the compiler targeting87 # the newly built shared uClibc library.88 #89 #############################################################90 57 91 58 GCC_BUILD_DIR2:=$(TOOL_BUILD_DIR)/gcc-$(GCC_VERSION)-final


