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 URL:=https://dev.openwrt.org/browser/packages/net/ttcp/
26 define Package/ttcp/description
27 A small utility to test TCP connection performance.
31 $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/ttcp ttcp.c
34 define Package/ttcp/install
35 $(INSTALL_DIR) $(1)/usr/bin
36 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ttcp $(1)/usr/bin/
39 $(eval $(call BuildPackage,ttcp))