ath79: set lzma-loader variables to null by default
[openwrt/openwrt.git] / tools / mklibs / Makefile
1 #
2 # Copyright (C) 2009-2013 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.44
11
12 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.xz
13 PKG_SOURCE_URL:=@DEBIAN/pool/main/m/mklibs/
14 PKG_HASH:=3af0b6bd35e5b6fc58d8b68827fbae2ff6b7e20dd2b238ccb9b49d84722066c2
15
16 HOST_FIXUP:=autoreconf
17
18 include $(INCLUDE_DIR)/host-build.mk
19
20 HOST_CFLAGS += -I$(CURDIR)/include
21 HOST_CPPFLAGS += -std=gnu++98
22
23 define Host/Install
24 $(INSTALL_BIN) \
25 $(HOST_BUILD_DIR)/src/mklibs \
26 $(HOST_BUILD_DIR)/src/mklibs-copy \
27 $(HOST_BUILD_DIR)/src/mklibs-readelf/mklibs-readelf \
28 $(STAGING_DIR_HOST)/bin/
29 endef
30
31 define Host/Clean
32 rm -f $(STAGING_DIR_HOST)/bin/mklibs*
33 endef
34
35 $(eval $(call HostBuild))