components/libnet/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Mon, 11 Mar 2013 10:38:09 -0700
branchs11-update
changeset 2520 ceec631e74d1
parent 2434 6c9bb5cf5610
child 1434 c782e620dd26
child 2855 576d5a7857b7
permissions -rw-r--r--
Close of build 10.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
423
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     1
#
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     3
#
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     7
#
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    12
#
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    18
#
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    20
#
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    21
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    22
#
650
e2fc423a4fd5 PSARC 2011/399 Update libnet to 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents: 626
diff changeset
    23
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
423
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    24
#
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    25
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    27
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    28
COMPONENT_NAME=		libnet
650
e2fc423a4fd5 PSARC 2011/399 Update libnet to 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents: 626
diff changeset
    29
COMPONENT_VERSION=	1.1.5
423
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    30
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
650
e2fc423a4fd5 PSARC 2011/399 Update libnet to 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents: 626
diff changeset
    31
COMPONENT_PROJECT_URL=	http://sourceforge.net/projects/libnet-dev/
423
416940827b10 7067759 I cast Ressurect Libnet
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: 650
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: 650
diff changeset
    34
    sha256:75588f8d1232e1df34eccf2dba5e66be197b345a07fae80d8275db994496a20d
650
e2fc423a4fd5 PSARC 2011/399 Update libnet to 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents: 626
diff changeset
    35
COMPONENT_ARCHIVE_URL=	http://cdnetworks-us-2.dl.sourceforge.net/project/libnet-dev/$(COMPONENT_ARCHIVE)
2434
6c9bb5cf5610 15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    36
COMPONENT_BUGDB=	library/libnet
423
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    37
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    38
include ../../make-rules/prep.mk
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    39
include ../../make-rules/configure.mk
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    40
include ../../make-rules/ips.mk
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    41
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    42
COMPONENT_PRE_CONFIGURE_ACTION = \
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    43
	($(CLONEY) $(SOURCE_DIR) $(@D))
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    44
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    45
PKG_PROTO_DIRS += $(COMPONENT_SRC)/doc/man/man3
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    46
COMPILER=	gcc
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    47
CFLAGS += -g -fPIC
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    48
CONFIGURE_OPTIONS  +=		CFLAGS="$(CFLAGS)"
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    49
CONFIGURE_OPTIONS.32 += --srcdir=$(BUILD_DIR_32)
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    50
CONFIGURE_OPTIONS.64 += --srcdir=$(BUILD_DIR_64)
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    51
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    52
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    53
# common targets
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    54
build:		$(BUILD_32_and_64)
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    55
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    56
install:	$(INSTALL_32_and_64)
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    57
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    58
test:		$(NO_TESTS)
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    59
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    60
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    61
416940827b10 7067759 I cast Ressurect Libnet
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    62
include ../../make-rules/depend.mk