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