Makefile 1.1 KB

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