[packages] ntpd: the daemon depends on mdnsresponder (provides libdns_sd.so)
[openwrt/svn-archive/archive.git] / utils / huaweiaktbbo / Makefile
1 #
2 # Copyright (C) 2008-2009 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:=huaweiaktbbo
11 PKG_RELEASE:=1
12
13 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/huaweiaktbbo
18 SECTION:=utils
19 CATEGORY:=Utilities
20 DEPENDS:=+libusb
21 TITLE:=Huawei e220 configuration tool
22 endef
23
24 define Build/Prepare
25 mkdir -p $(PKG_BUILD_DIR)
26 $(CP) ./src/* $(PKG_BUILD_DIR)
27 endef
28
29 define Build/Compile
30 $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS) \
31 -lusb \
32 -o $(PKG_BUILD_DIR)/huaweiAktBbo \
33 $(PKG_BUILD_DIR)/huaweiAktBbo.c
34 endef
35
36 define Package/huaweiaktbbo/install
37 $(INSTALL_DIR) $(1)/usr/bin
38 $(INSTALL_BIN) $(PKG_BUILD_DIR)/huaweiAktBbo $(1)/usr/bin/
39 endef
40
41 $(eval $(call BuildPackage,huaweiaktbbo))