add mklibs (based on a patch by florian) in preparation for optional library symbol...
[openwrt/openwrt.git] / tools / mklibs / Makefile
1 #
2 # Copyright (C) 2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=mklibs
10 PKG_VERSION:=0.1.26
11
12 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
13 PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/m/mklibs/
14 PKG_MD5SUM:=708f284975f1b567b817d27f7677a95f
15
16 include $(INCLUDE_DIR)/host-build.mk
17
18 HOST_CFLAGS += -I$(CURDIR)/include
19
20 define Host/Install
21 $(INSTALL_BIN) \
22 $(HOST_BUILD_DIR)/src/mklibs.py \
23 $(HOST_BUILD_DIR)/src/mklibs-copy.py \
24 $(HOST_BUILD_DIR)/src/mklibs-readelf/mklibs-readelf \
25 $(STAGING_DIR_HOST)/bin/
26 endef
27
28 define Host/Clean
29 rm -f $(STAGING_DIR_HOST)/bin/mklibs*
30 endef
31
32 $(eval $(call HostBuild))