Makefile revision 5680
1N/A#
1N/A# CDDL HEADER START
1N/A#
1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License (the "License").
1N/A# You may not use this file except in compliance with the License.
1N/A#
1N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A# or http://www.opensolaris.org/os/licensing.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A#
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A#
1N/A# CDDL HEADER END
1N/A#
1N/A
1N/A#
1N/A# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
1N/A#
1N/ABUILD_BITS= 64_and_32
1N/Ainclude ../../make-rules/shared-macros.mk
1N/A
1N/APATH=$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN)
1N/A
1N/ACOMPONENT_NAME= libdnet
1N/ACOMPONENT_VERSION= 1.12
1N/ACOMPONENT_PROJECT_URL= http://code.google.com/p/libdnet/
1N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
1N/ACOMPONENT_ARCHIVE_HASH= \
1N/A sha256:83b33039787cf99990e977cef7f18a5d5e7aaffc4505548a83d31bd3515eb026
1N/ACOMPONENT_ARCHIVE_URL= http://libdnet.googlecode.com/files/$(COMPONENT_ARCHIVE)
1N/ACOMPONENT_BUGDB= library/libdnet
1N/A
1N/ATPNO= 9402
1N/A
1N/ATEST_TARGET= install $(TEST_32_and_64)
1N/ASYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_32_and_64)
1N/Ainclude $(WS_MAKE_RULES)/common.mk
1N/A
1N/A# Fix 64-bit linking done via compiler.
1N/ALDFLAGS += $(CC_BITS)
1N/ACOMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
1N/A
1N/A# Needed to generate libraries with a .so extension.
1N/ACOMPONENT_PREP_ACTION = \
1N/A (cd $(@D) ; libtoolize --automake --copy ; \
1N/A aclocal -I config ; \
1N/A autoheader ; \
1N/A automake --add-missing --copy ; \
1N/A autoconf)
1N/A
1N/A# Remove Linux specific functionality.
1N/ACONFIGURE_OPTIONS += ac_cv_dnet_linux_pf_packet=no
1N/A
1N/ACONFIGURE_OPTIONS += --with-check=/usr
1N/A
1N/A# Currently only support for Python 2.7.
1N/ACONFIGURE_OPTIONS += --with-python
1N/A
1N/APKG_MACROS += MACHINE=$(shell uname -m)
# Needed for "gmake test" to work successfully.
# If SHELLOPTS is exported (as it is by the userland makefiles),
# then all shell options get exported to child invocations of bash,
# which results in test failures due to nounset and xtrace being
# set unexpectedly, and errors such as "$1: unbound variable" and
# diffs failing due to script tracing in output files.
unexport SHELLOPTS
COMPONENT_TEST_DIR = $(@D)/test/check
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
COMPONENT_TEST_TRANSFORMS += \
'-n ' \
'-e "/TOTAL/p" ' \
'-e "/SKIP/p" ' \
'-e "/PASS/p" ' \
'-e "/FAIL/p" ' \
'-e "/ERROR/p" '
# Needed to build the test programs.
COMPONENT_PRE_SYSTEM_TEST_ACTION += \
(cd $(@D)/src ; $(GMAKE) libdnet.la )
COMPONENT_SYSTEM_TEST_DIR = $(@D)/test/check
# Get correct libdnet.so.1 from the proto area.
TEST_LIBPATH.32 = $(PROTOUSRLIBDIR)
TEST_LIBPATH.64 = $(PROTOUSRLIBDIR64)
COMPONENT_TEST_ENV += LD_LIBRARY_PATH=$(TEST_LIBPATH.$(BITS))
ASLR_MODE = $(ASLR_ENABLE)
REQUIRED_PACKAGES += developer/test/check
REQUIRED_PACKAGES += runtime/python-27
REQUIRED_PACKAGES += shell/ksh93