smartmontools: moved to github
[packages.git] / utils / testusb / Makefile
1 #
2 # Copyright (C) 2007 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:=testusb
11 PKG_RELEASE:=1
12
13 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
14 PKG_BUILD_DEPENDS := libpthread
15
16 include $(INCLUDE_DIR)/package.mk
17
18 define Package/testusb
19   SECTION:=utils
20   CATEGORY:=Utilities
21   DEPENDS:=@DEVEL +libpthread
22   TITLE:=USB testing utility
23   URL:=http://www.linux-usb.org/usbtest/testusb.c
24 endef
25
26 define Package/testusb/description
27         This tool can be used to perform various tests with use of the usbtest driver.
28 endef
29
30 define Build/Prepare
31         $(CP) ./src/* $(PKG_BUILD_DIR)/
32 endef
33
34 define Build/Compile
35         $(TARGET_CC) $(TARGET_CFLAGS) -Os -lpthread $(PKG_BUILD_DIR)/testusb.c -o $(PKG_BUILD_DIR)/$(PKG_NAME)
36 endef
37
38 define Package/testusb/install
39         $(INSTALL_DIR) $(1)/usr/sbin
40         $(INSTALL_BIN) $(PKG_BUILD_DIR)/testusb $(1)/usr/sbin/
41 endef
42
43 $(eval $(call BuildPackage,testusb))