2003-06-11 09:27:45 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# ttcp
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
#
|
2006-01-20 22:01:59 +01:00
|
|
|
TTCP_SOURCE_URL=http://ftp.sunet.se/pub/network/monitoring/ttcp
|
2003-06-11 09:27:45 +02:00
|
|
|
TTCP_SOURCE=ttcp.c
|
|
|
|
TTCP_BUILD_DIR=$(BUILD_DIR)/ttcp
|
|
|
|
|
|
|
|
$(DL_DIR)/$(TTCP_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(TTCP_SOURCE_URL)/$(TTCP_SOURCE)
|
|
|
|
|
|
|
|
$(TTCP_BUILD_DIR)/.unpacked: $(DL_DIR)/$(TTCP_SOURCE)
|
|
|
|
-mkdir $(TTCP_BUILD_DIR)
|
|
|
|
cp -af $(DL_DIR)/$(TTCP_SOURCE) $(TTCP_BUILD_DIR)
|
|
|
|
touch $(TTCP_BUILD_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(TTCP_BUILD_DIR)/.configured: $(TTCP_BUILD_DIR)/.unpacked
|
2005-11-24 07:53:24 +01:00
|
|
|
touch $(TTCP_BUILD_DIR)/.configured
|
2003-06-11 09:27:45 +02:00
|
|
|
|
|
|
|
$(TTCP_BUILD_DIR)/ttcp: $(TTCP_BUILD_DIR)/.configured
|
|
|
|
$(TARGET_CC) -O2 -o $(TTCP_BUILD_DIR)/ttcp $(TTCP_BUILD_DIR)/$(TTCP_SOURCE)
|
|
|
|
|
|
|
|
$(TARGET_DIR)/usr/bin/ttcp: $(TTCP_BUILD_DIR)/ttcp
|
|
|
|
cp -af $(TTCP_BUILD_DIR)/ttcp $(TARGET_DIR)/usr/bin/
|
|
|
|
|
|
|
|
ttcp: $(TARGET_DIR)/usr/bin/ttcp
|
|
|
|
|
2003-11-12 10:31:12 +01:00
|
|
|
ttcp-source: $(DL_DIR)/$(TTCP_SOURCE)
|
|
|
|
|
2003-06-11 09:27:45 +02:00
|
|
|
ttcp-clean:
|
|
|
|
rm -f $(TTCP_BUILD_DIR)/*.o $(TTCP_BUILD_DIR)/ttcp
|
|
|
|
|
|
|
|
ttcp-dirclean:
|
|
|
|
rm -rf $(TTCP_BUILD_DIR)
|
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_TTCP)),y)
|
|
|
|
TARGETS+=ttcp
|
|
|
|
endif
|