1
0

Makefile 854 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #
  2. # Copyright (C) 2011 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:=maccalc
  9. PKG_RELEASE:=1
  10. PKG_LICENSE:=GPL-2.0
  11. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  12. include $(INCLUDE_DIR)/package.mk
  13. define Package/maccalc
  14. SECTION:=utils
  15. CATEGORY:=Utilities
  16. TITLE:=MAC address calculation
  17. endef
  18. define Package/maccalc/description
  19. This package contains a MAC address manipulation utility.
  20. endef
  21. define Build/Configure
  22. endef
  23. define Build/Compile
  24. $(MAKE) -C $(PKG_BUILD_DIR) \
  25. CC="$(TARGET_CC)" \
  26. CFLAGS="$(TARGET_CFLAGS) -Wall" \
  27. LDFLAGS="$(TARGET_LDFLAGS)"
  28. endef
  29. define Package/maccalc/install
  30. $(INSTALL_DIR) $(1)/usr/sbin
  31. $(INSTALL_BIN) $(PKG_BUILD_DIR)/maccalc $(1)/usr/sbin/
  32. endef
  33. $(eval $(call BuildPackage,maccalc))