Makefile revision 844
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews# CDDL HEADER START
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews# The contents of this file are subject to the terms of the
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews# Common Development and Distribution License (the "License").
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews# You may not use this file except in compliance with the License.
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews# or http://www.opensolaris.org/os/licensing.
1f1b47a2ba565f96a97981e8447f80eba6854887Mark Andrews# See the License for the specific language governing permissions
1f1b47a2ba565f96a97981e8447f80eba6854887Mark Andrews# and limitations under the License.
6ec7bd9c691cf7b7a1d4f507e89f2b7cb22a12dcMark Andrews#
61fb42c4ef45d88e115bd769c30c4f36b461870bMark Andrews# When distributing Covered Code, include this CDDL HEADER in each
61fb42c4ef45d88e115bd769c30c4f36b461870bMark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9cc75a3e5b0b54c5015e3f73a4a64d273560d5e3Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
9cc75a3e5b0b54c5015e3f73a4a64d273560d5e3Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
9cc75a3e5b0b54c5015e3f73a4a64d273560d5e3Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
c3f9bda20f0993bc7aa4c654e7e2082adfbaa47fMark Andrews#
c3f9bda20f0993bc7aa4c654e7e2082adfbaa47fMark Andrews# CDDL HEADER END
c3f9bda20f0993bc7aa4c654e7e2082adfbaa47fMark Andrews#
dbbcb98a7069e5b79c5100b3c9cc3f3e5704d14eMark Andrews# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
dbbcb98a7069e5b79c5100b3c9cc3f3e5704d14eMark Andrews#
c52ae25dd70636c673d4a299859137a1c8ba611aMark Andrewsinclude ../../../make-rules/shared-macros.mk
c52ae25dd70636c673d4a299859137a1c8ba611aMark Andrews
6286983c506433d642b23e64845c50be30f2a7f6Mark AndrewsCOMPONENT_NAME= perftest
6286983c506433d642b23e64845c50be30f2a7f6Mark AndrewsCOMPONENT_VERSION= 1.3.0
d0aebc5a55b6145297d94f8aee939852357c59fcMark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
d0aebc5a55b6145297d94f8aee939852357c59fcMark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC)-0.42.gf350d3d.tar.gz
d0aebc5a55b6145297d94f8aee939852357c59fcMark AndrewsCOMPONENT_ARCHIVE_HASH= \
f470686d921e6aa26726109226310a42ad8a44f3Mark Andrews sha256:164d32753ab87ba3152c84f69bf16bb592d77b922e66e753bd9ad0e229675793
f470686d921e6aa26726109226310a42ad8a44f3Mark AndrewsCOMPONENT_ARCHIVE_URL= http://www.openfabrics.org/downloads/perftest/$(COMPONENT_ARCHIVE)
f470686d921e6aa26726109226310a42ad8a44f3Mark Andrews
fd447061627e77db3ccf2536e14134e50647b9beMark Andrews$(BUILD_32): BITS=32
fd447061627e77db3ccf2536e14134e50647b9beMark Andrews$(BUILD_64): BITS=64
fd447061627e77db3ccf2536e14134e50647b9beMark Andrews$(INSTALL_32): BITS=32
9f1bca36e43f076ab49d8de51301cb3c2dc04995Mark Andrews$(INSTALL_64): BITS=64
9f1bca36e43f076ab49d8de51301cb3c2dc04995Mark Andrews
9f1bca36e43f076ab49d8de51301cb3c2dc04995Mark Andrewsinclude $(WS_TOP)/make-rules/prep.mk
0e0d2891c08b70886f811d627bfb91a0c5e07dfcMark Andrewsinclude $(WS_TOP)/make-rules/configure.mk
0e0d2891c08b70886f811d627bfb91a0c5e07dfcMark Andrewsinclude ../ofed.mk
0e0d2891c08b70886f811d627bfb91a0c5e07dfcMark Andrews
0e0d2891c08b70886f811d627bfb91a0c5e07dfcMark AndrewsMAN1FILES = ib_clock_test.1 \
6f3e68a8dbad508b815f42a0250122ca5e58972eMark Andrews ib_write_bw.1 \
6f3e68a8dbad508b815f42a0250122ca5e58972eMark Andrews ib_read_bw.1 \
6f3e68a8dbad508b815f42a0250122ca5e58972eMark Andrews ib_send_bw.1 \
6f3e68a8dbad508b815f42a0250122ca5e58972eMark Andrews rdma_bw.1
62bdc6103b8245b812eef9faabee8e644afcc25fMark Andrews
62bdc6103b8245b812eef9faabee8e644afcc25fMark Andrewsinclude $(WS_TOP)/make-rules/shared-targets.mk
185fd227381269568e193147a98f292210a16f2cMark Andrews
fb31e2890814be0ac3c343d91144f89ce5e05784Mark AndrewsLIBS += -lsocket -lnsl -lkstat -lrdmacm -libverbs -libumad -libmad
ce75d8bec3e93ef9fbd4a235f14f99483b3f238fMark Andrews
ce75d8bec3e93ef9fbd4a235f14f99483b3f238fMark AndrewsLDFLAGS += -L$(PROTO_DIR)/$(CONFIGURE_LIBDIR.$(BITS))
62700b67eb8abb7d13f9c3c1bc4b60a1477d35d8Mark AndrewsCFLAGS += $(SHARED_INCLUDES)
62700b67eb8abb7d13f9c3c1bc4b60a1477d35d8Mark Andrews
f853c77478af94109291ea93f800444b949be558Mark AndrewsCOMMON_ARGS += CC="$(CC)"
cdb6532e86a8f3d3d563b6da8c333bdf377d51ddMark AndrewsCOMMON_ARGS += CFLAGS="$(CFLAGS)"
cdb6532e86a8f3d3d563b6da8c333bdf377d51ddMark AndrewsCOMMON_ARGS += LDFLAGS="$(LDFLAGS) $(LIBS)"
6fd711065f5878c526f88f2825ab8024e2296644Mark AndrewsCOMMON_ARGS += INSTALL=$(INSTALL)
6fd711065f5878c526f88f2825ab8024e2296644Mark AndrewsCOMMON_ARGS += BINDIR=$(CONFIGURE_BINDIR.$(BITS))
5e41884b4a1871eb83e66f0d68ca4d04bbbc857eMark AndrewsCOMPONENT_BUILD_ARGS += $(COMMON_ARGS)
5e41884b4a1871eb83e66f0d68ca4d04bbbc857eMark AndrewsCOMPONENT_INSTALL_ARGS += $(COMMON_ARGS)
54a565b1409a0c259ee3b20791db1b4636addc5eMark Andrews
93a90ddd6b588a381b6894974a2d48727f19d42bMark AndrewsCOMPONENT_PREP_ACTION = $(TOUCH) $(@D)/configure
93a90ddd6b588a381b6894974a2d48727f19d42bMark Andrews
37225662b64e44a3c59f92dd6156db37b52ca7a3Mark AndrewsCOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
eabf7ff29a88c578619fdc0d307f9e0bad0d6ce8Mark Andrews
8f2b99738760449de3431b191c0c9c0ea08fdc2eMark Andrews# common targets
8f2b99738760449de3431b191c0c9c0ea08fdc2eMark Andrewsbuild: $(BUILD_32_and_64)
6342df69b05f2f62d060fd4affdf536e51504084Mark Andrews
6342df69b05f2f62d060fd4affdf536e51504084Mark Andrewsinstall: $(INSTALL_32_and_64) $(PROTOMAN1FILES)
6342df69b05f2f62d060fd4affdf536e51504084Mark Andrews
5caf500beeb91b96a2bb2fd55080141569aead97Mark AndrewsBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
881702c9c0079cd48a45054fd90d043f3a8b7e11Mark Andrews
6f808593181c16d5a7625cb527a5755872f9680cMark Andrewstest: $(NO_TESTS)
012dedf87438043ff00d4deec8b488eec2be2a1cMark Andrews
6f808593181c16d5a7625cb527a5755872f9680cMark Andrewsinclude $(WS_TOP)/make-rules/depend.mk
6f808593181c16d5a7625cb527a5755872f9680cMark Andrews