Makefile revision 5680
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# CDDL HEADER START
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# The contents of this file are subject to the terms of the
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# Common Development and Distribution License (the "License").
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# You may not use this file except in compliance with the License.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# or http://www.opensolaris.org/os/licensing.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# See the License for the specific language governing permissions
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# and limitations under the License.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# When distributing Covered Code, include this CDDL HEADER in each
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# If applicable, add the following below this CDDL HEADER, with the
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# CDDL HEADER END
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncBUILD_BITS= 64
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncinclude ../../make-rules/shared-macros.mk
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncCOMPONENT_NAME= smp_utils
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncCOMPONENT_VERSION= 0.97
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncCOMPONENT_PROJECT_URL= http://sg.danny.cz/sg/smp_utils.html
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncCOMPONENT_ARCHIVE_HASH= \
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync sha256:0e10d304cfa8789bcf16537e8f72d9afdf8838fca20ae68103c317432d00915b
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncCOMPONENT_ARCHIVE_URL= http://sg.danny.cz/sg/p/$(COMPONENT_ARCHIVE)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncCOMPONENT_BUGDB= utility/smputils
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncTPNO= 11065
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# Needs header file from ON only available in S12.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncifeq ($(BUILD_TYPE), evaluation)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncBUILD_64=
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncINSTALL_64=
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncPUBLISH_STAMP=
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncendif
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncinclude $(WS_MAKE_RULES)/common.mk
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncCPPFLAGS += -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncCONFIGURE_OPTIONS += --disable-static
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# Don't use rpath!
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncCOMPONENT_POST_CONFIGURE_ACTION = \
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync (cd $(BUILD_DIR_64) ; \
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync $(GSED) -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool ; \
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync $(GSED) -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncCOMPONENT_INSTALL_ARGS += INSTALL=$(INSTALL)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncCOMPONENT_INSTALL_ARGS += INSTALL_TOP=$(PROTOUSRDIR)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync$(INSTALL_64): COMPONENT_INSTALL_ARGS += INSTALL_LIB=$(PROTOUSRLIBDIR64)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync$(INSTALL_64): COMPONENT_INSTALL_ARGS += INSTALL_SBIN=$(PROTOUSRBINDIR)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncCOMPONENT_TEST_ENV += LD_LIBRARY_PATH=$(PROTOUSRLIBDIR64)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncCOMPONENT_TEST_CMD = \
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync $(PROTOUSRBINDIR)/smp_conf_general -V; \
$(PROTOUSRBINDIR)/smp_conf_phy_event -V; \
$(PROTOUSRBINDIR)/smp_conf_route_info -V; \
$(PROTOUSRBINDIR)/smp_conf_zone_man_pass -V; \
$(PROTOUSRBINDIR)/smp_conf_zone_perm_tbl -V; \
$(PROTOUSRBINDIR)/smp_conf_zone_phy_info -V; \
$(PROTOUSRBINDIR)/smp_discover -V; \
$(PROTOUSRBINDIR)/smp_discover_list -V; \
$(PROTOUSRBINDIR)/smp_ena_dis_zoning -V; \
$(PROTOUSRBINDIR)/smp_phy_control -V; \
$(PROTOUSRBINDIR)/smp_phy_test -V; \
$(PROTOUSRBINDIR)/smp_read_gpio -V; \
$(PROTOUSRBINDIR)/smp_rep_broadcast -V; \
$(PROTOUSRBINDIR)/smp_rep_exp_route_tbl -V; \
$(PROTOUSRBINDIR)/smp_rep_general -V; \
$(PROTOUSRBINDIR)/smp_rep_manufacturer -V; \
$(PROTOUSRBINDIR)/smp_rep_phy_err_log -V; \
$(PROTOUSRBINDIR)/smp_rep_phy_event -V; \
$(PROTOUSRBINDIR)/smp_rep_phy_event_list -V; \
$(PROTOUSRBINDIR)/smp_rep_phy_sata -V; \
$(PROTOUSRBINDIR)/smp_rep_route_info -V; \
$(PROTOUSRBINDIR)/smp_rep_self_conf_stat -V; \
$(PROTOUSRBINDIR)/smp_rep_zone_man_pass -V; \
$(PROTOUSRBINDIR)/smp_rep_zone_perm_tbl -V; \
$(PROTOUSRBINDIR)/smp_write_gpio -V; \
$(PROTOUSRBINDIR)/smp_zone_activate -V; \
$(PROTOUSRBINDIR)/smp_zone_lock -V; \
$(PROTOUSRBINDIR)/smp_zone_unlock -V; \
$(PROTOUSRBINDIR)/smp_zoned_broadcast -V