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.
8 include $(TOPDIR)/rules.mk
14 PKG_BUILD_DIR:=$(BUILD_DIR)/ttcp
16 include $(INCLUDE_DIR)/package.mk
21 TITLE:=A TCP connection performance tester
22 URL:=https://dev.openwrt.org/browser/packages/net/ttcp/
25 define Package/ttcp/description
26 A small utility to test TCP connection performance.
30 $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/ttcp ttcp.c
33 define Package/ttcp/install
34 $(INSTALL_DIR) $(1)/usr/bin
35 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ttcp $(1)/usr/bin/
38 $(eval $(call BuildPackage,ttcp))