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