Makefile revision 2362
688N/A#
1370N/A# CDDL HEADER START
688N/A#
688N/A# The contents of this file are subject to the terms of the
919N/A# Common Development and Distribution License (the "License").
919N/A# You may not use this file except in compliance with the License.
919N/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, 2013, Oracle and/or its affiliates. All rights reserved.
688N/A#
688N/Ainclude ../../../make-rules/shared-macros.mk
1370N/A
1370N/ACOMPONENT_NAME= libmlx4
1370N/ACOMPONENT_VERSION= 1.0.1
1370N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1370N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC)-1.18.gb810a27.tar.gz
688N/ACOMPONENT_ARCHIVE_HASH= \
1370N/A sha256:ac3aa335d5749a8edc471630b1f5049122c8b7b66bab88c299e255122028e19c
1370N/ACOMPONENT_ARCHIVE_URL= http://www.openfabrics.org/downloads/libmlx4/$(COMPONENT_ARCHIVE)
996N/A
1370N/Ainclude $(WS_TOP)/make-rules/prep.mk
688N/Ainclude $(WS_TOP)/make-rules/configure.mk
1370N/Ainclude ../ofed.mk
# --disable-libcheck is not a supported option for this component
DISABLE_LIBCHECK=
LIBS += -libverbs
LDFLAGS += -L$(PROTO_DIR)/$(CONFIGURE_LIBDIR.$(BITS))
CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
COMPONENT_PREP_ACTION += (if [ x$(MACH) = "xi386" ]; then \
cp mlx4.driver.i386 $(@D)/mlx4.driver; \
else \
cp mlx4.driver.sparc $(@D)/mlx4.driver; \
fi; \
cd $(@D) ; \
aclocal --force ; \
libtoolize --copy --force --ltdl ; \
autoconf --force ; \
autoheader --force)
COMPONENT_POST_INSTALL_ACTION =\
$(RM) $(PROTO_DIR)/$(CONFIGURE_LIBDIR.32)/$(COMPONENT_NAME).la;\
$(RM) $(PROTO_DIR)/$(CONFIGURE_LIBDIR.64)/$(COMPONENT_NAME).la;\
# common targets
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
test: $(NO_TESTS)
include $(WS_TOP)/make-rules/depend.mk