Update lzo to 2.03 (#3593)
[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 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 TARGETS:=$(GNU_TARGET_NAME)
25
26 define Build/Configure
27 $(call Build/Configure/Default, \
28 --enable-install-libbfd \
29 --enable-commonbfdlib \
30 --disable-nls \
31 --enable-targets="$(TARGETS)" \
32 , \
33 , \
34 bfd \
35 )
36 endef
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR)/bfd \
40 DESTDIR="$(PKG_INSTALL_DIR)" \
41 all install
42 endef
43
44 define Build/InstallDev
45 mkdir -p $(1)/usr/include
46 $(CP) $(PKG_INSTALL_DIR)/usr/include/ansidecl.h \
47 $(PKG_INSTALL_DIR)/usr/include/bfd{,link}.h \
48 $(PKG_INSTALL_DIR)/usr/include/symcat.h \
49 $(1)/usr/include/
50 mkdir -p $(1)/usr/lib
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbfd.a \
52 $(1)/usr/lib/
53 endef
54
55 $(eval $(call Build/DefaultTargets))