components/open-fabrics/infiniband-diags/Makefile
changeset 369 cc8c00719da9
child 800 2ad056ed89ec
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) 2011, Oracle and/or its affiliates. All rights reserved.
       
    22 #
       
    23 include ../../../make-rules/shared-macros.mk
       
    24 
       
    25 COMPONENT_NAME=		infiniband-diags
       
    26 COMPONENT_VERSION=	1.5.8
       
    27 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    28 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    29 COMPONENT_ARCHIVE_HASH=	sha1:76e399d95b25fbef4f109305e07e35eba6b1547e
       
    30 COMPONENT_ARCHIVE_URL=	http://www.openfabrics.org/downloads/management/$(COMPONENT_ARCHIVE)
       
    31 
       
    32 include $(WS_TOP)/make-rules/prep.mk
       
    33 include $(WS_TOP)/make-rules/configure.mk
       
    34 include ../ofed.mk
       
    35 
       
    36 MAN1MFILES = set_nodedesc.sh.1m
       
    37 
       
    38 include $(WS_TOP)/make-rules/shared-targets.mk
       
    39 
       
    40 CFLAGS += -I$(PROTO_DIR)/usr/include/infiniband
       
    41 LIBS +=	-lsocket -lnsl -lopensm -losmvendor -losmcomp -libumad -libmad -libverbs -ldevinfo
       
    42 
       
    43 COMPONENT_PREP_ACTION = \
       
    44         cp solaris_set_nodedesc.c $(@D)/src
       
    45 
       
    46 COMPONENT_INSTALL_ENV +=	PERL=$(PERL)
       
    47 
       
    48 CONFIGURE_ENV +=	PERL=$(PERL)
       
    49 
       
    50 # it apears that configure is broken
       
    51 COMPONENT_BUILD_ARGS  +=	LIBS="$(LIBS)"
       
    52 
       
    53 COMPONENT_PRE_CONFIGURE_ACTION =\
       
    54 	$(SYMLINK) ../../$(COMPONENT_SRC)/include $(@D)/include
       
    55 
       
    56 COMPONENT_POST_CONFIGURE_ACTION=\
       
    57 	$(SYMLINK) ../../../$(COMPONENT_SRC)/scripts/IBswcountlimits.pm $(@D)/scripts
       
    58 
       
    59 PROTOMAN = $(PROTO_DIR)/$(CONFIGURE_MANDIR)
       
    60 
       
    61 CLEANUP_FILES =\
       
    62 	$(PROTO_DIR)/$(CONFIGURE_LIBDIR.32)/libibnetdisc.la\
       
    63 	$(PROTO_DIR)/$(CONFIGURE_LIBDIR.32)/libibnetdisc.so \
       
    64 	$(PROTOUSRBINDIR)/vendstat\
       
    65 	$(PROTOUSRBINDIR)/dump_lfts.sh \
       
    66 	$(PROTOUSRBINDIR)/dump_mfts.sh\
       
    67 	$(PROTOUSRBINDIR)/ibidsverify.pl \
       
    68 	$(PROTOUSRBINDIR)/ibfindnodesusing.pl\
       
    69 	$(PROTOMAN)/man1m/vendstat.1m \
       
    70 	$(PROTOMAN)/man1m/dump_lfts.1m\
       
    71 	$(PROTOMAN)/man1m/dump_mfts.1m \
       
    72 	$(PROTOMAN)/man1m/ibidsverify.1m\
       
    73 	$(PROTOMAN)/man1m/ibfindnodesusing.1m \
       
    74 	$(PROTOUSRINCDIR)/infiniband/ibnetdisc.h\
       
    75 
       
    76 COMPONENT_POST_INSTALL_ACTION =\
       
    77 	$(RM) $(CLEANUP_FILES);\
       
    78 	$(INSTALL) -m 644 manpages/set_nodedesc.sh.1m $(PROTOMAN)/man1m
       
    79 
       
    80 # common targets
       
    81 build:		$(BUILD_32)
       
    82 
       
    83 install:	$(INSTALL_32) $(PROTOMAN1MFILES)
       
    84 
       
    85 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
       
    86 
       
    87 test:		$(NO_TESTS)
       
    88 
       
    89 include $(WS_TOP)/make-rules/depend.mk