Makefile revision 369
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER START
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# The contents of this file are subject to the terms of the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Common Development and Distribution License (the "License").
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You may not use this file except in compliance with the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# or http://www.opensolaris.org/os/licensing.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# See the License for the specific language governing permissions
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# and limitations under the License.
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# When distributing Covered Code, include this CDDL HEADER in each
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# If applicable, add the following below this CDDL HEADER, with the
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden# fields enclosed by brackets "[]" replaced with your own identifying
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# information: Portions Copyright [yyyy] [name of copyright owner]
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER END
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Sideninclude ../../../make-rules/shared-macros.mk
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenCOMPONENT_NAME= libmlx4
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenCOMPONENT_VERSION= 1.0.1
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenCOMPONENT_ARCHIVE= $(COMPONENT_SRC)-1.18.gb810a27.tar.gz
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenCOMPONENT_ARCHIVE_HASH= sha1:fd6742451eb6efaad87c6feb78fc01d0e962387d
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenCOMPONENT_ARCHIVE_URL= http://www.openfabrics.org/downloads/libmlx4/$(COMPONENT_ARCHIVE)
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Sideninclude $(WS_TOP)/make-rules/prep.mk
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Sideninclude $(WS_TOP)/make-rules/configure.mk
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Sideninclude ../ofed.mk
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden# --disable-libcheck is not a supported option for this component
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenDISABLE_LIBCHECK=
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenLIBS += -libverbs
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenLDFLAGS += -L$(PROTO_DIR)/$(CONFIGURE_LIBDIR.$(BITS))
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenCONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenCOMPONENT_POST_INSTALL_ACTION =\
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden $(RM) $(PROTO_DIR)/$(CONFIGURE_LIBDIR.32)/$(COMPONENT_NAME).la;\
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden $(RM) $(PROTO_DIR)/$(CONFIGURE_LIBDIR.64)/$(COMPONENT_NAME).la;\
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden# common targets
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Sidenbuild: $(BUILD_32_and_64)
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Sideninstall: $(INSTALL_32_and_64)
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Sidentest: $(NO_TESTS)
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Sideninclude $(WS_TOP)/make-rules/depend.mk
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden