Root/tools/genext2fs/Makefile

1#
2# Copyright (C) 2006 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=genext2fs
11PKG_VERSION:=1.4.1
12
13PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14PKG_SOURCE_URL:=@SF/genext2fs
15PKG_MD5SUM:=b7b6361bcce2cedff1ae437fadafe53b
16
17include $(INCLUDE_DIR)/host-build.mk
18
19define Host/Configure
20    ( cd $(HOST_BUILD_DIR); \
21        ./configure \
22            --target=$(GNU_HOST_NAME) \
23            --host=$(GNU_HOST_NAME) \
24            --build=$(GNU_HOST_NAME) \
25            --program-prefix="" \
26            --program-suffix="" \
27            --prefix=/usr \
28            --exec-prefix=/usr \
29            --bindir=/usr/bin \
30            --sbindir=/usr/sbin \
31            --libexecdir=/usr/lib \
32            --sysconfdir=/etc \
33            --datadir=/usr/share \
34            --localstatedir=/var \
35            --mandir=/usr/man \
36            --infodir=/usr/info \
37    )
38endef
39
40define Host/Compile
41    $(MAKE) -C $(HOST_BUILD_DIR) \
42        CFLAGS="$(HOST_CFLAGS) -include getline.h" \
43        all
44endef
45
46define Host/Install
47    install -m0755 $(HOST_BUILD_DIR)/genext2fs $(STAGING_DIR_HOST)/bin/
48endef
49
50define Host/Clean
51    rm -f $(STAGING_DIR_HOST)/bin/genext2fs
52endef
53
54$(eval $(call HostBuild))
55

Archive Download this file



interactive