a949ac062822aa959d87552f60171acf73ccb99f
[openwrt/staging/yousong.git] / tools / padjffs2 / Makefile
1 #
2 # Copyright (C) 2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=padjffs2
11 PKG_VERSION:=1
12
13 include $(INCLUDE_DIR)/host-build.mk
14
15 define Host/Prepare
16 mkdir -p $(HOST_BUILD_DIR)
17 $(CP) ./src/* $(HOST_BUILD_DIR)/
18 find $(HOST_BUILD_DIR) -name .svn | $(XARGS) rm -rf
19 endef
20
21 define Host/Configure
22 endef
23
24 define Host/Install
25 $(CP) $(HOST_BUILD_DIR)/padjffs2 $(STAGING_DIR_HOST)/bin/
26 endef
27
28 define Host/Clean
29 rm -f $(STAGING_DIR_HOST)/bin/padjffs2
30 endef
31
32 $(eval $(call HostBuild))