Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. HOST_CONFIGURE_ARGS = \
  15. --target=$(GNU_HOST_NAME) \
  16. --host=$(GNU_HOST_NAME) \
  17. --build=$(GNU_HOST_NAME) \
  18. --program-prefix="" \
  19. --program-suffix="" \
  20. --prefix=/usr \
  21. --exec-prefix=/usr \
  22. --bindir=/usr/bin \
  23. --sbindir=/usr/sbin \
  24. --libexecdir=/usr/lib \
  25. --sysconfdir=/etc \
  26. --datadir=/usr/share \
  27. --localstatedir=/var \
  28. --mandir=/usr/man \
  29. --infodir=/usr/info \
  30. define Host/Compile
  31. $(MAKE) -C $(HOST_BUILD_DIR) \
  32. CFLAGS="$(HOST_CFLAGS)" \
  33. LDFLAGS="$(HOST_LDFLAGS) $(HOST_STATIC_LINKING)" \
  34. all
  35. endef
  36. define Host/Install
  37. install -m0755 $(HOST_BUILD_DIR)/genext2fs $(STAGING_DIR_HOST)/bin/
  38. endef
  39. define Host/Clean
  40. rm -f $(STAGING_DIR_HOST)/bin/genext2fs
  41. endef
  42. $(eval $(call HostBuild))