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