[package] mac80211: add ath9k init values patch
[openwrt/mini2440.git] / tools / genext2fs / Makefile
blob279c40bb58239d4390292fe7495e7a89d2b1a109
1 #
2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # $Id$
9 include $(TOPDIR)/rules.mk
11 PKG_NAME:=genext2fs
12 PKG_VERSION:=1.4.1
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/genext2fs
16 PKG_MD5SUM:=b7b6361bcce2cedff1ae437fadafe53b
18 include $(INCLUDE_DIR)/host-build.mk
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 \
39 endef
41 define Host/Compile
42 $(MAKE) -C $(HOST_BUILD_DIR) \
43 CFLAGS="$(HOST_CFLAGS) -include getline.h" \
44 all
45 endef
47 define Host/Install
48 install -m0755 $(HOST_BUILD_DIR)/genext2fs $(STAGING_DIR_HOST)/bin/
49 endef
51 define Host/Clean
52 rm -f $(STAGING_DIR_HOST)/bin/genext2fs
53 endef
55 $(eval $(call HostBuild))