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