73d8e2a36a101bd6d8b2ca3fc78675d7aacb9e61
[openwrt/staging/yousong.git] / tools / dosfstools / Makefile
1 #
2 # Copyright (C) 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:=dosfstools
10 PKG_VERSION:=3.0.7
11 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
12 PKG_SOURCE_URL:=http://dosfstools.sourcearchive.com/downloads/3.0.7/
13 PKG_MD5SUM:=5d4d97c79e8dae60bb08c2fba36c94d6
14 PKG_CAT:=zcat
15
16 include $(INCLUDE_DIR)/host-build.mk
17
18 define Host/Compile
19 $(MAKE) -C $(HOST_BUILD_DIR) SHELL="$(BASH)" LDFLAGS="$(HOST_LDFLAGS) -static"
20 endef
21
22 define Host/Install
23 $(INSTALL_BIN) $(HOST_BUILD_DIR)/mkdosfs $(STAGING_DIR_HOST)/bin/
24 endef
25
26 define Host/Clean
27 rm -f $(STAGING_DIR_HOST)/bin/mkdosfs
28 endef
29
30 $(eval $(call HostBuild))