Makefile revision 1766
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# CDDL HEADER START
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# The contents of this file are subject to the terms of the
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# Common Development and Distribution License (the "License").
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# You may not use this file except in compliance with the License.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# or http://www.opensolaris.org/os/licensing.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# See the License for the specific language governing permissions
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# and limitations under the License.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# When distributing Covered Code, include this CDDL HEADER in each
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# If applicable, add the following below this CDDL HEADER, with the
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# fields enclosed by brackets "[]" replaced with your own identifying
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# information: Portions Copyright [yyyy] [name of copyright owner]
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# CDDL HEADER END
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#
5a6ccfa98c3fe8a3eb2016fa5109c951c00cf439sd# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiinclude ../../make-rules/shared-macros.mk
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_NAME= smp_utils
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_VERSION= 0.97
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_PROJECT_URL= http://sg.danny.cz/sg/smp_utils.html
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_ARCHIVE_HASH= \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi sha256:0e10d304cfa8789bcf16537e8f72d9afdf8838fca20ae68103c317432d00915b
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_ARCHIVE_URL= http://sg.danny.cz/sg/p/$(COMPONENT_ARCHIVE)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_BUGDB= utility/smputils
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiinclude ../../make-rules/prep.mk
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiinclude ../../make-rules/configure.mk
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiinclude ../../make-rules/ips.mk
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCC += $(CC_BITS)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiLDFLAGS += $(CC_BITS)
14ea4bb737263733ad80a36b4f73f681c30a6b45sdCOMPONENT_BUILD_ARGS += CC="$(CC)"
14ea4bb737263733ad80a36b4f73f681c30a6b45sdCOMPONENT_BUILD_ARGS += LDFLAGS="$(LDFLAGS)"
5a6ccfa98c3fe8a3eb2016fa5109c951c00cf439sd
14ea4bb737263733ad80a36b4f73f681c30a6b45sdCPPFLAGS += -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include
5a6ccfa98c3fe8a3eb2016fa5109c951c00cf439sdCONFIGURE_OPTIONS += --disable-static
14ea4bb737263733ad80a36b4f73f681c30a6b45sdCONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
14ea4bb737263733ad80a36b4f73f681c30a6b45sd
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# Don't use rpath!
14ea4bb737263733ad80a36b4f73f681c30a6b45sdCOMPONENT_POST_CONFIGURE_ACTION = \
5a6ccfa98c3fe8a3eb2016fa5109c951c00cf439sd (cd $(BUILD_DIR_64) ; \
14ea4bb737263733ad80a36b4f73f681c30a6b45sd $(GSED) -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool ; \
14ea4bb737263733ad80a36b4f73f681c30a6b45sd $(GSED) -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool)
5a6ccfa98c3fe8a3eb2016fa5109c951c00cf439sd
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# Move the section 8 man pages into section 1m.
5a6ccfa98c3fe8a3eb2016fa5109c951c00cf439sdCOMPONENT_POST_INSTALL_ACTION = \
14ea4bb737263733ad80a36b4f73f681c30a6b45sd for f in $(PROTOUSRSHAREMANDIR)/man8/*; do \
14ea4bb737263733ad80a36b4f73f681c30a6b45sd mv $$f $${f%.8}.1m; \
ca6d7ba96138ee0d42364692a5e413bb220c4675jl done ; \
ca6d7ba96138ee0d42364692a5e413bb220c4675jl $(MV) $(PROTOUSRSHAREMANDIR)/man8 $(PROTOUSRSHAREMANDIR)/man1m
ca6d7ba96138ee0d42364692a5e413bb220c4675jl
ca6d7ba96138ee0d42364692a5e413bb220c4675jlPKG_PROTO_DIRS += $(COMPONENT_DIR)/files
ca6d7ba96138ee0d42364692a5e413bb220c4675jl
ca6d7ba96138ee0d42364692a5e413bb220c4675jlCOMPONENT_INSTALL_ARGS += INSTALL=$(INSTALL)
ca6d7ba96138ee0d42364692a5e413bb220c4675jlCOMPONENT_INSTALL_ARGS += INSTALL_TOP=$(PROTOUSRDIR)
ca6d7ba96138ee0d42364692a5e413bb220c4675jl$(INSTALL_64): COMPONENT_INSTALL_ARGS += INSTALL_LIB=$(PROTOUSRLIBDIR64)
29b85469dc7bfb63a751e537fb0f51f164df4efawillard$(INSTALL_64): COMPONENT_INSTALL_ARGS += INSTALL_SBIN=$(PROTOUSRBINDIR64)
29b85469dc7bfb63a751e537fb0f51f164df4efawillard
29b85469dc7bfb63a751e537fb0f51f164df4efawillardASLR_MODE = $(ASLR_ENABLE)
29b85469dc7bfb63a751e537fb0f51f164df4efawillard
29b85469dc7bfb63a751e537fb0f51f164df4efawillard# common targets
29b85469dc7bfb63a751e537fb0f51f164df4efawillardbuild: $(BUILD_64)
29b85469dc7bfb63a751e537fb0f51f164df4efawillard
29b85469dc7bfb63a751e537fb0f51f164df4efawillardinstall: $(INSTALL_64)
29b85469dc7bfb63a751e537fb0f51f164df4efawillard
29b85469dc7bfb63a751e537fb0f51f164df4efawillardtest: install
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi ($(ENV) LD_LIBRARY_PATH=$(PROTOUSRLIBDIR64) \
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi $(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_general -V; \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_phy_event -V; \
14ea4bb737263733ad80a36b4f73f681c30a6b45sd $(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_route_info -V; \
14ea4bb737263733ad80a36b4f73f681c30a6b45sd $(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_zone_man_pass -V; \
14ea4bb737263733ad80a36b4f73f681c30a6b45sd $(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_zone_perm_tbl -V; \
14ea4bb737263733ad80a36b4f73f681c30a6b45sd $(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_zone_phy_info -V; \
14ea4bb737263733ad80a36b4f73f681c30a6b45sd $(PROTOUSRDIR)/sbin/$(MACH64)/smp_discover -V; \
59ac0c1669407488b67ae9e273667a340dccc611davemq $(PROTOUSRDIR)/sbin/$(MACH64)/smp_discover_list -V; \
59ac0c1669407488b67ae9e273667a340dccc611davemq $(PROTOUSRDIR)/sbin/$(MACH64)/smp_ena_dis_zoning -V; \
59ac0c1669407488b67ae9e273667a340dccc611davemq $(PROTOUSRDIR)/sbin/$(MACH64)/smp_phy_control -V; \
59ac0c1669407488b67ae9e273667a340dccc611davemq $(PROTOUSRDIR)/sbin/$(MACH64)/smp_phy_test -V; \
59ac0c1669407488b67ae9e273667a340dccc611davemq $(PROTOUSRDIR)/sbin/$(MACH64)/smp_read_gpio -V; \
59ac0c1669407488b67ae9e273667a340dccc611davemq $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_broadcast -V; \
59ac0c1669407488b67ae9e273667a340dccc611davemq $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_exp_route_tbl -V; \
59ac0c1669407488b67ae9e273667a340dccc611davemq $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_general -V; \
59ac0c1669407488b67ae9e273667a340dccc611davemq $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_manufacturer -V; \
59ac0c1669407488b67ae9e273667a340dccc611davemq $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_phy_err_log -V; \
14ea4bb737263733ad80a36b4f73f681c30a6b45sd $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_phy_event -V; \
29b85469dc7bfb63a751e537fb0f51f164df4efawillard $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_phy_event_list -V; \
ca6d7ba96138ee0d42364692a5e413bb220c4675jl $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_phy_sata -V; \
ca6d7ba96138ee0d42364692a5e413bb220c4675jl $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_route_info -V; \
ca6d7ba96138ee0d42364692a5e413bb220c4675jl $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_self_conf_stat -V; \
29b85469dc7bfb63a751e537fb0f51f164df4efawillard $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_zone_man_pass -V; \
29b85469dc7bfb63a751e537fb0f51f164df4efawillard $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_zone_perm_tbl -V; \
29b85469dc7bfb63a751e537fb0f51f164df4efawillard $(PROTOUSRDIR)/sbin/$(MACH64)/smp_write_gpio -V; \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(PROTOUSRDIR)/sbin/$(MACH64)/smp_zone_activate -V; \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(PROTOUSRDIR)/sbin/$(MACH64)/smp_zone_lock -V; \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi $(PROTOUSRDIR)/sbin/$(MACH64)/smp_zone_unlock -V; \
59ac0c1669407488b67ae9e273667a340dccc611davemq $(PROTOUSRDIR)/sbin/$(MACH64)/smp_zoned_broadcast -V)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiinclude ../../make-rules/depend.mk
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi