Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= iperf
  5. PKG_VERSION:= 2.0.4
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 8c5bc14cc2ea55f18f22afe3c23e3dcb
  8. PKG_DESCR:= Internet Protocol bandwidth measuring tool
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= libpthread
  11. PKG_URL:= http://sourceforge.net/projects/iperf
  12. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=iperf/}
  13. PKG_NEED_CXX:= 1
  14. PKG_CXX:= IPERF
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,IPERF,iperf,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  18. TARGET_CXXFLAGS:= $(filter-out -flto,$(TARGET_CXXFLAGS))
  19. ifeq ($(ADK_TOOLCHAIN_GCC_USE_SSP),y)
  20. TARGET_LDFLAGS+= -lssp
  21. endif
  22. ifeq ($(ADK_COMPILE_IPERF_WITH_UCLIBCXX),y)
  23. TARGET_CXXFLAGS+= -fno-builtin -fno-rtti -nostdinc++
  24. TARGET_LDFLAGS+= -nodefaultlibs
  25. CONFIGURE_ENV+= LIBS="-luClibc++ -lc -lm -lgcc_s -lpthread"
  26. else
  27. CONFIGURE_ENV+= LIBS="-lc -lm -lgcc_s -lpthread"
  28. endif
  29. iperf-install:
  30. ${INSTALL_DIR} ${IDIR_IPERF}/usr/bin
  31. ${INSTALL_BIN} ${WRKINST}/usr/bin/iperf ${IDIR_IPERF}/usr/bin
  32. include ${TOPDIR}/mk/pkg-bottom.mk