Makefile revision 736
10139N/A#
10139N/A# CDDL HEADER START
10139N/A#
12219N/A# The contents of this file are subject to the terms of the
10139N/A# Common Development and Distribution License (the "License").
10139N/A# You may not use this file except in compliance with the License.
10139N/A#
10139N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10139N/A# or http://www.opensolaris.org/os/licensing.
10139N/A# See the License for the specific language governing permissions
10139N/A# and limitations under the License.
10139N/A#
12813N/A# When distributing Covered Code, include this CDDL HEADER in each
10139N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
10139N/A# If applicable, add the following below this CDDL HEADER, with the
10139N/A# fields enclosed by brackets "[]" replaced with your own identifying
10139N/A# information: Portions Copyright [yyyy] [name of copyright owner]
12571N/A#
12773N/A# CDDL HEADER END
12773N/A#
12773N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
13012N/A#
13012N/Ainclude ../../../make-rules/shared-macros.mk
10139N/A
10139N/ACOMPONENT_NAME= perftest
10139N/ACOMPONENT_VERSION= 1.3.0
10139N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
10139N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC)-0.42.gf350d3d.tar.gz
10139N/ACOMPONENT_ARCHIVE_HASH= sha1:dbafe012922d88db2f22c83b1dda8ee8ccc50f1c
10139N/ACOMPONENT_ARCHIVE_URL= http://www.openfabrics.org/downloads/perftest/$(COMPONENT_ARCHIVE)
10139N/A
10139N/A$(BUILD_32): BITS=32
10139N/A$(BUILD_64): BITS=64
10139N/A$(INSTALL_32): BITS=32
10139N/A$(INSTALL_64): BITS=64
10139N/A
10139N/Ainclude $(WS_TOP)/make-rules/prep.mk
10139N/Ainclude $(WS_TOP)/make-rules/configure.mk
10139N/Ainclude ../ofed.mk
10139N/A
10139N/AMAN1FILES = ib_clock_test.1 \
10139N/A ib_write_bw.1 \
10139N/A ib_read_bw.1 \
10139N/A ib_send_bw.1 \
10139N/A rdma_bw.1
10139N/A
10139N/Ainclude $(WS_TOP)/make-rules/shared-targets.mk
10139N/A
10139N/ALIBS += -lsocket -lnsl -lkstat -lrdmacm -libverbs -libumad -libmad
10139N/A
10139N/ALDFLAGS += -L$(PROTO_DIR)/$(CONFIGURE_LIBDIR.$(BITS))
13012N/ACFLAGS += $(SHARED_INCLUDES)
10139N/A
10139N/ACOMMON_ARGS += CC="$(CC)"
10139N/ACOMMON_ARGS += CFLAGS="$(CFLAGS)"
10139N/ACOMMON_ARGS += LDFLAGS="$(LDFLAGS) $(LIBS)"
12773N/ACOMMON_ARGS += INSTALL=$(INSTALL)
12773N/ACOMMON_ARGS += BINDIR=$(CONFIGURE_BINDIR.$(BITS))
12773N/ACOMPONENT_BUILD_ARGS += $(COMMON_ARGS)
12773N/ACOMPONENT_INSTALL_ARGS += $(COMMON_ARGS)
12773N/A
10139N/ACOMPONENT_PREP_ACTION = $(TOUCH) $(@D)/configure
10139N/A
10139N/ACOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
10139N/A
10139N/A# common targets
10139N/Abuild: $(BUILD_32_and_64)
10139N/A
10139N/Ainstall: $(INSTALL_32_and_64) $(PROTOMAN1FILES)
10139N/A
10139N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
10139N/A
10139N/Atest: $(NO_TESTS)
10139N/A
10139N/Ainclude $(WS_TOP)/make-rules/depend.mk
10139N/A