make-ext4fs: avoid using libc internal declarations
[openwrt.git] / tools / make-ext4fs / Makefile
1 #
2 # Copyright (C) 2015 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:=make-ext4fs
10 PKG_VERSION:=2015-05-01
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_SOURCE_URL:=http://git.openwrt.org/project/make_ext4fs.git
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_VERSION:=7c15bef6c732896d9ffb883fb1480fcd60c94a50
16 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
17 PKG_MIRROR_MD5SUM:=d81eca37852cbf840108e1a8ad8fb22f
18 PKG_CAT:=zcat
19
20 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/host-build.mk
23
24 define Host/Compile
25         $(MAKE) -C $(HOST_BUILD_DIR) make_ext4fs
26 endef
27
28 define Host/Install
29         $(INSTALL_BIN) $(HOST_BUILD_DIR)/make_ext4fs $(STAGING_DIR_HOST)/bin/
30 endef
31
32 define Host/Clean
33         rm -f $(STAGING_DIR_HOST)/bin/make_ext4fs
34 endef
35
36 $(eval $(call HostBuild))