Makefile revision 4760
1237N/A#
1237N/A# CDDL HEADER START
1237N/A#
1237N/A# The contents of this file are subject to the terms of the
1237N/A# Common Development and Distribution License (the "License").
1237N/A# You may not use this file except in compliance with the License.
1237N/A#
1237N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1237N/A# or http://www.opensolaris.org/os/licensing.
1237N/A# See the License for the specific language governing permissions
1237N/A# and limitations under the License.
1237N/A#
1237N/A# When distributing Covered Code, include this CDDL HEADER in each
1237N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1237N/A# If applicable, add the following below this CDDL HEADER, with the
1237N/A# fields enclosed by brackets "[]" replaced with your own identifying
1237N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1237N/A#
1237N/A# CDDL HEADER END
1237N/A#
3817N/A# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
1237N/A#
1237N/Ainclude ../../make-rules/shared-macros.mk
1237N/A
4340N/APATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
4340N/A
1237N/ACOMPONENT_NAME= libdnet
1237N/ACOMPONENT_VERSION= 1.12
1237N/ACOMPONENT_PROJECT_URL= http://code.google.com/p/libdnet/
1237N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1237N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
1237N/ACOMPONENT_ARCHIVE_HASH= \
1237N/A sha256:83b33039787cf99990e977cef7f18a5d5e7aaffc4505548a83d31bd3515eb026
1237N/ACOMPONENT_ARCHIVE_URL= http://libdnet.googlecode.com/files/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= library/libdnet
1237N/A
2899N/ATPNO= 9402
2899N/A
3817N/Ainclude $(WS_MAKE_RULES)/prep.mk
3817N/Ainclude $(WS_MAKE_RULES)/configure.mk
3817N/Ainclude $(WS_MAKE_RULES)/ips.mk
1237N/A
1237N/A# Needed to generate libraries with a .so extension.
1237N/ACOMPONENT_PREP_ACTION = \
1237N/A (cd $(@D) ; libtoolize --automake --copy ; \
1237N/A aclocal -I config ; \
1237N/A autoheader ; \
1237N/A automake --add-missing --copy ; \
1237N/A autoconf)
1237N/A
1237N/A# Set -m32 or -m64 correctly for 32 and 64 bit versions.
1237N/ACC += $(CC_BITS)
4340N/ALDFLAGS += $(CC_BITS)
1237N/A
1237N/A# Remove Linux specific functionality.
1237N/ACONFIGURE_OPTIONS += ac_cv_dnet_linux_pf_packet=no
1237N/A
4289N/ACONFIGURE_OPTIONS += --with-check=/usr
4289N/A
4340N/A# Currently only support for Python 2.7.
4340N/ACONFIGURE_OPTIONS += --with-python
4340N/A
4340N/ACOMPONENT_BUILD_ARGS += CC="$(CC)"
4340N/ACOMPONENT_BUILD_ARGS += LDFLAGS="$(LDFLAGS)"
4340N/A
4340N/APKG_MACROS += MACHINE=$(shell uname -m)
4340N/A
4289N/A# Needed for "gmake test" to work successfully.
4289N/A# If SHELLOPTS is exported (as it is by the userland makefiles),
4289N/A# then all shell options get exported to child invocations of bash,
4289N/A# which results in test failures due to nounset and xtrace being
4289N/A# set unexpectedly, and errors such as "$1: unbound variable" and
4289N/A# diffs failing due to script tracing in output files.
4289N/Aunexport SHELLOPTS
4289N/A
4289N/ACOMPONENT_TEST_DIR = $(@D)/test/check
4289N/A
4289N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
1237N/A
4760N/ACOMPONENT_TEST_TRANSFORMS += \
4760N/A '-n ' \
4760N/A '-e "/TOTAL/p" ' \
4760N/A '-e "/SKIP/p" ' \
4760N/A '-e "/PASS/p" ' \
4760N/A '-e "/FAIL/p" ' \
4760N/A '-e "/ERROR/p" '
4760N/A
4760N/A# Needed to build the test programs.
4760N/ACOMPONENT_PRE_SYSTEM_TEST_ACTION += \
4760N/A (cd $(@D)/src ; $(GMAKE) libdnet.la )
4760N/A
4760N/ACOMPONENT_SYSTEM_TEST_DIR = $(@D)/test/check
4760N/A
4760N/A# Get correct libdnet.so.1 from the proto area.
4760N/ATEST_LIBPATH.32 = $(PROTOUSRLIBDIR)
4760N/ATEST_LIBPATH.64 = $(PROTOUSRLIBDIR64)
4760N/ACOMPONENT_TEST_ENV += LD_LIBRARY_PATH=$(TEST_LIBPATH.$(BITS))
4760N/A
1475N/AASLR_MODE = $(ASLR_ENABLE)
1475N/A
3477N/Aconfigure: $(CONFIGURE_32_and_64)
3477N/A
1237N/Abuild: $(BUILD_32_and_64)
1237N/A
1237N/Ainstall: $(INSTALL_32_and_64)
1237N/A
4760N/Atest: install $(TEST_32_and_64)
1237N/A
4760N/Asystem-test: configure $(SYSTEM_TEST_32_and_64)
4337N/A
4289N/AREQUIRED_PACKAGES += developer/test/check
4340N/AREQUIRED_PACKAGES += runtime/python-27
3817N/AREQUIRED_PACKAGES += shell/ksh93
3817N/AREQUIRED_PACKAGES += system/library