Smartmontools compiles with ulibcxx, so use it instead of libstdcpp
[openwrt/svn-archive/archive.git] / libs / libbfd / 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=binutils
12 PKG_VERSION:=2.16.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=ftp://ftp.gnu.org/gnu/binutils
17 PKG_MD5SUM:=6a9d529efb285071dad10e1f3d2b2967
18
19 include $(INCLUDE_DIR)/package.mk
20
21 TARGETS:=$(GNU_TARGET_NAME)
22
23 define Build/Configure
24 $(call Build/Configure/Default, \
25 --enable-install-libbfd \
26 --enable-commonbfdlib \
27 --disable-nls \
28 --enable-targets="$(TARGETS)" \
29 , \
30 , \
31 bfd \
32 )
33 endef
34
35 TARGET_CFLAGS += $(FPIC)
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR)/bfd \
39 DESTDIR="$(PKG_INSTALL_DIR)" \
40 all install
41 endef
42
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 \
48 $(1)/usr/include/
49 mkdir -p $(1)/usr/lib
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbfd.a \
51 $(1)/usr/lib/
52 endef
53
54 $(eval $(call Build/DefaultTargets))