369N/A#
369N/A# CDDL HEADER START
369N/A#
369N/A# The contents of this file are subject to the terms of the
369N/A# Common Development and Distribution License (the "License").
369N/A# You may not use this file except in compliance with the License.
369N/A#
369N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
369N/A# or http://www.opensolaris.org/os/licensing.
369N/A# See the License for the specific language governing permissions
369N/A# and limitations under the License.
369N/A#
369N/A# When distributing Covered Code, include this CDDL HEADER in each
369N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
369N/A# If applicable, add the following below this CDDL HEADER, with the
369N/A# fields enclosed by brackets "[]" replaced with your own identifying
369N/A# information: Portions Copyright [yyyy] [name of copyright owner]
369N/A#
369N/A# CDDL HEADER END
369N/A#
6320N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
369N/A#
369N/Ainclude ../../../make-rules/shared-macros.mk
369N/A
369N/ACOMPONENT_NAME= ibutils
369N/ACOMPONENT_VERSION= 1.5.7
6320N/ACOMPONENT_MINOR_VERSION= 0.2.gbd7e502
369N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
6320N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC)-$(COMPONENT_MINOR_VERSION).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
6320N/A sha256:67a3b417c8d0820400045dd7143674824086c6793a40ded333be50e498d9a703
6320N/ACOMPONENT_ARCHIVE_URL= https://www.openfabrics.org/downloads/ibutils/$(COMPONENT_ARCHIVE)
369N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/configure.mk
369N/Ainclude ../ofed.mk
369N/A
6320N/ALIBS += -lopensm -losmvendor -losmcomp -libumad -libmad
369N/A
4994N/ALDFLAGS.64 += -L $(PROTO_DIR)/usr/lib/$(MACH64)
4994N/A
369N/A# we want to use the libcheck here
369N/ADISABLE_LIBCHECK=
369N/A
369N/ACONFIGURE_ENV += INSTALL_DATA="$(INSTALL) -m 644"
369N/A
4994N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
6320N/ACONFIGURE_OPTIONS += --with-osm=$(PROTOUSRDIR)
6320N/ACONFIGURE_OPTIONS += --with-osm-libs=$(PROTOUSRLIBDIR64)
4994N/ACONFIGURE_OPTIONS += --bindir=$(CONFIGURE_SBINDIR.$(BITS))
4994N/A
4994N/ACONFIGURE_SBINDIR.32 = $(CONFIGURE_PREFIX)/sbin/$(MACH32)
369N/A
369N/APROTOMAN = $(PROTO_DIR)/$(CONFIGURE_MANDIR)
369N/A
369N/ACLEANUP_FILES =\
369N/A $(PROTOUSRLIBDIR)/libibdm.la\
369N/A $(PROTOUSRLIBDIR)/libibdmcom.la\
369N/A $(PROTOUSRLIBDIR)/libibdm.a\
369N/A $(PROTOUSRLIBDIR)/libibdm.so\
369N/A $(PROTOUSRLIBDIR)/libibdm.so.1 \
369N/A $(PROTOUSRLIBDIR)/libibdmcom.a\
369N/A $(PROTOUSRLIBDIR)/libibdm.so.1.1.1 \
369N/A $(PROTOUSRLIBDIR)/libibdmcom.so\
369N/A $(PROTOUSRLIBDIR)/libibdmcom.so.1 \
369N/A $(PROTOUSRLIBDIR)/libibdmcom.so.1.1.1\
369N/A $(PROTOUSRLIBDIR)/libibsysapi.a\
369N/A $(PROTOUSRLIBDIR)/libibsysapi.la \
369N/A $(PROTOUSRLIBDIR)/libibsysapi.so\
369N/A $(PROTOUSRLIBDIR)/libibsysapi.so.1 \
369N/A $(PROTOUSRLIBDIR)/libibsysapi.so.1.0.0 \
369N/A $(PROTOUSRBINDIR)/ibtopodiff\
369N/A $(PROTOUSRBINDIR)/git_version.tcl \
369N/A $(PROTOUSRBINDIR)/ibdmsh*\
369N/A $(PROTOUSRBINDIR)/ibdmtr* \
369N/A $(PROTOUSRBINDIR)/ibdmchk*\
369N/A $(PROTOUSRBINDIR)/ibdiagui* \
369N/A $(PROTOUSRBINDIR)/ibnlparse*\
369N/A $(PROTOUSRBINDIR)/ibdiagpath* \
369N/A $(PROTOMAN)/man1//ibdmsh.1 \
369N/A $(PROTOMAN)/man1//ibdmtr.1\
369N/A $(PROTOMAN)/man1//ibdmchk.1\
369N/A $(PROTOMAN)/man1//ibdiagui.1 \
369N/A $(PROTOMAN)/man1//ibdiagpath.1\
369N/A $(PROTOMAN)/man1//ibtopodiff.1 \
369N/A $(PROTOMAN)/man1//ibdm-ibnl-file.1\
369N/A $(PROTOMAN)/man1//ibdm-topo-file.1 \
369N/A $(PROTOMAN)/man3//ibnd_discover_fabric.3\
369N/A $(PROTOMAN)/man3//ibnd_find_node_dr.3 \
369N/A $(PROTOMAN)/man3//ibnd_find_node_guid.3\
369N/A $(PROTOMAN)/man3//ibnd_iter_nodes.3 \
369N/A $(PROTOMAN)/man3//ibnd_iter_nodes_type.3\
369N/A $(PROTOMAN)/man3//ibnd_show_progress.3 \
369N/A
369N/ACLEANUP_DIRS=\
369N/A $(PROTOUSRINCDIR)/ibdm\
369N/A $(PROTOUSRLIBDIR)/ibdiagui1.*\
369N/A $(PROTOUSRLIBDIR)/ibdiagpath1.*
369N/A
369N/ACOMPONENT_POST_INSTALL_ACTION=\
369N/A $(RM) $(CLEANUP_FILES);\
369N/A $(RM) -r $(CLEANUP_DIRS)
369N/A
369N/A# common targets
4994N/Abuild: $(BUILD_32_and_64)
369N/A
4994N/Ainstall: $(INSTALL_32_and_64)
369N/A
369N/A
369N/Atest: $(NO_TESTS)
369N/A