[adm5120] fix support for 2.6.38 kernel
[openwrt.git] / tools / libelf / Makefile
1 #
2 # Copyright (C) 2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libelf
11 PKG_VERSION:=0.8.13
12 PKG_MD5SUM:=4136d7b4c04df68b686570afa26988ac
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.mr511.de/software/
17
18 include $(INCLUDE_DIR)/host-build.mk
19
20 HOST_CONFIGURE_ARGS += \
21 --disable-shared \
22 --enable-elf64
23
24 define Host/Configure
25 (cd $(HOST_BUILD_DIR)/$(3); \
26 $(HOST_CONFIGURE_CMD) \
27 $(HOST_CONFIGURE_ARGS); \
28 )
29 endef
30
31
32 define Host/Compile
33 $(MAKE) -C $(HOST_BUILD_DIR)/lib/ libelf.a
34 endef
35
36 define Host/Install
37 $(INSTALL_DIR) $(STAGING_DIR_HOST)/{lib,include/libelf}
38 $(CP) $(HOST_BUILD_DIR)/lib/{elf_repl.h,gelf.h,libelf.h,nlist.h,sys_elf.h} \
39 $(STAGING_DIR_HOST)/include/libelf/
40 $(CP) $(HOST_BUILD_DIR)/lib/libelf.a $(STAGING_DIR_HOST)/lib/
41 endef
42
43 define Host/Clean
44 rm -rf $(STAGING_DIR_HOST)/include/libelf
45 rm -f $(STAGING_DIR_HOST)/lib/libelf.a
46 $(call Host/Clean/Default)
47 endef
48
49 $(eval $(call HostBuild))
This page took 0.042806 seconds and 5 git commands to generate.