kumquat-buildroot/package/ttcp/ttcp.mk
Samuel Martin 9cb9b7430f ttcp: convert to generic-package infrastructure
[Peter: minor fixes]
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-10-08 23:10:20 +02:00

26 lines
586 B
Makefile

#############################################################
#
# ttcp
#
#############################################################
#
TTCP_VERSION =
TTCP_SITE = http://ftp.sunet.se/pub/network/monitoring/ttcp
TTCP_SOURCE = ttcp.c
TTCP_LICENSE = public domain
define TTCP_EXTRACT_CMDS
cp -f -t $(@D) $(DL_DIR)/$(TTCP_SOURCE)
endef
define TTCP_BUILD_CMDS
$(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) \
-o $(@D)/ttcp $(@D)/$(TTCP_SOURCE)
endef
define TTCP_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/ttcp $(TARGET_DIR)/usr/bin/ttcp
endef
$(eval $(generic-package))