Makefile 1009 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #
  2. # Copyright (C) 2010 Gabor Juhos <juhosg@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:=rbcfg
  9. PKG_RELEASE:=1
  10. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  11. include $(INCLUDE_DIR)/package.mk
  12. define Package/rbcfg
  13. SECTION:=utils
  14. CATEGORY:=Utilities
  15. TITLE:=RouterBOOT configuration tool
  16. DEPENDS:=@TARGET_ar71xx
  17. endef
  18. define Package/rbcfg/description
  19. This package contains an utility to manipulate RouterBOOT configuration on the
  20. MikroTIK RB-4XX devices.
  21. endef
  22. define Build/Prepare
  23. mkdir -p $(PKG_BUILD_DIR)
  24. $(CP) ./src/* $(PKG_BUILD_DIR)/
  25. endef
  26. define Build/Configure
  27. endef
  28. define Build/Compile
  29. $(MAKE) -C $(PKG_BUILD_DIR) \
  30. CC="$(TARGET_CC)" \
  31. CFLAGS="$(TARGET_CFLAGS) -Wall" \
  32. LDFLAGS="$(TARGET_LDFLAGS)"
  33. endef
  34. define Package/rbcfg/install
  35. $(INSTALL_DIR) $(1)/usr/sbin
  36. $(INSTALL_BIN) $(PKG_BUILD_DIR)/rbcfg $(1)/usr/sbin/
  37. endef
  38. $(eval $(call BuildPackage,rbcfg))