Makefile revision 5562
5562N/A#
5562N/A# CDDL HEADER START
5562N/A#
5562N/A# The contents of this file are subject to the terms of the
5562N/A# Common Development and Distribution License (the "License").
5562N/A# You may not use this file except in compliance with the License.
5562N/A#
5562N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5562N/A# or http://www.opensolaris.org/os/licensing.
5562N/A# See the License for the specific language governing permissions
5562N/A# and limitations under the License.
5562N/A#
5562N/A# When distributing Covered Code, include this CDDL HEADER in each
5562N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5562N/A# If applicable, add the following below this CDDL HEADER, with the
5562N/A# fields enclosed by brackets "[]" replaced with your own identifying
5562N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5562N/A#
5562N/A# CDDL HEADER END
5562N/A#
5562N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
5562N/A#
5562N/ACOMPILER = gcc
5562N/Ainclude ../../../make-rules/shared-macros.mk
5562N/A
5562N/ACOMPONENT_NAME= libsif
5562N/ACOMPONENT_VERSION= 1.0
5562N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5562N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
5562N/ACOMPONENT_ARCHIVE_HASH= \
5562N/A sha256:501858b4b9d45ebe163d9136f7fb4d08708aaf91cc97c40059ae2a1b4737239d
5562N/ACOMPONENT_SERVER= download.oracle.com
5562N/ACOMPONENT_ARCHIVE_URL= http://$(COMPONENT_SERVER)/otn-pub/oss/networking/$(COMPONENT_ARCHIVE)
5562N/A
5562N/Ainclude $(WS_TOP)/make-rules/prep.mk
5562N/Ainclude $(WS_TOP)/make-rules/configure.mk
5562N/Ainclude ../ofed.mk
5562N/A
5562N/AREMOVE_OLD_SRC= sif.h sif_user.h sif_int_user.h os_header.h psif_api.h psif_endian.h psif_hw_print.h psif_hw_data* psif_hw_setget* psif_hw_macro* kernel_types.h
5562N/A# --disable-libcheck is not a supported option for this component
5562N/ADISABLE_LIBCHECK=
5562N/A
5562N/ALIBS += -libverbs
5562N/ALDFLAGS += -L$(PROTO_DIR)/$(CONFIGURE_LIBDIR.$(BITS))
5562N/A
5562N/ACONFIGURE_ENV += CPPFLAGS=" -DSOLARIS $(CPPFLAGS) -I../../include/sif/ -I../../include/psifapi/ -I../../$(COMPONENT_SRC)/src/ "
5562N/A
5562N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
5562N/A
5562N/ACOMPONENT_PREP_ACTION += cd $(COMPONENT_SRC)/src/ ; rm $(REMOVE_OLD_SRC) ; cd - ; \
5562N/A (cd $(@D); \
5562N/A autoreconf -ivf ; \
5562N/A aclocal --force ; \
5562N/A libtoolize --copy --force --ltdl ; \
5562N/A autoconf --force ; \
5562N/A autoheader --force)
5562N/A
5562N/ACOMPONENT_POST_INSTALL_ACTION =\
5562N/A $(RM) $(PROTO_DIR)/$(CONFIGURE_LIBDIR.32)/$(COMPONENT_NAME).la;\
5562N/A $(RM) $(PROTO_DIR)/$(CONFIGURE_LIBDIR.64)/$(COMPONENT_NAME).la;\
5562N/A
5562N/A# common targets
5562N/Aconfigure: $(CONFIGURE_64)
5562N/A
5562N/Abuild_sparc: $(BUILD_64)
5562N/A
5562N/Abuild_i386:
5562N/A @echo "Not available."
5562N/A
5562N/Abuild: build_$(MACH)
5562N/A
5562N/Ainstall_sparc: $(INSTALL_64)
5562N/A
5562N/Ainstall_i386:
5562N/A @echo "Not available."
5562N/A
5562N/Ainstall: install_$(MACH)
5562N/A
5562N/A# we're sparc-only
5562N/Aifeq ($(MACH), i386)
5562N/APUBLISH_STAMP=
5562N/Aendif
5562N/A
5562N/Atest: $(NO_TESTS)
5562N/A
5562N/Asystem-test: $(NO_TESTS)