Makefile revision 4289
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# CDDL HEADER START
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# The contents of this file are subject to the terms of the
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# Common Development and Distribution License (the "License").
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# You may not use this file except in compliance with the License.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# or http://www.opensolaris.org/os/licensing.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# See the License for the specific language governing permissions
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# and limitations under the License.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# When distributing Covered Code, include this CDDL HEADER in each
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# If applicable, add the following below this CDDL HEADER, with the
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# fields enclosed by brackets "[]" replaced with your own identifying
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# information: Portions Copyright [yyyy] [name of copyright owner]
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# CDDL HEADER END
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiinclude ../../make-rules/shared-macros.mk
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_NAME= libdnet
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_VERSION= 1.12
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_PROJECT_URL= http://code.google.com/p/libdnet/
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_ARCHIVE_HASH= \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi sha256:83b33039787cf99990e977cef7f18a5d5e7aaffc4505548a83d31bd3515eb026
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_ARCHIVE_URL= http://libdnet.googlecode.com/files/$(COMPONENT_ARCHIVE)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_BUGDB= library/libdnet
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiTPNO= 9402
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiinclude $(WS_MAKE_RULES)/prep.mk
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiinclude $(WS_MAKE_RULES)/configure.mk
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiinclude $(WS_MAKE_RULES)/ips.mk
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# Needed to generate libraries with a .so extension.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_PREP_ACTION = \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi (cd $(@D) ; libtoolize --automake --copy ; \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi aclocal -I config ; \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi autoheader ; \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi automake --add-missing --copy ; \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi autoconf)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# Set -m32 or -m64 correctly for 32 and 64 bit versions.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCC += $(CC_BITS)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# Remove Linux specific functionality.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCONFIGURE_OPTIONS += ac_cv_dnet_linux_pf_packet=no
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiCONFIGURE_OPTIONS += --with-check=/usr
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# Needed for "gmake test" to work successfully.
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# If SHELLOPTS is exported (as it is by the userland makefiles),
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# then all shell options get exported to child invocations of bash,
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi# which results in test failures due to nounset and xtrace being
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# set unexpectedly, and errors such as "$1: unbound variable" and
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# diffs failing due to script tracing in output files.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiunexport SHELLOPTS
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_TEST_DIR = $(@D)/test/check
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiASLR_MODE = $(ASLR_ENABLE)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiconfigure: $(CONFIGURE_32_and_64)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindibuild: $(BUILD_32_and_64)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiinstall: $(INSTALL_32_and_64)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcinditest: $(TEST_32_and_64)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiREQUIRED_PACKAGES += developer/test/check
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiREQUIRED_PACKAGES += shell/ksh93
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiREQUIRED_PACKAGES += system/library
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi