Makefile revision 2164
4070N/A#
4070N/A# CDDL HEADER START
4070N/A#
4070N/A# The contents of this file are subject to the terms of the
4070N/A# Common Development and Distribution License (the "License").
4070N/A# You may not use this file except in compliance with the License.
4070N/A#
4070N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4070N/A# or http://www.opensolaris.org/os/licensing.
4070N/A# See the License for the specific language governing permissions
4070N/A# and limitations under the License.
4070N/A#
4070N/A# When distributing Covered Code, include this CDDL HEADER in each
4070N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4070N/A# If applicable, add the following below this CDDL HEADER, with the
4070N/A# fields enclosed by brackets "[]" replaced with your own identifying
4070N/A# information: Portions Copyright [yyyy] [name of copyright owner]
4070N/A#
4070N/A# CDDL HEADER END
4070N/A#
4070N/A# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
4070N/A#
6033N/Ainclude ../../../make-rules/shared-macros.mk
4070N/A
4070N/ACOMPONENT_NAME= perftest
4070N/ACOMPONENT_VERSION= 1.3.0
4070N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
4070N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC)-0.42.gf350d3d.tar.gz
6033N/ACOMPONENT_ARCHIVE_HASH= \
4070N/A sha256:164d32753ab87ba3152c84f69bf16bb592d77b922e66e753bd9ad0e229675793
4070N/ACOMPONENT_ARCHIVE_URL= http://www.openfabrics.org/downloads/perftest/$(COMPONENT_ARCHIVE)
4070N/A
6033N/A$(BUILD_32): BITS=32
4070N/A$(BUILD_64): BITS=64
4070N/A$(INSTALL_32): BITS=32
4070N/A$(INSTALL_64): BITS=64
4070N/A
6033N/Ainclude $(WS_TOP)/make-rules/prep.mk
4070N/Ainclude $(WS_TOP)/make-rules/configure.mk
4070N/Ainclude ../ofed.mk
4070N/A
4070N/AMAN1FILES = ib_clock_test.1 \
4070N/A ib_write_bw.1 \
4070N/A ib_read_bw.1 \
4070N/A ib_send_bw.1 \
4070N/A rdma_bw.1
4070N/A
4070N/Ainclude $(WS_TOP)/make-rules/shared-targets.mk
4070N/A
4070N/ALIBS += -lsocket -lnsl -lkstat -lrdmacm -libverbs -libumad -libmad
4070N/A
4070N/ALDFLAGS += -L$(PROTO_DIR)/$(CONFIGURE_LIBDIR.$(BITS))
4070N/ACFLAGS += $(SHARED_INCLUDES)
COMMON_ARGS += CC="$(CC)"
COMMON_ARGS += CFLAGS="$(CFLAGS)"
COMMON_ARGS += LDFLAGS="$(LDFLAGS) $(LIBS)"
COMMON_ARGS += INSTALL=$(INSTALL)
COMMON_ARGS += BINDIR=$(CONFIGURE_BINDIR.$(BITS))
COMPONENT_BUILD_ARGS += $(COMMON_ARGS)
COMPONENT_INSTALL_ARGS += $(COMMON_ARGS)
# need to translate ctrl-M in downloaded send_bw.c
COMPONENT_POST_UNPACK_ACTION= \
cd $(@D); \
/usr/bin/tr -d '\r' < send_bw.c > send_bw.c.tmp; \
mv send_bw.c.tmp send_bw.c; \
cd ..;
COMPONENT_PREP_ACTION = $(TOUCH) $(@D)/configure
COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
# common targets
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64) $(PROTOMAN1FILES)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
test: $(NO_TESTS)
include $(WS_TOP)/make-rules/depend.mk