279c40bb58239d4390292fe7495e7a89d2b1a109
[openwrt.git] / 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=genext2fs
12 PKG_VERSION:=1.4.1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/genext2fs
16 PKG_MD5SUM:=b7b6361bcce2cedff1ae437fadafe53b
17
18 include $(INCLUDE_DIR)/host-build.mk
19
20 define Host/Configure
21 ( cd $(HOST_BUILD_DIR); \
22 ./configure \
23 --target=$(GNU_HOST_NAME) \
24 --host=$(GNU_HOST_NAME) \
25 --build=$(GNU_HOST_NAME) \
26 --program-prefix="" \
27 --program-suffix="" \
28 --prefix=/usr \
29 --exec-prefix=/usr \
30 --bindir=/usr/bin \
31 --sbindir=/usr/sbin \
32 --libexecdir=/usr/lib \
33 --sysconfdir=/etc \
34 --datadir=/usr/share \
35 --localstatedir=/var \
36 --mandir=/usr/man \
37 --infodir=/usr/info \
38 )
39 endef
40
41 define Host/Compile
42 $(MAKE) -C $(HOST_BUILD_DIR) \
43 CFLAGS="$(HOST_CFLAGS) -include getline.h" \
44 all
45 endef
46
47 define Host/Install
48 install -m0755 $(HOST_BUILD_DIR)/genext2fs $(STAGING_DIR_HOST)/bin/
49 endef
50
51 define Host/Clean
52 rm -f $(STAGING_DIR_HOST)/bin/genext2fs
53 endef
54
55 $(eval $(call HostBuild))
This page took 0.039745 seconds and 3 git commands to generate.