Makefile revision 844
70N/A#
70N/A# CDDL HEADER START
70N/A#
70N/A# The contents of this file are subject to the terms of the
911N/A# Common Development and Distribution License (the "License").
851N/A# You may not use this file except in compliance with the License.
70N/A#
70N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
70N/A# or http://www.opensolaris.org/os/licensing.
70N/A# See the License for the specific language governing permissions
70N/A# and limitations under the License.
70N/A#
70N/A# When distributing Covered Code, include this CDDL HEADER in each
70N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
70N/A# If applicable, add the following below this CDDL HEADER, with the
70N/A# fields enclosed by brackets "[]" replaced with your own identifying
70N/A# information: Portions Copyright [yyyy] [name of copyright owner]
70N/A#
70N/A# CDDL HEADER END
70N/A#
70N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
70N/A#
70N/Ainclude ../../../make-rules/shared-macros.mk
70N/A
70N/ACOMPONENT_NAME= libibverbs
70N/ACOMPONENT_VERSION= 1.1.4
70N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
70N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC)-1.22.g7257cd3.tar.gz
70N/ACOMPONENT_ARCHIVE_HASH= \
70N/A sha256:1e04aa9d518e3dc372fdda6bd25bf072caae4c85c38d0ae095a614104aa583d4
70N/ACOMPONENT_ARCHIVE_URL= http://www.openfabrics.org/downloads/libibverbs/$(COMPONENT_ARCHIVE)
70N/A
70N/Ainclude $(WS_TOP)/make-rules/prep.mk
70N/Ainclude $(WS_TOP)/make-rules/configure.mk
70N/Ainclude ../ofed.mk
493N/A
70N/A# add flags to get at extra bits from other components' source trees
70N/ACPPFLAGS += -I$(PWD)/../libmlx4/libmlx4-1.0.1/src
851N/ACPPFLAGS += -I$(PWD)/../librdmacm/librdmacm-1.0.14.1/include
70N/A
911N/ALIBS += -lsocket -lnsl -lkstat
911N/A
911N/A# --disable-libcheck is not a supported option for this component
911N/ADISABLE_LIBCHECK=
70N/A
70N/ACOMPONENT_PREP_ACTION = \
70N/A cp ofa_solaris.h $(@D)/include/infiniband ; \
70N/A cp solaris_compatibility.c $(@D)/src ; \
70N/A cd ../libmlx4; gmake prep; \
70N/A cd ../librdmacm; gmake prep
70N/A
70N/ACOMPONENT_POST_INSTALL_ACTION = \
70N/A $(RM) $(PROTO_DIR)/$(CONFIGURE_BINDIR.$(BITS))/ibv_uc_pingpong; \
493N/A $(RM) $(PROTO_DIR)/$(CONFIGURE_BINDIR.64)/ibv_devices \
70N/A $(PROTO_DIR)/$(CONFIGURE_BINDIR.64)/ibv_devinfo \
70N/A $(PROTO_DIR)/$(CONFIGURE_BINDIR.64)/ibv_asyncwatch \
493N/A $(PROTO_DIR)/$(CONFIGURE_BINDIR.64)/ibv_rc_pingpong \
70N/A $(PROTO_DIR)/$(CONFIGURE_BINDIR.64)/ibv_uc_pingpong \
70N/A $(PROTO_DIR)/$(CONFIGURE_BINDIR.64)/ibv_ud_pingpong \
70N/A $(PROTO_DIR)/$(CONFIGURE_BINDIR.64)/ibv_srq_pingpong \
70N/A $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man1/ibv_uc_pingpong.1 \
70N/A $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/ibv_reg_xrc_rcv_qp.3 \
$(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/ibv_create_xrc_srq.3 \
$(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/ibv_open_xrc_domain.3 \
$(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/ibv_close_xrc_domain.3 \
$(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/ibv_unreg_xrc_rcv_qp.3 \
$(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/ibv_query_xrc_rcv_qp.3 \
$(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/ibv_create_xrc_rcv_qp.3 \
$(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/ibv_modify_xrc_rcv_qp.3
# common targets
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
test: $(NO_TESTS)
include $(WS_TOP)/make-rules/depend.mk