Makefile revision 4659
8N/A#
8N/A# CDDL HEADER START
606N/A#
747N/A# The contents of this file are subject to the terms of the
8N/A# Common Development and Distribution License (the "License").
8N/A# You may not use this file except in compliance with the License.
8N/A#
8N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8N/A# or http://www.opensolaris.org/os/licensing.
8N/A# See the License for the specific language governing permissions
8N/A# and limitations under the License.
8N/A#
8N/A# When distributing Covered Code, include this CDDL HEADER in each
8N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8N/A# If applicable, add the following below this CDDL HEADER, with the
8N/A# fields enclosed by brackets "[]" replaced with your own identifying
8N/A# information: Portions Copyright [yyyy] [name of copyright owner]
8N/A#
8N/A# CDDL HEADER END
8N/A#
8N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
8N/A#
8N/A
8N/A# OFED only builds with GCC
8N/ACOMPILER=gcc
8N/A
8N/Ainclude ../../../make-rules/shared-macros.mk
8N/A
8N/ACOMPONENT_NAME= perftest
8N/ACOMPONENT_VERSION= 1.3.0
747N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
8N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC)-0.42.gf350d3d.tar.gz
8N/ACOMPONENT_ARCHIVE_HASH= \
8N/A sha256:164d32753ab87ba3152c84f69bf16bb592d77b922e66e753bd9ad0e229675793
606N/ACOMPONENT_ARCHIVE_URL= http://www.openfabrics.org/downloads/perftest/$(COMPONENT_ARCHIVE)
606N/A
606N/Ainclude $(WS_MAKE_RULES)/prep.mk
606N/Ainclude $(WS_MAKE_RULES)/configure.mk
606N/Ainclude ../ofed.mk
705N/A
606N/AMAN1FILES = ib_clock_test.1 \
606N/A ib_write_bw.1 \
606N/A ib_read_bw.1 \
606N/A ib_send_bw.1 \
606N/A rdma_bw.1
606N/A
606N/Ainclude $(WS_MAKE_RULES)/shared-targets.mk
606N/A
606N/ALIBS += -lsocket -lnsl -lkstat -lrdmacm -libverbs -libumad -libmad
606N/A
606N/ALDFLAGS += -L$(PROTO_DIR)/$(CONFIGURE_LIBDIR.$(BITS))
606N/ACFLAGS += $(SHARED_INCLUDES)
606N/A
606N/ACONFIGURE_OPTIONS += --bindir=$(USRBINDIR)
606N/A
606N/ACOMMON_ARGS += CC="$(CC)"
606N/ACOMMON_ARGS += CFLAGS="$(CFLAGS)"
606N/ACOMMON_ARGS += LDFLAGS="$(LDFLAGS) $(LIBS)"
606N/ACOMMON_ARGS += INSTALL=$(INSTALL)
606N/ACOMMON_ARGS += BINDIR=$(CONFIGURE_BINDIR)/usr/bin
606N/ACOMPONENT_BUILD_ARGS += $(COMMON_ARGS)
606N/ACOMPONENT_INSTALL_ARGS += $(COMMON_ARGS)
606N/A
606N/A# need to translate ctrl-M in downloaded send_bw.c
606N/ACOMPONENT_POST_UNPACK_ACTION= \
98N/A cd $(@D); \
156N/A /usr/bin/tr -d '\r' < send_bw.c > send_bw.c.tmp; \
98N/A mv send_bw.c.tmp send_bw.c; \
606N/A cd ..;
98N/A
747N/ACOMPONENT_PREP_ACTION = $(TOUCH) $(@D)/configure
747N/A
747N/ACOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
8N/A
8N/A# common targets
493N/Aconfigure: $(CONFIGURE_64)
8N/A
493N/Abuild: $(BUILD_64)
493N/A
380N/Ainstall: $(INSTALL_64) $(PROTOMAN1FILES)
493N/A
493N/Atest: $(NO_TESTS)
493N/A
system-test: $(NO_TESTS)