Makefile revision 424
6727802528c27484e0d36d70f0b936022d3226e3Michał Kępień#
6727802528c27484e0d36d70f0b936022d3226e3Michał Kępień# CDDL HEADER START
6727802528c27484e0d36d70f0b936022d3226e3Michał Kępień#
6727802528c27484e0d36d70f0b936022d3226e3Michał Kępień# The contents of this file are subject to the terms of the
4d41be5f9e86c11a6f00e2b005cfc5abae2c1ab3Mark Andrews# Common Development and Distribution License (the "License").
4d41be5f9e86c11a6f00e2b005cfc5abae2c1ab3Mark Andrews# You may not use this file except in compliance with the License.
bfde61d5194a534d800f3b90008d1f52261922c5Mark Andrews#
bfde61d5194a534d800f3b90008d1f52261922c5Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bfde61d5194a534d800f3b90008d1f52261922c5Mark Andrews# or http://www.opensolaris.org/os/licensing.
42ae02626d05921ca7508ae6f9c48ea699596bc6Mark Andrews# See the License for the specific language governing permissions
6b56350522d18f10edbf2d3778cd0fea74e4f3d2Mark Andrews# and limitations under the License.
6b56350522d18f10edbf2d3778cd0fea74e4f3d2Mark Andrews#
42ae02626d05921ca7508ae6f9c48ea699596bc6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
41caed6e2d7e9caace30e6c59f199ab6bd438f01Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
72b322cde0e51c4c87df0c9e3226deac95dfb4ceMark Andrews# If applicable, add the following below this CDDL HEADER, with the
72b322cde0e51c4c87df0c9e3226deac95dfb4ceMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
28ea558bc80f75e46d77ea0533232bb9d4e644f7Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
28ea558bc80f75e46d77ea0533232bb9d4e644f7Mark Andrews#
28ea558bc80f75e46d77ea0533232bb9d4e644f7Mark Andrews# CDDL HEADER END
28ea558bc80f75e46d77ea0533232bb9d4e644f7Mark Andrews#
28ea558bc80f75e46d77ea0533232bb9d4e644f7Mark Andrews# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
565535d1820c63c64ec3c89e1f4815c326aed7aeEvan Hunt#
6045abbc9a0d7d449a13b6fbfbf32d419b6bee96Mark Andrewsinclude ../../make-rules/shared-macros.mk
6045abbc9a0d7d449a13b6fbfbf32d419b6bee96Mark Andrewsinclude ../../make-rules/ips.mk
f7d148398ca4511551c737e655b15f7d0d59a783Mark Andrewsinclude ofed.mk
f7d148398ca4511551c737e655b15f7d0d59a783Mark Andrews
f7d148398ca4511551c737e655b15f7d0d59a783Mark AndrewsLD_Z_IGNORE =
3a84275b10ab16965e86f6ca97e70c1bdca885a0Mark Andrews
3a84275b10ab16965e86f6ca97e70c1bdca885a0Mark AndrewsCOMPONENT_VERSION=1.5.3
3a84275b10ab16965e86f6ca97e70c1bdca885a0Mark AndrewsCOMPONENT_ARCHIVE_URL=http://www.openfabrics/org/downloads/OFED/ofed-1.5.3/OFED-1.5.3.tgz
3a84275b10ab16965e86f6ca97e70c1bdca885a0Mark Andrews
398834f7559617bdfd6c10ba555609a2f306e3d4Mark Andrews# for now, everything with a Makefile should be built
398834f7559617bdfd6c10ba555609a2f306e3d4Mark AndrewsSUBDIRS = $(shell echo */Makefile | sed -e 's;/Makefile;;g')
398834f7559617bdfd6c10ba555609a2f306e3d4Mark Andrews
398834f7559617bdfd6c10ba555609a2f306e3d4Mark Andrews.PHONY: $(SUBDIRS)
398834f7559617bdfd6c10ba555609a2f306e3d4Mark Andrews
28061f80b698171892e81c0856bc722190947998Evan Huntdownload: TARGET = download
28061f80b698171892e81c0856bc722190947998Evan Huntprep: TARGET = prep
28061f80b698171892e81c0856bc722190947998Evan Huntinstall: TARGET = install
a785bf2c39c6f223a93c27bbff81591b38095577Mark Andrewsclean: TARGET = clean
a785bf2c39c6f223a93c27bbff81591b38095577Mark Andrewsclobber: TARGET = clobber
a03f4b1ea4f1a4a70963fbeb606841c217f9e5f3Evan Hunttest: TARGET = test
a03f4b1ea4f1a4a70963fbeb606841c217f9e5f3Evan Hunt
a03f4b1ea4f1a4a70963fbeb606841c217f9e5f3Evan Huntbuild: install
a03f4b1ea4f1a4a70963fbeb606841c217f9e5f3Evan Hunt
d315545e6db6792692fe2dcb788ac6717a33b75fEvan Hunt.DEFAULT: publish
d315545e6db6792692fe2dcb788ac6717a33b75fEvan Hunt
d315545e6db6792692fe2dcb788ac6717a33b75fEvan Huntdownload prep install test: $(SUBDIRS)
d315545e6db6792692fe2dcb788ac6717a33b75fEvan Hunt
00f131293520b70728cd48840e09953fa45a745bMark Andrewsclean: $(SUBDIRS)
00f131293520b70728cd48840e09953fa45a745bMark Andrews $(RM) -r prototype build
00f131293520b70728cd48840e09953fa45a745bMark Andrews
b2e71853060a384070d422afda6d1c692ff608e3Mark Andrewsclobber: $(SUBDIRS) clean
b2e71853060a384070d422afda6d1c692ff608e3Mark Andrews
b2e71853060a384070d422afda6d1c692ff608e3Mark Andrews$(SUBDIRS): FORCE
b2e71853060a384070d422afda6d1c692ff608e3Mark Andrews @cd $@ && echo "$(TARGET) $@" && $(MAKE) $(TARGET)
42c1acfa478aacfbda2d298cf74a137de2df4b87Michał Kępień
42c1acfa478aacfbda2d298cf74a137de2df4b87Michał Kępień# declare module dependencies
42c1acfa478aacfbda2d298cf74a137de2df4b87Michał Kępieńlibrdmacm: libibverbs
214b53880b6d77359f60feccb91bd2589059300aEvan Huntlibmlx4: libibverbs
214b53880b6d77359f60feccb91bd2589059300aEvan Huntlibmthca: libibverbs
214b53880b6d77359f60feccb91bd2589059300aEvan Huntrds-tools: libibverbs
dd5375de0a7a515ee4fb2fd217e9577259d38c07Mark Andrewsperftest: libibverbs librdmacm libibverbs
dd5375de0a7a515ee4fb2fd217e9577259d38c07Mark Andrewsqperf: libibverbs librdmacm
dd5375de0a7a515ee4fb2fd217e9577259d38c07Mark Andrewslibibumad: libibverbs
3a58e1fefb0a9fd5dab11f271a320c6b90473f76Mukund Sivaramanlibibmad: libibumad
3a58e1fefb0a9fd5dab11f271a320c6b90473f76Mukund Sivaramanopensm: libibumad libibmad
3a58e1fefb0a9fd5dab11f271a320c6b90473f76Mukund Sivaramanibutils: opensm
7c67b8c2b076971e6a9f8b0db932201366f13d47Mark Andrewsinfiniband-diags: libibverbs opensm
7c67b8c2b076971e6a9f8b0db932201366f13d47Mark Andrews
7c67b8c2b076971e6a9f8b0db932201366f13d47Mark AndrewsFORCE:
5aed5dc329a2bf1340e9ff2256c1cf4e3005ea0bMark Andrews