components/iperf/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Wed, 29 Aug 2012 11:05:56 -0700
changeset 957 255465c5756f
parent 800 2ad056ed89ec
child 1058 34d7aaa03423
permissions -rw-r--r--
Close of build 04.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
311
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     1
#
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     3
#
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     7
#
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    12
#
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    18
#
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    20
#
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    21
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    22
#
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    23
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
311
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    24
#
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    25
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    27
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    28
COMPONENT_NAME=		iperf
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    29
COMPONENT_VERSION=	2.0.4
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    30
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 593
diff changeset
    31
COMPONENT_PROJECT_URL=	http://sourceforge.net/projects/iperf/
311
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    33
COMPONENT_ARCHIVE_HASH=	\
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    34
    sha256:3b52f1c178d6a99c27114929d5469c009197d15379c967b329bafb956f397944
311
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_URL=	http://downloads.sourceforge.net/iperf/$(COMPONENT_ARCHIVE)
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    36
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    37
include ../../make-rules/prep.mk
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    38
include ../../make-rules/configure.mk
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    39
include ../../make-rules/ips.mk
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    40
593
e7866b3e5de1 7112803 iperf -s -B does not work with multicast addresses anymore
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 311
diff changeset
    41
COMPONENT_PRE_CONFIGURE_ACTION = \
e7866b3e5de1 7112803 iperf -s -B does not work with multicast addresses anymore
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 311
diff changeset
    42
	($(CLONEY) $(SOURCE_DIR) $(@D))
e7866b3e5de1 7112803 iperf -s -B does not work with multicast addresses anymore
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 311
diff changeset
    43
311
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    44
CONFIGURE_OPTIONS  +=	PTHREAD_CFLAGS=-pthreads
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    45
CONFIGURE_OPTIONS  +=	CFLAGS="$(CFLAGS)"
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    46
CONFIGURE_OPTIONS  +=	CXXFLAGS="$(CXXFLAGS)"
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    47
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    48
# these default to unnecessary gcc options, which
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    49
# are all that prevents us from using studio. so null them.
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    50
COMPONENT_BUILD_ARGS  +=	AM_CXXFLAGS=""
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    51
COMPONENT_BUILD_ARGS  +=	AM_CFLAGS=""
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    52
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    53
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    54
# common targets
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    55
build:		$(BUILD_32)
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    56
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    57
install:	$(INSTALL_32)
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    58
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    59
test:		$(NO_TESTS)
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    60
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    61
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    62
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    63
include ../../make-rules/depend.mk