Makefile revision 4759
11f343b8117dbf56931f537820c2749a8232fec2Liam P. White#
11f343b8117dbf56931f537820c2749a8232fec2Liam P. White# CDDL HEADER START
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux#
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux# The contents of this file are subject to the terms of the
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux# Common Development and Distribution License (the "License").
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux# You may not use this file except in compliance with the License.
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux#
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux# or http://www.opensolaris.org/os/licensing.
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux# See the License for the specific language governing permissions
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux# and limitations under the License.
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux#
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux# When distributing Covered Code, include this CDDL HEADER in each
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
11f343b8117dbf56931f537820c2749a8232fec2Liam P. White# If applicable, add the following below this CDDL HEADER, with the
11f343b8117dbf56931f537820c2749a8232fec2Liam P. White# fields enclosed by brackets "[]" replaced with your own identifying
11f343b8117dbf56931f537820c2749a8232fec2Liam P. White# information: Portions Copyright [yyyy] [name of copyright owner]
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux#
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux# CDDL HEADER END
11f343b8117dbf56931f537820c2749a8232fec2Liam P. White#
1a71e5db977570fb40ad8689ee7a31ecc7540f11mental# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
aded4b44e9194df7c9905c5787d1c7a9553d12cdMarkus Engel#
d74e415b7dd25ccb70d40a9f11ec99f23b57ed63Markus Engelinclude ../../make-rules/shared-macros.mk
470cc275d97606f1c400867ef00fd79fbf349b66Markus Engel
470cc275d97606f1c400867ef00fd79fbf349b66Markus EngelCOMPONENT_NAME= libpcap
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutuxCOMPONENT_VERSION= 1.7.4
a2e796b608034e2c62290378d713058b8b58ef8fMarkus EngelCOMPONENT_PROJECT_URL= http://www.tcpdump.org/
cdef31ce8c9e6d220e3a1a6b8a06ac0a3eb5d1edMarkus EngelCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutuxCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
470cc275d97606f1c400867ef00fd79fbf349b66Markus EngelCOMPONENT_ARCHIVE_HASH= \
470cc275d97606f1c400867ef00fd79fbf349b66Markus Engel sha256:7ad3112187e88328b85e46dce7a9b949632af18ee74d97ffc3f2b41fe7f448b0
470cc275d97606f1c400867ef00fd79fbf349b66Markus EngelCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)release/$(COMPONENT_ARCHIVE)
f232be2471038c563c60f7311537aad1628d52baMarkus EngelCOMPONENT_BUGDB= library/libpcap
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutuxTPNO= 23891
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux
470cc275d97606f1c400867ef00fd79fbf349b66Markus Engelinclude $(WS_MAKE_RULES)/prep.mk
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutuxinclude $(WS_MAKE_RULES)/configure.mk
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutuxinclude $(WS_MAKE_RULES)/ips.mk
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux
1a71e5db977570fb40ad8689ee7a31ecc7540f11mental#
470cc275d97606f1c400867ef00fd79fbf349b66Markus Engel# libpcap Makefile does not use CFLAGS when building shared library
51dc158adbe2c9d1df3c941cbf78b90944d1afc2Markus Engel# so we require the following line to add the -m option to CC
51dc158adbe2c9d1df3c941cbf78b90944d1afc2Markus Engel#
51dc158adbe2c9d1df3c941cbf78b90944d1afc2Markus EngelCC += $(CC_BITS)
203b91a85466178dd14a24236e0e42539bc4a24bMarkus EngelCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -DHAVE_CONFIG_H"
203b91a85466178dd14a24236e0e42539bc4a24bMarkus EngelCONFIGURE_OPTIONS += --disable-dbus
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutuxASLR_MODE = $(ASLR_NOT_APPLICABLE)
35e0418c921e7057987f57ba30ba95ec5e03c9e5knutux
# common targets
configure: $(CONFIGURE_32_and_64)
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
test: $(NO_TESTS)
system-test: $(NO_TESTS)
REQUIRED_PACKAGES += developer/lexer/flex
REQUIRED_PACKAGES += developer/parser/bison
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/library