usr/src/cmd/tcpdump/Makefile.sfw
author Jon Tibble <meths@btinternet.com>
Sun, 17 Feb 2013 18:37:25 +0000
branchoi_151a
changeset 208 a7a3296ee4c7
parent 5 d07534556b03
permissions -rw-r--r--
Bump tcpdump to 4.1.1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     1
#
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     2
# CDDL HEADER START
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     3
#
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     7
#
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    11
# and limitations under the License.
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    12
#
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    18
#
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    19
# CDDL HEADER END
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    20
#
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    21
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    22
#
208
a7a3296ee4c7 Bump tcpdump to 4.1.1
Jon Tibble <meths@btinternet.com>
parents: 5
diff changeset
    23
# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
3
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    24
#
208
a7a3296ee4c7 Bump tcpdump to 4.1.1
Jon Tibble <meths@btinternet.com>
parents: 5
diff changeset
    25
#ident	"@(#)Makefile.sfw	1.4	10/11/01 SMI"
3
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    26
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    27
VER =		$(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    28
TARBALL =	$(VER).tar.gz
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    29
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    30
include ../Makefile.cmd
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    31
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    32
CONFIGURE_OPTIONS += --enable-ipv6=yes 
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    33
CONFIGURE_OPTIONS += --with-user=nobody
5
d07534556b03 Import sfw build 131
Cyril Plisko <cyril.plisko@grigale.com>
parents: 4
diff changeset
    34
CONFIGURE_OPTIONS += --without-crypto
3
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    35
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    36
all: $(VER)/config.status $(ROOTLIB)/libpcap.so
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    37
	(cd $(VER); env - \
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    38
	    "LD_OPTIONS=-L/usr/lib -R/usr/lib" \
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    39
	    PATH=$(SFW_PATH) \
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    40
	    MAKE=$(GMAKE) \
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    41
	    $(GMAKE) all)
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    42
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    43
$(ROOTLIB)/libpcap.so:
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    44
	(cd ../../lib/libpcap; make -f Makefile.sfw install)
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    45
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    46
install: all 
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    47
	ROOT=$(ROOT) $(SHELL) ./install-sfw
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    48
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    49
$(VER)/config.status: $(VER)/configure
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    50
	(cd $(VER); env - \
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    51
	    CC="$(CC)" \
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    52
	    PATH=$(SFW_PATH) \
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    53
	    CFLAGS="-I$(ROOTINCLUDE)" \
4
834920bc5f09 Import sfw build 130
Cyril Plisko <cyril.plisko@grigale.com>
parents: 3
diff changeset
    54
	    INSTALL="$(INSTALL_PROTO)" \
3
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    55
	    MAKE=$(GMAKE) \
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    56
            $(SHELL) ./configure $(CONFIGURE_OPTIONS))
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    57
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    58
$(VER)/configure: $(VER)/.patched
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    59
	touch $(VER)/.patched
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    60
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    61
clean:
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    62
	-rm -rf $(VER)
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    63
ad3552f8e1ef Import sfw build 129
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    64
include ../Makefile.targ