build: add -Wno-error=unused-result to target cflags
[openwrt/openwrt.git] / tools / mtools / Makefile
1 #
2 # Copyright (C) 2012-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:=mtools
10 PKG_VERSION:=4.0.18
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
14 PKG_MD5SUM:=17b9f525c1ae3583a478338deb7fbc19
15 PKG_CAT:=zcat
16
17 HOST_BUILD_PARALLEL:=1
18
19 include $(INCLUDE_DIR)/host-build.mk
20
21 HOST_CONFIGURE_VARS += \
22 ac_cv_header_iconv_h=no
23
24 define Host/Compile
25 $(MAKE) -C $(HOST_BUILD_DIR) mcopy mmd
26 endef
27
28 define Host/Install
29 $(INSTALL_BIN) $(HOST_BUILD_DIR)/mcopy $(STAGING_DIR_HOST)/bin/
30 $(INSTALL_BIN) $(HOST_BUILD_DIR)/mmd $(STAGING_DIR_HOST)/bin/
31 endef
32
33 define Host/Clean
34 rm -f $(STAGING_DIR_HOST)/bin/mcopy
35 rm -f $(STAGING_DIR_HOST)/bin/mmd
36 endef
37
38 $(eval $(call HostBuild))