* removing mod_tas
[openwrt/svn-archive/archive.git] / utils / binutils / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=binutils
10 PKG_VERSION:=$(strip $(subst ",, $(CONFIG_BINUTILS_VERSION)))
11 #"))
12 PKG_RELEASE:=1
13 PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/binutils/ \
14 ftp://gatekeeper.dec.com/pub/GNU/ \
15 ftp://ftp.uu.net/archive/systems/gnu/ \
16 ftp://ftp.eu.uu.net/pub/gnu/ \
17 ftp://ftp.funet.fi/pub/gnu/prep/ \
18 ftp://ftp.leo.org/pub/comp/os/unix/gnu/
19
20 PKG_SOURCE:=binutils-$(PKG_VERSION).tar.bz2
21 PATCH_DIR:=$(TOPDIR)/toolchain/binutils/patches/$(PKG_VERSION)
22
23 include $(INCLUDE_DIR)/package.mk
24
25 CONFIGURE_ARGS_XTRA+=--disable-werror \
26 --disable-nls
27
28 define Package/binutils
29 SECTION:=utils
30 CATEGORY:=Utilities
31 TITLE:=binutils
32 endef
33
34 define Package/binutils/description
35 The Binutils package contains a linker, an assembler, and other tools for handling object files
36 endef
37
38 define Build/Configure
39 (cd $(PKG_BUILD_DIR)/; \
40 $(TARGET_CONFIGURE_OPTS) \
41 $(CONFIGURE_VARS) \
42 $(CONFIGURE_CMD) \
43 $(CONFIGURE_ARGS_XTRA) \
44 $(CONFIGURE_ARGS) \
45 );
46 endef
47
48 define Build/Compile
49 make -C $(PKG_BUILD_DIR)/bfd/doc/ CFLAGS="-I$(PKG_BUILD_DIR)/include" chew
50 $(MAKE) -C $(PKG_BUILD_DIR) all
51 $(MAKE) -C $(PKG_BUILD_DIR) install DESTDIR=$(PKG_INSTALL_DIR)
52 endef
53
54 define Package/binutils/install
55 $(INSTALL_DIR) $(1)/usr
56 $(CP) $(PKG_INSTALL_DIR)/usr/bin/ $(1)/usr/
57 $(CP) $(PKG_INSTALL_DIR)/usr/*-linux $(1)/usr
58 endef
59
60 $(eval $(call BuildPackage,binutils))