2 # Copyright (C) 2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
12 PKG_HASH:=591a9b4ec81c1f2042a97aa60564e0cb79d041c52faa7416acb38bc95bd2c76d
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 http://distfiles.gentoo.org/distfiles/ \
18 http://distcache.freebsd.org/ports-distfiles/
19 HOST_BUILD_PARALLEL:=1
21 include $(INCLUDE_DIR)/host-build.mk
23 HOST_CONFIGURE_ARGS += \
28 (cd $(HOST_BUILD_DIR)/$(3); \
29 $(HOST_CONFIGURE_CMD) \
30 $(HOST_CONFIGURE_ARGS); \
36 +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR)/lib/ libelf.a
40 $(INSTALL_DIR) $(STAGING_DIR_HOST)/{lib,include/libelf}
41 $(CP) $(HOST_BUILD_DIR)/lib/{elf_repl.h,gelf.h,libelf.h,nlist.h,sys_elf.h} \
42 $(STAGING_DIR_HOST)/include/libelf/
43 $(CP) $(HOST_BUILD_DIR)/lib/libelf.a $(STAGING_DIR_HOST)/lib/
47 rm -rf $(STAGING_DIR_HOST)/include/libelf
48 rm -f $(STAGING_DIR_HOST)/lib/libelf.a
49 $(call Host/Clean/Default)
52 $(eval $(call HostBuild))