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