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#
6320N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
369N/A#
369N/Ainclude ../../../make-rules/shared-macros.mk
369N/A
369N/ACOMPONENT_NAME= rds-tools
369N/ACOMPONENT_VERSION= 2.0.4
369N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
369N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:31b5924f73bed59e513470586c69ebe92eeb708fcc61a0519045fcf7954233a3
6320N/ACOMPONENT_ARCHIVE_URL= https://www.openfabrics.org/downloads/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
369N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/configure.mk
369N/Ainclude ../ofed.mk
369N/A
736N/ACPPFLAGS += -I$(PROTO_DIR)/usr/include
369N/ACFLAGS += -O2 -Wall -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ $(CPPFLAGS)
369N/A
736N/ALIBS += -lsocket -lnsl -llgrp -lkstat -libverbs
736N/A
4994N/ACONFIGURE_OPTIONS += --bindir=$(USRBINDIR)
4994N/A
736N/ACOMPONENT_PREP_ACTION = \
736N/A cp rds-vendor.c $(@D)/
369N/A
369N/ACLEANUP_DIRS = $(PROTOUSRBINDIR)/net
369N/A
369N/ACLEANUP_FILES =\
369N/A $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man7/rds.7\
369N/A $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man7rds-rdma.7
369N/A
369N/ACOMPONENT_POST_INSTALL_ACTION =\
369N/A $(RM) $(CLEANUP_FILES);\
369N/A $(RM) $(CLEANUP_DIRS)
369N/A
369N/ACOMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
369N/ACOMPONENT_INSTALL_ENV += INSTALL=$(INSTALL)
369N/A
369N/ACOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
369N/A
369N/A# common targets
369N/Abuild: $(BUILD_32_and_64)
369N/A
369N/Ainstall: $(INSTALL_32_and_64)
369N/A
369N/A
369N/Atest: $(NO_TESTS)
369N/A