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
13 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
15 include $(INCLUDE_DIR)/package.mk
17 define Package/maccalc
20 TITLE:=MAC address calculation
23 define Package/maccalc/description
24 This package contains a MAC address manipulation utility.
28 mkdir -p $(PKG_BUILD_DIR)
29 $(CP) ./src/* $(PKG_BUILD_DIR)/
32 define Build/Configure
36 $(MAKE) -C $(PKG_BUILD_DIR) \
38 CFLAGS="$(TARGET_CFLAGS) -Wall" \
39 LDFLAGS="$(TARGET_LDFLAGS)"
42 define Package/maccalc/install
43 $(INSTALL_DIR) $(1)/usr/sbin
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/maccalc $(1)/usr/sbin/
47 $(eval $(call BuildPackage,maccalc))