override default configure to use --target=host and --build=host (closes: #760)
[openwrt/staging/mkresin.git] / openwrt / toolchain / ext2fs / 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.4rc1
13
14 PKG_BUILD_DIR:=$(TOOL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
17 PKG_MD5SUM:=664431bf6737df1c265500e1f0b5d40c
18 PKG_CAT:=zcat
19
20 include $(INCLUDE_DIR)/host-build.mk
21
22 define Build/Configure
23 ( cd $(PKG_BUILD_DIR); \
24 ./configure \
25 --target=$(GNU_HOST_NAME) \
26 --host=$(GNU_HOST_NAME) \
27 --build=$(GNU_HOST_NAME) \
28 --program-prefix="" \
29 --program-suffix="" \
30 --prefix=/usr \
31 --exec-prefix=/usr \
32 --bindir=/usr/bin \
33 --sbindir=/usr/sbin \
34 --libexecdir=/usr/lib \
35 --sysconfdir=/etc \
36 --datadir=/usr/share \
37 --localstatedir=/var \
38 --mandir=/usr/man \
39 --infodir=/usr/info \
40 )
41 endef
42
43 define Build/Compile
44 $(MAKE) -C $(PKG_BUILD_DIR) all
45 endef
46
47 define Build/Install
48 install -m0755 $(PKG_BUILD_DIR)/genext2fs $(STAGING_DIR)/bin/
49 endef
50
51 $(eval $(call HostBuild))