replace lots of manual install commands with INSTALL_* variables
[packages.git] / net / ttcp / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=ttcp
12 PKG_VERSION:=3.8
13 PKG_RELEASE:=1
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/ttcp
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define Package/ttcp
20   SECTION:=net
21   CATEGORY:=Network
22   TITLE:=A TCP connection performance tester
23   DESCRIPTION:=A small utility to test TCP connection performance
24   URL:=https://dev.openwrt.org/browser/packages/net/ttcp/
25 endef
26
27 define Build/Compile            
28         $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/ttcp ttcp.c
29 endef
30
31 define Package/ttcp/install     
32         $(INSTALL_DIR) $(1)/usr/bin
33         $(INSTALL_BIN) $(PKG_BUILD_DIR)/ttcp $(1)/usr/bin/
34 endef
35
36 $(eval $(call BuildPackage,ttcp))