Makefile revision 514
d7759bdad133e1e92fe41aab75dd8c1584eda38cjim#
d7759bdad133e1e92fe41aab75dd8c1584eda38cjim# CDDL HEADER START
d7759bdad133e1e92fe41aab75dd8c1584eda38cjim#
4e191199a0aeab09d78df8f5579e745572e8b7bcwsanchez# The contents of this file are subject to the terms of the
f3a5934ca0fb0f0f813bd9d9d06af8937e3f401fjim# Common Development and Distribution License (the "License").
f3a5934ca0fb0f0f813bd9d9d06af8937e3f401fjim# You may not use this file except in compliance with the License.
d7759bdad133e1e92fe41aab75dd8c1584eda38cjim#
d7759bdad133e1e92fe41aab75dd8c1584eda38cjim# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d7759bdad133e1e92fe41aab75dd8c1584eda38cjim# or http://www.opensolaris.org/os/licensing.
d7759bdad133e1e92fe41aab75dd8c1584eda38cjim# See the License for the specific language governing permissions
b3155b9e3b06b20030ec6c16d98f8dabf12ead9cianh# and limitations under the License.
b3155b9e3b06b20030ec6c16d98f8dabf12ead9cianh#
b3155b9e3b06b20030ec6c16d98f8dabf12ead9cianh# When distributing Covered Code, include this CDDL HEADER in each
b3155b9e3b06b20030ec6c16d98f8dabf12ead9cianh# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b3155b9e3b06b20030ec6c16d98f8dabf12ead9cianh# If applicable, add the following below this CDDL HEADER, with the
b3155b9e3b06b20030ec6c16d98f8dabf12ead9cianh# fields enclosed by brackets "[]" replaced with your own identifying
b3155b9e3b06b20030ec6c16d98f8dabf12ead9cianh# information: Portions Copyright [yyyy] [name of copyright owner]
b3155b9e3b06b20030ec6c16d98f8dabf12ead9cianh#
ff1234e45aca1b8171d711ecb87f58b9d9100a99ianh# CDDL HEADER END
ff1234e45aca1b8171d711ecb87f58b9d9100a99ianh#
ff1234e45aca1b8171d711ecb87f58b9d9100a99ianh# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
ff1234e45aca1b8171d711ecb87f58b9d9100a99ianh#
ff1234e45aca1b8171d711ecb87f58b9d9100a99ianhinclude ../../../make-rules/shared-macros.mk
ff1234e45aca1b8171d711ecb87f58b9d9100a99ianh
ff1234e45aca1b8171d711ecb87f58b9d9100a99ianhCOMPONENT_NAME= libibverbs
ff1234e45aca1b8171d711ecb87f58b9d9100a99ianhCOMPONENT_VERSION= 1.1.4
b999f6ba2a266bf9a92687f31bb7e76021ac5891ianhCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2ceedfca3a2fdfdb5ff60ca17f030ce91f6331cbwroweCOMPONENT_ARCHIVE= $(COMPONENT_SRC)-1.22.g7257cd3.tar.gz
2ceedfca3a2fdfdb5ff60ca17f030ce91f6331cbwroweCOMPONENT_ARCHIVE_HASH= sha1:7d7d466278ce5e18f74dd50ca14c3bba544f1e13
2ceedfca3a2fdfdb5ff60ca17f030ce91f6331cbwroweCOMPONENT_ARCHIVE_URL= http://www.openfabrics.org/downloads/libibverbs/$(COMPONENT_ARCHIVE)
2ceedfca3a2fdfdb5ff60ca17f030ce91f6331cbwrowe
2ceedfca3a2fdfdb5ff60ca17f030ce91f6331cbwroweinclude $(WS_TOP)/make-rules/prep.mk
2ceedfca3a2fdfdb5ff60ca17f030ce91f6331cbwroweinclude $(WS_TOP)/make-rules/configure.mk
2ceedfca3a2fdfdb5ff60ca17f030ce91f6331cbwroweinclude ../ofed.mk
2ceedfca3a2fdfdb5ff60ca17f030ce91f6331cbwrowe
b999f6ba2a266bf9a92687f31bb7e76021ac5891ianh# add flags to get at extra bits from other components' source trees
2ceedfca3a2fdfdb5ff60ca17f030ce91f6331cbwroweCPPFLAGS += -I$(PWD)/../libmthca/libmthca-1.0.5/src
b999f6ba2a266bf9a92687f31bb7e76021ac5891ianhCPPFLAGS += -I$(PWD)/../libmlx4/libmlx4-1.0.1/src
7d7931c1f4d46b041ad2ad6fdb9499289063611eianhCPPFLAGS += -I$(PWD)/../librdmacm/librdmacm-1.0.14.1/include
1f3a44f2fd7f9fee00b80c7ddcf1028ea145f91drbb
b9b69856aec9ea58ea1b1e5aff669e8eaf2ebce4rbbLIBS += -lsocket -lnsl -lkstat
b9b69856aec9ea58ea1b1e5aff669e8eaf2ebce4rbb
b9b69856aec9ea58ea1b1e5aff669e8eaf2ebce4rbb# --disable-libcheck is not a supported option for this component
1f3a44f2fd7f9fee00b80c7ddcf1028ea145f91drbbDISABLE_LIBCHECK=
1f3a44f2fd7f9fee00b80c7ddcf1028ea145f91drbb
1f3a44f2fd7f9fee00b80c7ddcf1028ea145f91drbbCOMPONENT_PREP_ACTION = \
7d7931c1f4d46b041ad2ad6fdb9499289063611eianh cp ofa_solaris.h $(@D)/include/infiniband ; \
1f3a44f2fd7f9fee00b80c7ddcf1028ea145f91drbb cp solaris_compatibility.c $(@D)/src ; \
68bcde9c52e9e749482df2800dbdff09559115e0chuck cd ../libmthca; gmake prep; \
0c233c76f21b358f4a0d81e0f956339ca727c14cchuck cd ../libmlx4; gmake prep; \
43ea154f46345c9722c2b25b2b9f5086ec79eaeeorlikowski cd ../librdmacm; gmake prep
43ea154f46345c9722c2b25b2b9f5086ec79eaeeorlikowski
0c233c76f21b358f4a0d81e0f956339ca727c14cchuckCOMPONENT_POST_INSTALL_ACTION = \
0c233c76f21b358f4a0d81e0f956339ca727c14cchuck $(RM) $(PROTO_DIR)/$(CONFIGURE_BINDIR.$(BITS))/ibv_uc_pingpong; \
0c233c76f21b358f4a0d81e0f956339ca727c14cchuck $(RM) $(PROTO_DIR)/$(CONFIGURE_BINDIR.64)/ibv_devices \
0c233c76f21b358f4a0d81e0f956339ca727c14cchuck $(PROTO_DIR)/$(CONFIGURE_BINDIR.64)/ibv_devinfo \
0c233c76f21b358f4a0d81e0f956339ca727c14cchuck $(PROTO_DIR)/$(CONFIGURE_BINDIR.64)/ibv_asyncwatch \
0c233c76f21b358f4a0d81e0f956339ca727c14cchuck $(PROTO_DIR)/$(CONFIGURE_BINDIR.64)/ibv_rc_pingpong \
68bcde9c52e9e749482df2800dbdff09559115e0chuck $(PROTO_DIR)/$(CONFIGURE_BINDIR.64)/ibv_uc_pingpong \
53c2eb831bfe47860e3f5ec9190b15cb92f15181chuck $(PROTO_DIR)/$(CONFIGURE_BINDIR.64)/ibv_ud_pingpong \
0c233c76f21b358f4a0d81e0f956339ca727c14cchuck $(PROTO_DIR)/$(CONFIGURE_BINDIR.64)/ibv_srq_pingpong \
53c2eb831bfe47860e3f5ec9190b15cb92f15181chuck $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man1/ibv_uc_pingpong.1 \
c1635d9f723f28fed4b95e5d9693e554a79e8d77orlikowski $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/ibv_reg_xrc_rcv_qp.3 \
c1635d9f723f28fed4b95e5d9693e554a79e8d77orlikowski $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/ibv_create_xrc_srq.3 \
c1635d9f723f28fed4b95e5d9693e554a79e8d77orlikowski $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/ibv_open_xrc_domain.3 \
c1635d9f723f28fed4b95e5d9693e554a79e8d77orlikowski $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/ibv_close_xrc_domain.3 \
c1635d9f723f28fed4b95e5d9693e554a79e8d77orlikowski $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/ibv_unreg_xrc_rcv_qp.3 \
c1635d9f723f28fed4b95e5d9693e554a79e8d77orlikowski $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/ibv_query_xrc_rcv_qp.3 \
c1635d9f723f28fed4b95e5d9693e554a79e8d77orlikowski $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/ibv_create_xrc_rcv_qp.3 \
4f7dd0949d92462a8adc31eee8aff266eea55204chuck $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/ibv_modify_xrc_rcv_qp.3
4f7dd0949d92462a8adc31eee8aff266eea55204chuck
4f7dd0949d92462a8adc31eee8aff266eea55204chuck# common targets
4f7dd0949d92462a8adc31eee8aff266eea55204chuckbuild: $(BUILD_32_and_64)
4f7dd0949d92462a8adc31eee8aff266eea55204chuck
75b3ed55173b29dbdf9e2fb6ec5462bfceee21aechuckinstall: $(INSTALL_32_and_64)
75b3ed55173b29dbdf9e2fb6ec5462bfceee21aechuck
75b3ed55173b29dbdf9e2fb6ec5462bfceee21aechuckBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
4f7dd0949d92462a8adc31eee8aff266eea55204chuck
75b3ed55173b29dbdf9e2fb6ec5462bfceee21aechucktest: $(NO_TESTS)
0c233c76f21b358f4a0d81e0f956339ca727c14cchuck
0c233c76f21b358f4a0d81e0f956339ca727c14cchuckinclude $(WS_TOP)/make-rules/depend.mk
68bcde9c52e9e749482df2800dbdff09559115e0chuck