Makefile revision 4486
5a2910119ec0b878a0d7ca91918b97e9d40a936dTimo Sirainen#
5a2910119ec0b878a0d7ca91918b97e9d40a936dTimo Sirainen# CDDL HEADER START
5a2910119ec0b878a0d7ca91918b97e9d40a936dTimo Sirainen#
bcc55b1547f2b23fc98a1d0ef3c9b1f85912a902Teemu Huovila# The contents of this file are subject to the terms of the
5a2910119ec0b878a0d7ca91918b97e9d40a936dTimo Sirainen# Common Development and Distribution License (the "License").
5a2910119ec0b878a0d7ca91918b97e9d40a936dTimo Sirainen# You may not use this file except in compliance with the License.
5a2910119ec0b878a0d7ca91918b97e9d40a936dTimo Sirainen#
5a2910119ec0b878a0d7ca91918b97e9d40a936dTimo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu Huovila# or http://www.opensolaris.org/os/licensing.
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu Huovila# See the License for the specific language governing permissions
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu Huovila# and limitations under the License.
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu Huovila#
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu Huovila# When distributing Covered Code, include this CDDL HEADER in each
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu Huovila# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu Huovila# If applicable, add the following below this CDDL HEADER, with the
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu Huovila# fields enclosed by brackets "[]" replaced with your own identifying
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu Huovila# information: Portions Copyright [yyyy] [name of copyright owner]
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu Huovila#
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu Huovila# CDDL HEADER END
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu Huovila#
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu Huovila# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu Huovila#
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu Huovilainclude ../../make-rules/shared-macros.mk
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu Huovila
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu HuovilaCOMPONENT_NAME= tcpdump
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu HuovilaCOMPONENT_VERSION= 4.7.4
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu HuovilaCOMPONENT_PROJECT_URL= http://www.tcpdump.org/
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu HuovilaCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu HuovilaCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu HuovilaCOMPONENT_ARCHIVE_HASH= \
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu Huovila sha256:5a321f0fb959b928f26112c9f49f81d754c23c1d8ffb0feb69304fee06b77e0a
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu HuovilaCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)release/$(COMPONENT_ARCHIVE)
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu HuovilaCOMPONENT_BUGDB= utility/tcpdump
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu Huovila
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu HuovilaTPNO= 22949
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu Huovila
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu Huovila# Prevent macro redefinition error
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu HuovilaCFLAGS += -D _NETINET_IP_H
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu Huovila
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu Huovilainclude $(WS_MAKE_RULES)/prep.mk
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu Huovilainclude $(WS_MAKE_RULES)/configure.mk
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu Huovilainclude $(WS_MAKE_RULES)/ips.mk
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu Huovila
3a54211bd6c4dc3f8687c16020770551cf83a548Teemu Huovila# fix my alignment issues instead of falling over on sparc
5a2910119ec0b878a0d7ca91918b97e9d40a936dTimo Sirainenstudio_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
build: $(BUILD_64)
install: $(INSTALL_64)
COMPONENT_PRE_TEST_ACTION = \
($(CP) -r $(SOURCE_DIR)/tests $(@D)/.)
test: $(TEST_64)
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/libpcap