components/open-fabrics/Makefile
changeset 369 cc8c00719da9
child 549 65472d95e27e
equal deleted inserted replaced
368:9a01d3a61f01 369:cc8c00719da9
       
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     4 # The contents of this file are subject to the terms of the
       
     5 # Common Development and Distribution License (the "License").
       
     6 # You may not use this file except in compliance with the License.
       
     7 #
       
     8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9 # or http://www.opensolaris.org/os/licensing.
       
    10 # See the License for the specific language governing permissions
       
    11 # and limitations under the License.
       
    12 #
       
    13 # When distributing Covered Code, include this CDDL HEADER in each
       
    14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15 # If applicable, add the following below this CDDL HEADER, with the
       
    16 # fields enclosed by brackets "[]" replaced with your own identifying
       
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 #
       
    21 # Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
       
    22 #
       
    23 include ../../make-rules/shared-macros.mk
       
    24 include ../../make-rules/ips.mk
       
    25 include ofed.mk
       
    26 
       
    27 LD_Z_IGNORE =
       
    28 
       
    29 COMPONENT_VERSION=1.5.3
       
    30 COMPONENT_ARCHIVE_URL=http://www.openfabrics/org/downloads/OFED/ofed-1.5.3/OFED-1.5.3.tgz
       
    31 
       
    32 # for now, everything with a Makefile should be built
       
    33 SUBDIRS =	$(shell echo */Makefile | sed -e 's;/Makefile;;g')
       
    34 
       
    35 .PHONY:	$(SUBDIRS)
       
    36 
       
    37 download:		TARGET = download
       
    38 prep:			TARGET = prep
       
    39 install:		TARGET = install
       
    40 clean:			TARGET = clean
       
    41 clobber:		TARGET = clobber
       
    42 test:			TARGET = test
       
    43 
       
    44 build:		install
       
    45 
       
    46 .DEFAULT:	publish
       
    47 
       
    48 download prep install test: $(SUBDIRS)
       
    49 
       
    50 clean:	$(SUBDIRS)
       
    51 	$(RM) -r prototype build
       
    52 
       
    53 clobber:	$(SUBDIRS) clean
       
    54 
       
    55 $(SUBDIRS):	FORCE
       
    56 	@cd $@ && echo "$(TARGET) $@" && $(MAKE) $(TARGET)
       
    57 
       
    58 # declare module dependencies
       
    59 librdmacm:		libibverbs
       
    60 libmlx4:		libibverbs
       
    61 libmthca:		libibverbs
       
    62 rds-tools:		libibverbs
       
    63 perftest:		libibverbs librdmacm libibverbs
       
    64 qperf:			libibverbs librdmacm
       
    65 libibumad:		libibverbs
       
    66 libibmad:		libibumad
       
    67 opensm:			libibumad libibmad
       
    68 ibutils:		opensm
       
    69 infiniband-diags:	libibverbs opensm
       
    70 
       
    71 FORCE: