2007-02-16 21:16:24 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# iperf
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
|
|
|
IPERF_VERSION:=2.0.2
|
|
|
|
IPERF_SOURCE:=iperf-$(IPERF_VERSION).tar.gz
|
|
|
|
IPERF_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/iperf
|
|
|
|
IPERF_DIR:=$(BUILD_DIR)/iperf-$(IPERF_VERSION)
|
|
|
|
IPERF_CAT:=$(ZCAT)
|
|
|
|
|
|
|
|
$(DL_DIR)/$(IPERF_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(IPERF_SITE)/$(IPERF_SOURCE)
|
|
|
|
|
|
|
|
$(IPERF_DIR)/.unpacked: $(DL_DIR)/$(IPERF_SOURCE)
|
|
|
|
$(IPERF_CAT) $(DL_DIR)/$(IPERF_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
|
|
toolchain/patch-kernel.sh $(IPERF_DIR) package/iperf/ iperf\*.patch
|
2007-08-11 23:47:28 +02:00
|
|
|
$(CONFIG_UPDATE) $(IPERF_DIR)
|
2007-02-16 21:16:24 +01:00
|
|
|
touch $(IPERF_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(IPERF_DIR)/.configured: $(IPERF_DIR)/.unpacked
|
2007-08-22 14:35:41 +02:00
|
|
|
(cd $(IPERF_DIR); rm -rf config.cache; \
|
2007-02-16 21:16:24 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2007-02-16 21:16:24 +01:00
|
|
|
ac_cv_func_malloc_0_nonnull=yes \
|
|
|
|
./configure \
|
|
|
|
--with-gnu-ld \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
2007-06-26 19:45:08 +02:00
|
|
|
$(DISABLE_IPV6) \
|
2007-02-16 21:16:24 +01:00
|
|
|
--disable-dependency-tracking \
|
|
|
|
--disable-web100 \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--sbindir=/usr/sbin \
|
|
|
|
--libexecdir=/usr/sbin \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/man \
|
|
|
|
--infodir=/usr/info \
|
2007-08-12 00:26:56 +02:00
|
|
|
--includedir=$(STAGING_DIR)/usr/include \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-02-16 21:16:24 +01:00
|
|
|
touch $(IPERF_DIR)/.configured
|
|
|
|
|
|
|
|
$(IPERF_DIR)/src/iperf: $(IPERF_DIR)/.configured
|
|
|
|
$(MAKE) CC=$(TARGET_CC) -C $(IPERF_DIR)
|
2007-08-21 03:53:57 +02:00
|
|
|
-$(STRIP) $(STRIP_STRIP_UNNEEDED) $(IPERF_DIR)/src/iperf
|
2007-02-16 21:16:24 +01:00
|
|
|
|
|
|
|
$(TARGET_DIR)/usr/bin/iperf: $(IPERF_DIR)/src/iperf
|
|
|
|
cp $(IPERF_DIR)/src/iperf $(TARGET_DIR)/usr/bin/iperf
|
|
|
|
|
|
|
|
iperf: $(TARGET_DIR)/usr/bin/iperf
|
|
|
|
|
|
|
|
iperf-source: $(DL_DIR)/$(IPERF_SOURCE)
|
|
|
|
|
|
|
|
iperf-clean:
|
2007-08-22 11:56:41 +02:00
|
|
|
@if [ -d $(IPERF_KDIR)/Makefile ]; then \
|
|
|
|
$(MAKE) -C $(IPERF_DIR) clean; \
|
2007-08-21 21:20:18 +02:00
|
|
|
fi
|
2007-02-16 21:16:24 +01:00
|
|
|
|
|
|
|
iperf-dirclean:
|
|
|
|
rm -rf $(IPERF_DIR)
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_IPERF)),y)
|
|
|
|
TARGETS+=iperf
|
|
|
|
endif
|