2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=ftp
://ftp.gnu.org
/gnu
/binutils
17 PKG_MD5SUM
:=6a9d529efb285071dad10e1f3d2b2967
19 include $(INCLUDE_DIR
)/package.mk
21 TARGETS
:=$(GNU_TARGET_NAME
)
23 define Build
/Configure
24 $(call Build
/Configure
/Default
, \
25 --enable-install-libbfd \
26 --enable-commonbfdlib \
28 --enable-targets
="$(TARGETS)" \
35 TARGET_CFLAGS
+= $(FPIC
)
38 $(MAKE
) -C
$(PKG_BUILD_DIR
)/bfd \
39 DESTDIR
="$(PKG_INSTALL_DIR)" \
43 define Build
/InstallDev
44 mkdir
-p
$(1)/usr
/include
45 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/ansidecl.h \
46 $(PKG_INSTALL_DIR
)/usr
/include/bfd
{,link
}.h \
47 $(PKG_INSTALL_DIR
)/usr
/include/symcat.h \
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libbfd.a \
54 $(eval
$(call Build
/DefaultTargets
))