Makefile 663 B

123456789101112131415161718192021222324252627282930313233343536
  1. #
  2. # Copyright (C) 2011-2012 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:=padjffs2
  9. PKG_VERSION:=1
  10. include $(INCLUDE_DIR)/host-build.mk
  11. define Host/Prepare
  12. mkdir -p $(HOST_BUILD_DIR)
  13. $(CP) ./src/* $(HOST_BUILD_DIR)/
  14. find $(HOST_BUILD_DIR) -name .svn | $(XARGS) rm -rf
  15. endef
  16. define Host/Compile
  17. $(MAKE) -C $(HOST_BUILD_DIR)
  18. endef
  19. define Host/Configure
  20. endef
  21. define Host/Install
  22. $(CP) $(HOST_BUILD_DIR)/padjffs2 $(STAGING_DIR_HOST)/bin/
  23. endef
  24. define Host/Clean
  25. rm -f $(STAGING_DIR_HOST)/bin/padjffs2
  26. endef
  27. $(eval $(call HostBuild))