2003-06-11 09:27:45 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# ttcp
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
#
|
2007-07-11 16:06:06 +02:00
|
|
|
TTCP_VERSION:=
|
2006-01-20 22:01:59 +01:00
|
|
|
TTCP_SOURCE_URL=http://ftp.sunet.se/pub/network/monitoring/ttcp
|
2007-07-11 16:06:06 +02:00
|
|
|
TTCP_SOURCE=ttcp$(TTCP_VERSION).c
|
2009-01-15 00:53:20 +01:00
|
|
|
TTCP_DIR=$(BUILD_DIR)/ttcp$(TTCP_VERSION)
|
2003-06-11 09:27:45 +02:00
|
|
|
|
|
|
|
$(DL_DIR)/$(TTCP_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(TTCP_SOURCE_URL),$(TTCP_SOURCE))
|
2003-06-11 09:27:45 +02:00
|
|
|
|
2009-01-15 00:53:20 +01:00
|
|
|
$(TTCP_DIR)/.unpacked: $(DL_DIR)/$(TTCP_SOURCE)
|
|
|
|
-mkdir $(TTCP_DIR)
|
|
|
|
cp -af $(DL_DIR)/$(TTCP_SOURCE) $(TTCP_DIR)
|
2011-08-31 23:35:04 +02:00
|
|
|
support/scripts/apply-patches.sh $(TTCP_DIR) package/ttcp/ ttcp-\*.patch
|
2009-01-15 00:53:20 +01:00
|
|
|
touch $(TTCP_DIR)/.unpacked
|
2003-06-11 09:27:45 +02:00
|
|
|
|
2009-01-15 00:53:20 +01:00
|
|
|
$(TTCP_DIR)/.configured: $(TTCP_DIR)/.unpacked
|
|
|
|
touch $(TTCP_DIR)/.configured
|
2003-06-11 09:27:45 +02:00
|
|
|
|
2009-01-15 00:53:20 +01:00
|
|
|
$(TTCP_DIR)/ttcp: $(TTCP_DIR)/.configured
|
|
|
|
$(TARGET_CC) -O2 -o $(TTCP_DIR)/ttcp $(TTCP_DIR)/$(TTCP_SOURCE)
|
2003-06-11 09:27:45 +02:00
|
|
|
|
2009-01-15 00:53:20 +01:00
|
|
|
$(TARGET_DIR)/usr/bin/ttcp: $(TTCP_DIR)/ttcp
|
|
|
|
cp -af $(TTCP_DIR)/ttcp $(TARGET_DIR)/usr/bin/
|
2003-06-11 09:27:45 +02:00
|
|
|
|
2007-08-22 14:35:41 +02:00
|
|
|
ttcp: $(TARGET_DIR)/usr/bin/ttcp
|
2003-06-11 09:27:45 +02:00
|
|
|
|
2003-11-12 10:31:12 +01:00
|
|
|
ttcp-source: $(DL_DIR)/$(TTCP_SOURCE)
|
|
|
|
|
2003-06-11 09:27:45 +02:00
|
|
|
ttcp-clean:
|
2009-01-15 00:53:20 +01:00
|
|
|
rm -f $(TTCP_DIR)/*.o $(TTCP_DIR)/ttcp
|
2003-06-11 09:27:45 +02:00
|
|
|
|
|
|
|
ttcp-dirclean:
|
2009-01-15 00:53:20 +01:00
|
|
|
rm -rf $(TTCP_DIR)
|
2003-06-11 09:27:45 +02:00
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_TTCP),y)
|
2005-02-10 04:06:39 +01:00
|
|
|
TARGETS+=ttcp
|
|
|
|
endif
|