Makefile revision 1258
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#
1237N/A# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
1237N/A#
1237N/Ainclude ../../make-rules/shared-macros.mk
1237N/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
1237N/Ainclude ../../make-rules/prep.mk
1237N/Ainclude ../../make-rules/configure.mk
1237N/Ainclude ../../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)
1237N/A
1237N/A# Remove Linux specific functionality.
1237N/ACONFIGURE_OPTIONS += ac_cv_dnet_linux_pf_packet=no
1237N/A
1237N/A# Uncomment if you have the Check unit testing framework installed.
1237N/A#CONFIGURE_OPTIONS += --with-check=/usr
1237N/A
1237N/A# common targets
1237N/Abuild: $(BUILD_32_and_64)
1237N/A
1237N/Ainstall: $(INSTALL_32_and_64)
1237N/A
1237N/A# Tests for libdnet are not enabled by default as they use the Check unit
1237N/A# testing framework which is currently not present on Solaris. See:
1237N/A# http://check.sourceforge.net/ for more details.
1237N/A# If you do have Check on your system, then uncomment the TEST_32 line.
1237N/Atest: $(NO_TESTS)
1237N/A#test: $(TEST_32_and_64)
1237N/A
1237N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
1237N/A
1237N/Ainclude ../../make-rules/depend.mk