Makefile 1.1 KB

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