mklibs: link statically
[openwrt/openwrt.git] / tools / mklibs / Makefile
1 #
2 # Copyright (C) 2009-2012 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.34
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:=afe0ed527ba96b8a882b5de350603007
15
16 include $(INCLUDE_DIR)/host-build.mk
17
18 HOST_CFLAGS += -I$(CURDIR)/include
19 HOST_LDFLAGS += -static
20
21 define Host/Install
22 $(INSTALL_BIN) \
23 $(HOST_BUILD_DIR)/src/mklibs \
24 $(HOST_BUILD_DIR)/src/mklibs-copy \
25 $(HOST_BUILD_DIR)/src/mklibs-readelf/mklibs-readelf \
26 $(STAGING_DIR_HOST)/bin/
27 endef
28
29 define Host/Clean
30 rm -f $(STAGING_DIR_HOST)/bin/mklibs*
31 endef
32
33 $(eval $(call HostBuild))