2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_BUILD_DIR:=$(BUILD_DIR)/ttcp
17 include $(INCLUDE_DIR)/package.mk
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/
28 $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/ttcp ttcp.c
31 define Package/ttcp/install
32 install -d -m0755 $(1)/usr/bin
33 install -m0755 $(PKG_BUILD_DIR)/ttcp $(1)/usr/bin/
36 $(eval $(call BuildPackage,ttcp))