2 # Copyright (C) 2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
16 include $(INCLUDE_DIR)/package.mk
18 define Package/maccalc
21 TITLE:=MAC address calculation
24 define Package/maccalc/description
25 This package contains a MAC address manipulation utility.
29 mkdir -p $(PKG_BUILD_DIR)
30 $(CP) ./src/* $(PKG_BUILD_DIR)/
33 define Build/Configure
37 $(MAKE) -C $(PKG_BUILD_DIR) \
39 CFLAGS="$(TARGET_CFLAGS) -Wall" \
40 LDFLAGS="$(TARGET_LDFLAGS)"
43 define Package/maccalc/install
44 $(INSTALL_DIR) $(1)/usr/sbin
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/maccalc $(1)/usr/sbin/
48 $(eval $(call BuildPackage,maccalc))