Makefile 1.1 KB

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