[adm5120] fix support for 2.6.38 kernel
[openwrt.git] / package / maccalc / Makefile
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
13 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/maccalc
18 SECTION:=utils
19 CATEGORY:=Utilities
20 TITLE:=MAC address calculation
21 endef
22
23 define Package/maccalc/description
24 This package contains a MAC address manipulation utility.
25 endef
26
27 define Build/Prepare
28 mkdir -p $(PKG_BUILD_DIR)
29 $(CP) ./src/* $(PKG_BUILD_DIR)/
30 endef
31
32 define Build/Configure
33 endef
34
35 define Build/Compile
36 $(MAKE) -C $(PKG_BUILD_DIR) \
37 CC="$(TARGET_CC)" \
38 CFLAGS="$(TARGET_CFLAGS) -Wall" \
39 LDFLAGS="$(TARGET_LDFLAGS)"
40 endef
41
42 define Package/maccalc/install
43 $(INSTALL_DIR) $(1)/usr/sbin
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/maccalc $(1)/usr/sbin/
45 endef
46
47 $(eval $(call BuildPackage,maccalc))
This page took 0.039015 seconds and 5 git commands to generate.