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