components/iperf/Makefile
author John Beck <John.Beck@Oracle.COM>
Fri, 21 Nov 2014 16:37:26 -0800
changeset 2225 f064d3d3190d
parent 1948 2d1537e7942d
child 3817 30b42c38bbc4
permissions -rw-r--r--
20078677 Userland Makefiles should support a configure: target
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
#
1772
6f53e94c4c78 18423046 Enable aslr in slang
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents: 1184
diff changeset
    23
# Copyright (c) 2011, 2014, 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
1184
69d5cf2d40e4 16099633 Update Iperf to 2.0.5
Mahmood Ali <mahmood.ali@oracle.com>
parents: 1058
diff changeset
    29
COMPONENT_VERSION=	2.0.5
311
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=	\
1184
69d5cf2d40e4 16099633 Update Iperf to 2.0.5
Mahmood Ali <mahmood.ali@oracle.com>
parents: 1058
diff changeset
    34
    sha256:636b4eff0431cea80667ea85a67ce4c68698760a9837e1e9d13096d20362265b
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)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    36
COMPONENT_BUGDB=	utility/iperf
311
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    37
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1772
diff changeset
    38
TPNO=			5730
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1772
diff changeset
    39
311
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    40
include ../../make-rules/prep.mk
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    41
include ../../make-rules/configure.mk
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    42
include ../../make-rules/ips.mk
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    43
593
e7866b3e5de1 7112803 iperf -s -B does not work with multicast addresses anymore
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 311
diff changeset
    44
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
    45
	($(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
    46
311
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    47
CONFIGURE_OPTIONS  +=	PTHREAD_CFLAGS=-pthreads
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    48
CONFIGURE_OPTIONS  +=	CFLAGS="$(CFLAGS)"
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    49
CONFIGURE_OPTIONS  +=	CXXFLAGS="$(CXXFLAGS)"
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    50
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    51
# these default to unnecessary gcc options, which
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    52
# 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
    53
COMPONENT_BUILD_ARGS  +=	AM_CXXFLAGS=""
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    54
COMPONENT_BUILD_ARGS  +=	AM_CFLAGS=""
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    55
1184
69d5cf2d40e4 16099633 Update Iperf to 2.0.5
Mahmood Ali <mahmood.ali@oracle.com>
parents: 1058
diff changeset
    56
ASLR_MODE = $(ASLR_ENABLE)
311
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    57
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    58
# common targets
2225
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    59
configure:	$(CONFIGURE_64)
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    60
1772
6f53e94c4c78 18423046 Enable aslr in slang
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents: 1184
diff changeset
    61
build:		$(BUILD_64)
311
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    62
1772
6f53e94c4c78 18423046 Enable aslr in slang
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents: 1184
diff changeset
    63
install:	$(INSTALL_64)
311
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    64
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    65
test:		$(NO_TESTS)
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    66
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    67
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    68
b90791448c31 7055718 move iperf to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    69
include ../../make-rules/depend.mk