5562N/A#
5562N/A# CDDL HEADER START
5562N/A#
5562N/A# The contents of this file are subject to the terms of the
5562N/A# Common Development and Distribution License (the "License").
5562N/A# You may not use this file except in compliance with the License.
5562N/A#
5562N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5562N/A# or http://www.opensolaris.org/os/licensing.
5562N/A# See the License for the specific language governing permissions
5562N/A# and limitations under the License.
5562N/A#
5562N/A# When distributing Covered Code, include this CDDL HEADER in each
5562N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5562N/A# If applicable, add the following below this CDDL HEADER, with the
5562N/A# fields enclosed by brackets "[]" replaced with your own identifying
5562N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5562N/A#
5562N/A# CDDL HEADER END
5562N/A#
5680N/A
5680N/A#
5562N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
5562N/A#
5680N/ABUILD_BITS= 64
5680N/ACOMPILER= gcc
5562N/Ainclude ../../../make-rules/shared-macros.mk
7259N/Ainclude libsif-macros.mk
5562N/A
7259N/ACOMPONENT_NAME= $(LIBSIF_COMPONENT_NAME)
7259N/ACOMPONENT_VERSION= $(LIBSIF_COMPONENT_VERSION)
7118N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
7118N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
5562N/ACOMPONENT_ARCHIVE_HASH= \
7118N/A sha256:ffa472db19614ff27988875ed474e6dcd233273c14dec3ad589ff149288d44b3
7118N/ACOMPONENT_SERVER= download.oracle.com
7259N/ACOMPONENT_ARCHIVE_URL= http://$(COMPONENT_SERVER)/otn-pub/oss/networking/$(COMPONENT_ARCHIVE)
5622N/ACOMPONENT_BUGDB= library/ofuv_psif
5562N/A
5680N/Ainclude ../ofed-component.mk
5562N/A
7118N/AREMOVE_OLD_SRC= sif.h sif_user.h sif_int_user.h os_header.h psif_api.h psif_endian.h psif_hw_print.c psif_hw_print.h psif_hw_data* \
7118N/A psif_hw_setget* psif_hw_macro* kernel_types.h
5562N/A# --disable-libcheck is not a supported option for this component
5562N/ADISABLE_LIBCHECK=
5562N/A
5562N/ALIBS += -libverbs
5562N/ALDFLAGS += -L$(PROTO_DIR)/$(CONFIGURE_LIBDIR.$(BITS))
5562N/A
5680N/ACPPFLAGS += -DSOLARIS -I../../include/sif/ -I../../include/psifapi/ -I../../$(COMPONENT_SRC)/src/
5562N/A
5706N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/infiniband
5706N/A
5562N/ACOMPONENT_PREP_ACTION += cd $(COMPONENT_SRC)/src/ ; rm $(REMOVE_OLD_SRC) ; cd - ; \
5562N/A (cd $(@D); \
5562N/A autoreconf -ivf ; \
5562N/A aclocal --force ; \
5562N/A libtoolize --copy --force --ltdl ; \
5562N/A autoconf --force ; \
5562N/A autoheader --force)
5562N/A
5562N/ACOMPONENT_POST_INSTALL_ACTION =\
5562N/A $(RM) $(PROTO_DIR)/$(CONFIGURE_LIBDIR.32)/$(COMPONENT_NAME).la;\
5680N/A $(RM) $(PROTO_DIR)/$(CONFIGURE_LIBDIR.64)/$(COMPONENT_NAME).la;