Makefile revision 4337
2487N/A#
2487N/A# CDDL HEADER START
2487N/A#
2487N/A# The contents of this file are subject to the terms of the
2487N/A# Common Development and Distribution License (the "License").
2487N/A# You may not use this file except in compliance with the License.
2487N/A#
2487N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2487N/A# or http://www.opensolaris.org/os/licensing.
2487N/A# See the License for the specific language governing permissions
2487N/A# and limitations under the License.
2487N/A#
2487N/A# When distributing Covered Code, include this CDDL HEADER in each
2487N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2487N/A# If applicable, add the following below this CDDL HEADER, with the
2487N/A# fields enclosed by brackets "[]" replaced with your own identifying
2487N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2487N/A#
2487N/A# CDDL HEADER END
2487N/A#
2487N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
2487N/A#
2487N/Ainclude ../../make-rules/shared-macros.mk
2487N/A
3215N/ACOMPONENT_NAME= tcpdump
2487N/ACOMPONENT_VERSION= 4.5.1
2487N/ACOMPONENT_PROJECT_URL= http://www.tcpdump.org/
2487N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2487N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2487N/ACOMPONENT_ARCHIVE_HASH= \
2487N/A sha256:14ab39657128f3a650aed4cf455f76c7590601087b6101c253d698f6e73f0b96
2487N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)release/$(COMPONENT_ARCHIVE)
2487N/ACOMPONENT_BUGDB= utility/tcpdump
2487N/A
2487N/ATPNO= 16021
2487N/A
2487N/Ainclude $(WS_MAKE_RULES)/prep.mk
2487N/Ainclude $(WS_MAKE_RULES)/configure.mk
2487N/Ainclude $(WS_MAKE_RULES)/ips.mk
2487N/A
2487N/A# fix my alignment issues instead of falling over on sparc
studio_ALIGN.sparc.64=-xmemalign=16i
CONFIGURE_OPTIONS.sparc += ac_cv___attribute__=no
CONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.$(MACH))
# lazyloading (indirectly enabled by -Bdirect) seems to cause problems with
# libpcap device enumeration.
LD_B_DIRECT=
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
CONFIGURE_OPTIONS += --enable-ipv6=yes
CONFIGURE_OPTIONS += --with-user=nobody
CONFIGURE_OPTIONS += --without-crypto
ASLR_MODE = $(ASLR_ENABLE)
# common targets
configure: $(CONFIGURE_64)
build: $(BUILD_64)
install: $(INSTALL_64)
COMPONENT_PRE_TEST_ACTION = \
($(CP) -r $(SOURCE_DIR)/tests $(@D)/.)
test: $(TEST_64)
system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/libpcap