OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 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 | |||
8 | include $(TOPDIR)/rules.mk |
||
9 | |||
10 | PKG_NAME:=maccalc |
||
11 | PKG_RELEASE:=1 |
||
12 | PKG_LICENSE:=GPL-2.0 |
||
13 | |||
14 | PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) |
||
15 | |||
16 | include $(INCLUDE_DIR)/package.mk |
||
17 | |||
18 | define Package/maccalc |
||
19 | SECTION:=utils |
||
20 | CATEGORY:=Utilities |
||
21 | TITLE:=MAC address calculation |
||
22 | endef |
||
23 | |||
24 | define Package/maccalc/description |
||
25 | This package contains a MAC address manipulation utility. |
||
26 | endef |
||
27 | |||
28 | define Build/Configure |
||
29 | endef |
||
30 | |||
31 | define Build/Compile |
||
32 | $(MAKE) -C $(PKG_BUILD_DIR) \ |
||
33 | CC="$(TARGET_CC)" \ |
||
34 | CFLAGS="$(TARGET_CFLAGS) -Wall" \ |
||
35 | LDFLAGS="$(TARGET_LDFLAGS)" |
||
36 | endef |
||
37 | |||
38 | define Package/maccalc/install |
||
39 | $(INSTALL_DIR) $(1)/usr/sbin |
||
40 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/maccalc $(1)/usr/sbin/ |
||
41 | endef |
||
42 | |||
43 | $(eval $(call BuildPackage,maccalc)) |