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.
28 define Build
/Configure
32 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
34 CFLAGS
="$(TARGET_CFLAGS) -Wall" \
35 LDFLAGS
="$(TARGET_LDFLAGS)"
38 define Package
/maccalc
/install
39 $(INSTALL_DIR
) $(1)/usr
/sbin
40 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/maccalc
$(1)/usr
/sbin
/
43 $(eval
$(call BuildPackage
,maccalc
))