Makefile revision 5622
0N/A#
1821N/A# CDDL HEADER START
1008N/A#
1008N/A# The contents of this file are subject to the terms of the
1008N/A# Common Development and Distribution License (the "License").
1008N/A# You may not use this file except in compliance with the License.
1008N/A#
1008N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1008N/A# or http://www.opensolaris.org/os/licensing.
1008N/A# See the License for the specific language governing permissions
1008N/A# and limitations under the License.
1008N/A#
1008N/A# When distributing Covered Code, include this CDDL HEADER in each
1008N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1008N/A# If applicable, add the following below this CDDL HEADER, with the
1008N/A# fields enclosed by brackets "[]" replaced with your own identifying
1008N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1008N/A#
1008N/A# CDDL HEADER END
1008N/A#
1008N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
1008N/A#
1008N/A
1008N/A# OFED only builds with GCC
1008N/ACOMPILER=gcc
1008N/A
1008N/Ainclude ../../../make-rules/shared-macros.mk
0N/A
0N/ACOMPONENT_NAME= opensm
1821N/ACOMPONENT_VERSION= 3.3.9
1821N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1821N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1821N/ACOMPONENT_ARCHIVE_HASH= \
1821N/A sha256:b8f333815e9d145cbb29310a38d2f2e39f9727b30eb6b15cb0d81fb9db39a2e1
1821N/ACOMPONENT_ARCHIVE_URL= http://www.openfabrics.org/downloads/management/$(COMPONENT_ARCHIVE)
1821N/ACOMPONENT_BUGDB= library/ofuv_lib
1821N/A
1821N/Ainclude $(WS_MAKE_RULES)/prep.mk
1821N/Ainclude $(WS_MAKE_RULES)/configure.mk
1821N/Ainclude ../ofed.mk
1821N/A
1821N/ACFLAGS += -std=gnu99
1821N/ALIBS += -libverbs -lsocket -lnsl -libumad -libmad
1821N/A
1821N/ACONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
1821N/A
1821N/ACLEANUP_FILES = \
1821N/A $(PROTO_DIR)/$(CONFIGURE_LIBDIR.32)/libosmcomp.la \
1821N/A $(PROTO_DIR)/$(CONFIGURE_LIBDIR.64)/libosmcomp.la \
1821N/A $(PROTO_DIR)/$(CONFIGURE_LIBDIR.32)/libosmvendor.la \
1821N/A $(PROTO_DIR)/$(CONFIGURE_LIBDIR.64)/libosmvendor.la \
1821N/A $(PROTO_DIR)/$(CONFIGURE_LIBDIR.32)/libopensm.la \
1821N/A $(PROTO_DIR)/$(CONFIGURE_LIBDIR.64)/libopensm.la \
1821N/A $(PROTOUSRSBINDIR)/opensm \
1821N/A $(PROTOUSRSBINDIR)/osmtest \
1821N/A $(PROTO_DIR)/usr/etc/init.d/opensmd \
1821N/A $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man8/opensm.8 \
1821N/A $(PROTO_DIR)/$(CONFIGURE_MANDIR)/man8/osmtest.8
1821N/A
1821N/ACOMPONENT_POST_INSTALL_ACTION = \
1821N/A $(RM) $(CLEANUP_FILES);\
1821N/A $(RM) $(PROTO_DIR)/$(CONFIGURE_LIBDIR.32)/$(COMPONENT_NAME).la;\
1008N/A $(RM) $(PROTO_DIR)/$(CONFIGURE_LIBDIR.64)/$(COMPONENT_NAME).la;\
1008N/A $(RM) -r $(PROTO_DIR)/usr/etc
1821N/A
1008N/ACOMPONENT_PRE_BUILD_ACTION =\
1008N/A $(MV) $(PROTO_DIR)/$(CONFIGURE_LIBDIR.32)/libibverbs.la\
1008N/A $(PROTO_DIR)/$(CONFIGURE_LIBDIR.32)/.libibverbs.la;\
1008N/A $(MV) $(PROTO_DIR)/$(CONFIGURE_LIBDIR.64)/libibverbs.la\
1008N/A $(PROTO_DIR)/$(CONFIGURE_LIBDIR.64)/.libibverbs.la
1821N/A
1821N/ACOMPONENT_POST_BUILD_ACTION =\
1821N/A $(MV) $(PROTO_DIR)/$(CONFIGURE_LIBDIR.32)/.libibverbs.la\
1821N/A $(PROTO_DIR)/$(CONFIGURE_LIBDIR.32)/libibverbs.la;\
1821N/A $(MV) $(PROTO_DIR)/$(CONFIGURE_LIBDIR.64)/.libibverbs.la\
1821N/A $(PROTO_DIR)/$(CONFIGURE_LIBDIR.64)/libibverbs.la
1821N/A
1821N/A# common targets
1821N/Aconfigure: $(CONFIGURE_32_and_64)
0N/A
1821N/Abuild: $(BUILD_32_and_64)
1821N/A
1821N/Ainstall: $(INSTALL_32_and_64)
1821N/A
1821N/Atest: $(NO_TESTS)
1821N/A
1821N/Asystem-test: $(NO_TESTS)
1821N/A
1821N/A