Blame view

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