Makefile 912 B

123456789101112131415161718192021222324252627282930313233
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include ${TOPDIR}/rules.mk
  6. PKG_NAME:= iperf
  7. PKG_VERSION:= 2.0.4
  8. PKG_RELEASE:= 1
  9. PKG_MD5SUM:= 8c5bc14cc2ea55f18f22afe3c23e3dcb
  10. MASTER_SITES:= ${MASTER_SITE_SOURCEFORGE:=iperf/}
  11. include ${TOPDIR}/mk/package.mk
  12. $(eval $(call PKG_template,IPERF,iperf,${PKG_VERSION}-${PKG_RELEASE}))
  13. CONFIGURE_STYLE= gnu
  14. CONFIGURE_ENV+= ac_cv_func_malloc_0_nonnull=yes \
  15. LIBS="-lc -lm -lgcc_s -lpthread"
  16. BUILD_STYLE= auto
  17. INSTALL_STYLE= auto
  18. ifeq ($(ADK_TARGET_LIB_UCLIBCXX),y)
  19. TCXXFLAGS+= -fno-builtin -fno-rtti -nostdinc++
  20. TLDFLAGS+= -nodefaultlibs
  21. CONFIGURE_ENV+= LIBS="-luClibc++ -lc -lm -lgcc_s -lpthread"
  22. endif
  23. post-install:
  24. ${INSTALL_DIR} ${IDIR_IPERF}/usr/bin
  25. ${INSTALL_BIN} ${WRKINST}/usr/bin/iperf ${IDIR_IPERF}/usr/bin
  26. include ${TOPDIR}/mk/pkg-bottom.mk