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