Makefile 967 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. PKG_FLAGS:=nonshared
  12. include $(INCLUDE_DIR)/package.mk
  13. define Package/rbcfg
  14. SECTION:=utils
  15. CATEGORY:=Utilities
  16. SUBMENU:=Boot Loaders
  17. TITLE:=RouterBOOT configuration tool
  18. DEPENDS:=@TARGET_ar71xx
  19. endef
  20. define Package/rbcfg/description
  21. This package contains an utility to manipulate RouterBOOT configuration on the
  22. MikroTIK RB-4XX devices.
  23. endef
  24. define Build/Configure
  25. endef
  26. define Build/Compile
  27. $(MAKE) -C $(PKG_BUILD_DIR) \
  28. CC="$(TARGET_CC)" \
  29. CFLAGS="$(TARGET_CFLAGS) -Wall" \
  30. LDFLAGS="$(TARGET_LDFLAGS)"
  31. endef
  32. define Package/rbcfg/install
  33. $(INSTALL_DIR) $(1)/usr/sbin
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/rbcfg $(1)/usr/sbin/
  35. endef
  36. $(eval $(call BuildPackage,rbcfg))