Makefile revision 369
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#
369N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
369N/A#
369N/Ainclude ../../../make-rules/shared-macros.mk
369N/A
369N/ACOMPONENT_NAME= libibverbs
369N/ACOMPONENT_VERSION= 1.1.4
369N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
369N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC)-1.22.g7257cd3.tar.gz
369N/ACOMPONENT_ARCHIVE_HASH= sha1:7d7d466278ce5e18f74dd50ca14c3bba544f1e13
369N/ACOMPONENT_ARCHIVE_URL= http://www.openfabrics.org/downloads/libibverbs/$(COMPONENT_ARCHIVE)
369N/A
369N/Ainclude $(WS_TOP)/make-rules/prep.mk
369N/Ainclude $(WS_TOP)/make-rules/configure.mk
369N/Ainclude ../ofed.mk
369N/A
369N/A# add flags to get at extra bits from other components' source trees
369N/ACPPFLAGS += -I$(PWD)/../libmthca/libmthca-1.0.5/src
369N/ACPPFLAGS += -I$(PWD)/../libmlx4/libmlx4-1.0.1/src
369N/ACPPFLAGS += -I$(PWD)/../librdmacm/librdmacm-1.0.14.1/include
369N/A
369N/ALIBS += -lsocket -lnsl -lkstat
369N/A
369N/A# --disable-libcheck is not a supported option for this component
369N/ADISABLE_LIBCHECK=
369N/A
369N/ACOMPONENT_PREP_ACTION = \
369N/A cp ofa_solaris.h $(@D)/include/infiniband ; \
369N/A cp solaris_compatibility.c $(@D)/src ; \
369N/A cd ../libmthca; gmake prep; \
369N/A cd ../libmlx4; gmake prep; \
369N/A cd ../librdmacm; gmake prep
369N/A
369N/ACOMPONENT_POST_INSTALL_ACTION = \
369N/A $(RM) $(PROTO_DIR)/$(CONFIGURE_BINDIR.$(BITS))/ibv_uc_pingpong; \
369N/A $(RM) $(PROTO_DIR)/$(CONFIGURE_BINDIR.64)/ibv_devices \
369N/A $(PROTO_DIR)/$(CONFIGURE_BINDIR.64)/ibv_devinfo \
369N/A $(PROTO_DIR)/$(CONFIGURE_BINDIR.64)/ibv_asyncwatch \
369N/A $(PROTO_DIR)/$(CONFIGURE_BINDIR.64)/ibv_rc_pingpong \
369N/A $(PROTO_DIR)/$(CONFIGURE_BINDIR.64)/ibv_uc_pingpong \
369N/A $(PROTO_DIR)/$(CONFIGURE_BINDIR.64)/ibv_ud_pingpong \
369N/A $(PROTO_DIR)/$(CONFIGURE_BINDIR.64)/ibv_srq_pingpong \
369N/A $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man1/ibv_uc_pingpong.1 \
369N/A $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/ibv_reg_xrc_rcv_qp.3 \
369N/A $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/ibv_create_xrc_srq.3 \
369N/A $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/ibv_open_xrc_domain.3 \
369N/A $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/ibv_close_xrc_domain.3 \
369N/A $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/ibv_unreg_xrc_rcv_qp.3 \
369N/A $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/ibv_query_xrc_rcv_qp.3 \
369N/A $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/ibv_create_xrc_rcv_qp.3 \
369N/A $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/ibv_modify_xrc_rcv_qp.3
369N/A
369N/A# common targets
369N/Abuild: $(BUILD_32_and_64)
369N/A
369N/Ainstall: $(INSTALL_32_and_64)
369N/A
369N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
369N/A
369N/Atest: $(NO_TESTS)
369N/A
369N/Ainclude $(WS_TOP)/make-rules/depend.mk