9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
7e5b2100ea65658a7ec3795919b4ecd29a6f118aMark Andrews# CDDL HEADER START
7e5b2100ea65658a7ec3795919b4ecd29a6f118aMark Andrews#
eae67738cba5ca069e9d1d4e7b836a2f7b00a374Mark Andrews# The contents of this file are subject to the terms of the
eae67738cba5ca069e9d1d4e7b836a2f7b00a374Mark Andrews# Common Development and Distribution License (the "License").
2a40fdc2d34adb8a5c72a748449699666032d461Mark Andrews# You may not use this file except in compliance with the License.
46e873c835bf7d9ec3e1097e0aceb8db5b1ae93aMark Andrews#
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# or http://www.opensolaris.org/os/licensing.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# See the License for the specific language governing permissions
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# and limitations under the License.
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# When distributing Covered Code, include this CDDL HEADER in each
01bf5871f8861eb805dd8ca79bdb9b0b9e4e6a5eMark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews# If applicable, add the following below this CDDL HEADER, with the
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews#
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrewsinclude ../../../make-rules/shared-macros.mk
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark AndrewsCOMPONENT_NAME= libibumad
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_VERSION= 1.3.10.2
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_ARCHIVE_HASH= \
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews sha256:500f74e31bd9f3d6c32dea912de3a2d1b299f3f23d7abd893652dd45c77a7e2e
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCOMPONENT_ARCHIVE_URL= https://www.openfabrics.org/downloads/management/$(COMPONENT_ARCHIVE)
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinclude $(WS_MAKE_RULES)/prep.mk
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrewsinclude $(WS_MAKE_RULES)/configure.mk
c6d4f781529d2f28693546b25b2967d44ec89e60Mark Andrewsinclude ../ofed.mk
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c718d15a9a95054ee3c71540c02335426071fc6dMark AndrewsLIBS += -lsocket -lnsl -libverbs
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c069a20053d41ae299eb9457e50ea44ae9f73ed2Mark AndrewsCLEANUP_FILES = $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_free.3 \
ed178efa9ab8f813538fce4ff603b81ded9f1799Mark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_done.3 \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_send.3 \
605bd686e437162b5ab65ac4e7c1be0bba1886ddMark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_recv.3 \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_init.3 \
ede29aeb412c5448ab9a2028763ae08e7887ca74Mark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_dump.3 \
1eb1e1e838d2ea00b166c918bf50764a95826be8Mark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_poll.3 \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_size.3 \
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_debug.3 \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_alloc.3 \
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_get_ca.3 \
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_get_fd.3 \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_status.3 \
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_get_mad.3 \
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_set_grh.3 \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_set_addr.3 \
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_get_pkey.3 \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_get_port.3 \
26a77b80bb7ee886c6fa704348d5e80a011d8811Mark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_set_pkey.3 \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_register.3 \
7e5b2100ea65658a7ec3795919b4ecd29a6f118aMark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_addr_dump.3 \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_open_port.3 \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_release_ca.3 \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_close_port.3 \
62ee2c9f460d2e2e45dcf1abc8b4b4a4a43f5618Mark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_unregister.3 \
e086341ea57e618a60c9f166b95daee1fab71b3bMark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_set_grh_net.3 \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_get_mad_addr.3 \
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_set_addr_net.3 \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_release_port.3 \
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_register_oui.3 \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_get_cas_names.3 \
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_get_issm_path.3 \
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man3/umad_get_ca_portguids.3
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark AndrewsCOMPONENT_POST_INSTALL_ACTION = \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(RM) $(PROTO_DIR)/$(CONFIGURE_LIBDIR.32)/$(COMPONENT_NAME).la;\
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews $(RM) $(PROTO_DIR)/$(CONFIGURE_LIBDIR.64)/$(COMPONENT_NAME).la;\
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(RM) $(CLEANUP_FILES)
c25080dc50542213058c240226c9f342186e6285Mark Andrews
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews
46e873c835bf7d9ec3e1097e0aceb8db5b1ae93aMark Andrews# common targets
46e873c835bf7d9ec3e1097e0aceb8db5b1ae93aMark Andrewsbuild: $(BUILD_32_and_64)
dd9ad704c3800e3ab07ede8595871eac79984871Mark Andrews
605bd686e437162b5ab65ac4e7c1be0bba1886ddMark Andrewsinstall: $(INSTALL_32_and_64)
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews
413988c8166976498250c0ebb2e3a645d0366bd3Mark Andrews
605bd686e437162b5ab65ac4e7c1be0bba1886ddMark Andrewstest: $(NO_TESTS)
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark Andrews
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark Andrews