Makefile revision 5002
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync# CDDL HEADER START
45e9809aff7304721fddb95654901b32195c9c7avboxsync#
45e9809aff7304721fddb95654901b32195c9c7avboxsync# The contents of this file are subject to the terms of the
45e9809aff7304721fddb95654901b32195c9c7avboxsync# Common Development and Distribution License (the "License").
45e9809aff7304721fddb95654901b32195c9c7avboxsync# You may not use this file except in compliance with the License.
45e9809aff7304721fddb95654901b32195c9c7avboxsync#
45e9809aff7304721fddb95654901b32195c9c7avboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
45e9809aff7304721fddb95654901b32195c9c7avboxsync# or http://www.opensolaris.org/os/licensing.
45e9809aff7304721fddb95654901b32195c9c7avboxsync# See the License for the specific language governing permissions
45e9809aff7304721fddb95654901b32195c9c7avboxsync# and limitations under the License.
45e9809aff7304721fddb95654901b32195c9c7avboxsync#
45e9809aff7304721fddb95654901b32195c9c7avboxsync# When distributing Covered Code, include this CDDL HEADER in each
45e9809aff7304721fddb95654901b32195c9c7avboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
45e9809aff7304721fddb95654901b32195c9c7avboxsync# If applicable, add the following below this CDDL HEADER, with the
45e9809aff7304721fddb95654901b32195c9c7avboxsync# fields enclosed by brackets "[]" replaced with your own identifying
45e9809aff7304721fddb95654901b32195c9c7avboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
45e9809aff7304721fddb95654901b32195c9c7avboxsync#
45e9809aff7304721fddb95654901b32195c9c7avboxsync# CDDL HEADER END
45e9809aff7304721fddb95654901b32195c9c7avboxsync#
45e9809aff7304721fddb95654901b32195c9c7avboxsync# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
45e9809aff7304721fddb95654901b32195c9c7avboxsync#
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync# OFED only builds with GCC
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCOMPILER=gcc
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncinclude ../../../make-rules/shared-macros.mk
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCOMPONENT_NAME= infiniband-diags
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCOMPONENT_VERSION= 1.5.8
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCOMPONENT_ARCHIVE_HASH= \
45e9809aff7304721fddb95654901b32195c9c7avboxsync sha256:0baf6694d54602a66dfc2b82a765c933b24534fd8e2bda7e9b89abf503b29c02
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCOMPONENT_ARCHIVE_URL= http://www.openfabrics.org/downloads/management/$(COMPONENT_ARCHIVE)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncinclude $(WS_MAKE_RULES)/prep.mk
45e9809aff7304721fddb95654901b32195c9c7avboxsyncinclude $(WS_MAKE_RULES)/configure.mk
45e9809aff7304721fddb95654901b32195c9c7avboxsyncinclude ../ofed.mk
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncMAN8FILES = set_nodedesc.sh.8
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCFLAGS += -I$(PROTO_DIR)/usr/include/infiniband
45e9809aff7304721fddb95654901b32195c9c7avboxsyncLIBS += -lsocket -lnsl -lopensm -losmvendor -losmcomp -libumad -libmad -libverbs -ldevinfo
45e9809aff7304721fddb95654901b32195c9c7avboxsync
COMPONENT_PREP_ACTION = \
cp solaris_set_nodedesc.c $(@D)/src
COMPONENT_INSTALL_ENV += PERL=$(PERL)
CONFIGURE_ENV += PERL=$(PERL)
CONFIGURE_OPTIONS += --sbindir=$(USRSBINDIR)
# it apears that configure is broken
COMPONENT_BUILD_ARGS += LIBS="$(LIBS)"
COMPONENT_PRE_CONFIGURE_ACTION =\
$(SYMLINK) ../../$(COMPONENT_SRC)/include $(@D)/include
COMPONENT_POST_CONFIGURE_ACTION=\
$(SYMLINK) ../../../$(COMPONENT_SRC)/scripts/IBswcountlimits.pm $(@D)/scripts
PROTOMAN = $(PROTO_DIR)/$(CONFIGURE_MANDIR)
CLEANUP_FILES =\
$(PROTO_DIR)/$(CONFIGURE_LIBDIR.32)/libibnetdisc.la\
$(PROTO_DIR)/$(CONFIGURE_LIBDIR.32)/libibnetdisc.so \
$(PROTOUSRBINDIR)/vendstat\
$(PROTOUSRBINDIR)/dump_lfts.sh \
$(PROTOUSRBINDIR)/dump_mfts.sh\
$(PROTOUSRBINDIR)/ibidsverify.pl \
$(PROTOUSRBINDIR)/ibfindnodesusing.pl\
$(PROTOMAN)/man8/vendstat.8 \
$(PROTOMAN)/man8/dump_lfts.8 \
$(PROTOMAN)/man8/dump_mfts.8 \
$(PROTOMAN)/man8/ibidsverify.8 \
$(PROTOMAN)/man8/ibfindnodesusing.8 \
$(PROTOUSRINCDIR)/infiniband/ibnetdisc.h\
COMPONENT_POST_INSTALL_ACTION =\
$(RM) $(CLEANUP_FILES);\
$(INSTALL) -m 644 manpages/set_nodedesc.sh.8 $(PROTOMAN)/man8
# common targets
configure: $(CONFIGURE_32_and_64)
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64) #$(PROTOMAN8FILES)
test: $(NO_TESTS)
system-test: $(NO_TESTS)