port mysql (client library) to buildroot-ng
[openwrt/svn-archive/archive.git] / libs / libbfd / Makefile
1 # $Id: Makefile 3843 2006-05-30 18:55:52Z nbd $
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=binutils
6 PKG_VERSION:=2.16.1
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=6a9d529efb285071dad10e1f3d2b2967
9
10 PKG_SOURCE_URL:=ftp://ftp.gnu.org/gnu/binutils
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
12 PKG_CAT:=bzcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(INCLUDE_DIR)/package.mk
18
19 TARGETS:=$(GNU_TARGET_NAME)
20
21 define Build/Configure
22 $(call Build/Configure/Default,--enable-install-libbfd --enable-commonbfdlib --disable-nls --enable-targets=$(TARGETS),,bfd)
23 endef
24
25 define Build/Compile
26 rm -rf $(PKG_INSTALL_DIR)
27 mkdir -p $(PKG_INSTALL_DIR)
28 $(MAKE) -C $(PKG_BUILD_DIR)/bfd \
29 DESTDIR="$(PKG_INSTALL_DIR)" \
30 all install
31 endef
32
33 define Build/InstallDev
34 $(CP) $(PKG_INSTALL_DIR)/usr/* $(STAGING_DIR)/usr/
35 endef
36
37 define Build/UninstallDev
38 rm -f \
39 $(STAGING_DIR)/usr/include/bfd*.h \
40 $(STAGING_DIR)/usr/lib/libbfd*
41 endef
42
43 $(eval $(call Build/DefaultTargets))