components/tcpdump/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Wed, 16 Feb 2011 09:44:13 -0800
changeset 91 03e2f81135e4
parent 90 5483a3df388e
child 181 87e11e685b1f
permissions -rw-r--r--
7019432 Move tcpdump to userland (fix build)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
90
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     1
#
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     3
#
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     7
#
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    12
#
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    18
#
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    20
#
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    21
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    22
#
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    23
include ../../make-rules/shared-macros.mk
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    24
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    25
COMPONENT_NAME=		tcpdump
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    26
COMPONENT_VERSION=	4.1.1
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    27
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    28
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    29
COMPONENT_ARCHIVE_HASH=	sha1:8f356cbc781192ecb527623d68db90e06aa9d4b9
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    30
COMPONENT_ARCHIVE_URL=	http://www.tcpdump.org/release/$(COMPONENT_ARCHIVE)
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    31
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    32
include ../../make-rules/prep.mk
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    33
include ../../make-rules/configure.mk
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    34
include ../../make-rules/ips.mk
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    35
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    36
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    37
CONFIGURE_OPTIONS += --enable-ipv6=yes
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    38
CONFIGURE_OPTIONS += --with-user=nobody
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    39
CONFIGURE_OPTIONS += --without-crypto
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    40
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    41
# common targets
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    42
build:          $(BUILD_32)
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    43
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    44
install:        $(INSTALL_32) 
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    45
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    46
test:
91
03e2f81135e4 7019432 Move tcpdump to userland (fix build)
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 90
diff changeset
    47
	@echo "no tests available"
90
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    48
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    49
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    50
BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    51
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    52
include ../../make-rules/depend.mk
5483a3df388e 7019432 Move tcpdump to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    53