Makefile revision 618
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
7e5b2100ea65658a7ec3795919b4ecd29a6f118aMark Andrews# CDDL HEADER START
7e5b2100ea65658a7ec3795919b4ecd29a6f118aMark Andrews#
eae67738cba5ca069e9d1d4e7b836a2f7b00a374Mark Andrews# The contents of this file are subject to the terms of the
eae67738cba5ca069e9d1d4e7b836a2f7b00a374Mark Andrews# Common Development and Distribution License (the "License").
2a40fdc2d34adb8a5c72a748449699666032d461Mark Andrews# You may not use this file except in compliance with the License.
46e873c835bf7d9ec3e1097e0aceb8db5b1ae93aMark Andrews#
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# or http://www.opensolaris.org/os/licensing.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# See the License for the specific language governing permissions
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# and limitations under the License.
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# When distributing Covered Code, include this CDDL HEADER in each
d56e188030368b835122d759ebbf8d9613c166f4Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews# If applicable, add the following below this CDDL HEADER, with the
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews#
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrewsinclude ../../make-rules/shared-macros.mk
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinclude ../../make-rules/ips.mk
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrewsinclude ofed.mk
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark AndrewsLD_Z_IGNORE =
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_VERSION=1.5.3
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCOMPONENT_PROJECT_URL= http://www.openfabrics.org/
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# for now, everything with a Makefile should be built
c718d15a9a95054ee3c71540c02335426071fc6dMark AndrewsSUBDIRS = $(shell echo */Makefile | sed -e 's;/Makefile;;g')
c6d4f781529d2f28693546b25b2967d44ec89e60Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews.PHONY: $(SUBDIRS)
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsdownload: TARGET = download
c069a20053d41ae299eb9457e50ea44ae9f73ed2Mark Andrewsprep: TARGET = prep
ed178efa9ab8f813538fce4ff603b81ded9f1799Mark Andrewsinstall: TARGET = install
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsclean: TARGET = clean
605bd686e437162b5ab65ac4e7c1be0bba1886ddMark Andrewsclobber: TARGET = clobber
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewstest: TARGET = test
3f6174bffe227be44e241a29d186add00c032ff6Mark Andrews
1eb1e1e838d2ea00b166c918bf50764a95826be8Mark Andrewsbuild: install
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews.DEFAULT: publish
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrewsdownload prep install test: $(SUBDIRS)
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonclean: $(SUBDIRS)
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews $(RM) -r prototype build
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonclobber: $(SUBDIRS) clean
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington$(SUBDIRS): FORCE
26a77b80bb7ee886c6fa704348d5e80a011d8811Mark Andrews @cd $@ && echo "$(TARGET) $@" && $(MAKE) $(TARGET)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
7e5b2100ea65658a7ec3795919b4ecd29a6f118aMark Andrews# declare module dependencies
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewslibrdmacm: libibverbs
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewslibmlx4: libibverbs
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewslibmthca: libibverbs
62ee2c9f460d2e2e45dcf1abc8b4b4a4a43f5618Mark Andrewsrds-tools: libibverbs
e086341ea57e618a60c9f166b95daee1fab71b3bMark Andrewsperftest: libibverbs librdmacm libibverbs
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsqperf: libibverbs librdmacm
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrewslibibumad: libibverbs
068a66979695c77359e7a9181bb3f831c965b21cMark Andrewslibibmad: libibumad
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrewsopensm: libibumad libibmad
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonibutils: opensm
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrewsinfiniband-diags: libibverbs opensm
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonFORCE:
821d2613356f81e5bb5c107288d6d5cf35c2a1e8Mark Andrews