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_MD5SUM:=4136d7b4c04df68b686570afa26988ac
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.mr511.de/software/
18 HOST_BUILD_PARALLEL:=1
20 include $(INCLUDE_DIR)/host-build.mk
22 HOST_CONFIGURE_ARGS += \
27 (cd $(HOST_BUILD_DIR)/$(3); \
28 $(HOST_CONFIGURE_CMD) \
29 $(HOST_CONFIGURE_ARGS); \
35 +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR)/lib/ libelf.a
39 $(INSTALL_DIR) $(STAGING_DIR_HOST)/{lib,include/libelf}
40 $(CP) $(HOST_BUILD_DIR)/lib/{elf_repl.h,gelf.h,libelf.h,nlist.h,sys_elf.h} \
41 $(STAGING_DIR_HOST)/include/libelf/
42 $(CP) $(HOST_BUILD_DIR)/lib/libelf.a $(STAGING_DIR_HOST)/lib/
46 rm -rf $(STAGING_DIR_HOST)/include/libelf
47 rm -f $(STAGING_DIR_HOST)/lib/libelf.a
48 $(call Host/Clean/Default)
51 $(eval $(call HostBuild))