"Fossies" - the Fresh Open Source Software Archive

Member "buildroot-2021.05/package/netperf/netperf.mk" (6 Jun 2021, 767 Bytes) of package /linux/privat/buildroot-2021.05.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Make source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes reports for "netperf.mk": 2021.05-rc3_vs_2021.05 or 2021.02.2_vs_2021.05.

    1 ################################################################################
    2 #
    3 # netperf
    4 #
    5 ################################################################################
    6 
    7 NETPERF_VERSION = 2.7.0
    8 NETPERF_SITE = http://sources.buildroot.org/netperf
    9 NETPERF_SOURCE = netperf-$(NETPERF_VERSION).tar.bz2
   10 # gcc 5+ defaults to gnu99 which breaks netperf
   11 NETPERF_CONF_ENV = \
   12     ac_cv_func_setpgrp_void=set \
   13     CFLAGS="$(TARGET_CFLAGS) -std=gnu89"
   14 NETPERF_CONF_OPTS = --enable-demo=yes
   15 NETPERF_LICENSE = netperf license
   16 NETPERF_LICENSE_FILES = COPYING
   17 
   18 define NETPERF_INSTALL_TARGET_CMDS
   19     $(INSTALL) -m 0755 $(@D)/src/netperf \
   20         $(TARGET_DIR)/usr/bin/netperf
   21     $(INSTALL) -m 0755 $(@D)/src/netserver \
   22         $(TARGET_DIR)/usr/bin/netserver
   23 endef
   24 
   25 $(eval $(autotools-package))