Makefile revision 3996
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsync#
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsync# CDDL HEADER START
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsync#
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsync# The contents of this file are subject to the terms of the
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsync# Common Development and Distribution License (the "License").
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsync# You may not use this file except in compliance with the License.
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync#
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsync# or http://www.opensolaris.org/os/licensing.
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsync# See the License for the specific language governing permissions
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsync# and limitations under the License.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync#
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# When distributing Covered Code, include this CDDL HEADER in each
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# If applicable, add the following below this CDDL HEADER, with the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync#
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# CDDL HEADER END
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync#
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync#
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsyncinclude ../../../make-rules/shared-macros.mk
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsyncCOMPONENT_NAME= rds-tools
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsyncCOMPONENT_VERSION= 2.0.4
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsyncCOMPONENT_ARCHIVE_HASH= \
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsync sha256:31b5924f73bed59e513470586c69ebe92eeb708fcc61a0519045fcf7954233a3
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsyncCOMPONENT_ARCHIVE_URL= http://www.openfabrics.org/downloads/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsync
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsyncinclude $(WS_MAKE_RULES)/prep.mk
93ff74fb0e11b1cf030066fe97a7c4bbc95c0486vboxsyncinclude $(WS_MAKE_RULES)/configure.mk
93ff74fb0e11b1cf030066fe97a7c4bbc95c0486vboxsyncinclude ../ofed.mk
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsync
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsyncCPPFLAGS += -I$(PROTO_DIR)/usr/include
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsyncCFLAGS += -O2 -Wall -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ $(CPPFLAGS)
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsync
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsyncLIBS += -lsocket -lnsl -llgrp -lkstat -libverbs
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsync
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsyncCOMPONENT_PREP_ACTION = \
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsync mkdir -p $(PROTO_DIR)/usr/include/sys ; \
b34f0f200ed0778053a2a1d93381c2c6b60cb2d5vboxsync cp rds.h $(PROTO_DIR)/usr/include/sys/ ; \
e7e8a6cb1597db3e0a1a83733e1d90e7a1688647vboxsync cp rds-vendor.c $(@D)/
6b2e1c703bfafe40110d3769b132c1462b0fc8bbvboxsync
6988e736149e8800875f9fbb001a6018926d6562vboxsyncCLEANUP_DIRS = $(PROTOUSRBINDIR)/net
6988e736149e8800875f9fbb001a6018926d6562vboxsync
ab91a0b087de86c622843613eb756af4635b5353vboxsyncCLEANUP_FILES =\
93ff74fb0e11b1cf030066fe97a7c4bbc95c0486vboxsync $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man7/rds.7\
93ff74fb0e11b1cf030066fe97a7c4bbc95c0486vboxsync $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man7rds-rdma.7
93ff74fb0e11b1cf030066fe97a7c4bbc95c0486vboxsync
e7e8a6cb1597db3e0a1a83733e1d90e7a1688647vboxsyncCOMPONENT_POST_INSTALL_ACTION =\
6988e736149e8800875f9fbb001a6018926d6562vboxsync $(RM) $(CLEANUP_FILES);\
e7e8a6cb1597db3e0a1a83733e1d90e7a1688647vboxsync $(RM) $(CLEANUP_DIRS)
e7e8a6cb1597db3e0a1a83733e1d90e7a1688647vboxsync
e7e8a6cb1597db3e0a1a83733e1d90e7a1688647vboxsyncCOMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
e7e8a6cb1597db3e0a1a83733e1d90e7a1688647vboxsyncCOMPONENT_INSTALL_ENV += INSTALL=$(INSTALL)
d6514b844064ca3abe7d13c7fdf282920d45074cvboxsync
d6514b844064ca3abe7d13c7fdf282920d45074cvboxsyncCOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsync
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsync# common targets
6988e736149e8800875f9fbb001a6018926d6562vboxsyncbuild: $(BUILD_32_and_64)
6988e736149e8800875f9fbb001a6018926d6562vboxsync
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsyncinstall: $(INSTALL_32_and_64)
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsync
18ef96e6e12a751033cf92988534ce70cd7ef036vboxsync
test: $(NO_TESTS)