Makefile revision 2899
1766N/A#
1766N/A# CDDL HEADER START
1766N/A#
1766N/A# The contents of this file are subject to the terms of the
1766N/A# Common Development and Distribution License (the "License").
1766N/A# You may not use this file except in compliance with the License.
1766N/A#
1766N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1766N/A# or http://www.opensolaris.org/os/licensing.
1766N/A# See the License for the specific language governing permissions
1766N/A# and limitations under the License.
1766N/A#
1766N/A# When distributing Covered Code, include this CDDL HEADER in each
1766N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1766N/A# If applicable, add the following below this CDDL HEADER, with the
1766N/A# fields enclosed by brackets "[]" replaced with your own identifying
1766N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1766N/A#
1766N/A# CDDL HEADER END
1766N/A#
1766N/A
1766N/A#
2899N/A# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
1766N/A#
1766N/A
1766N/Ainclude ../../make-rules/shared-macros.mk
1766N/A
1766N/ACOMPONENT_NAME= smp_utils
1766N/ACOMPONENT_VERSION= 0.97
1766N/ACOMPONENT_PROJECT_URL= http://sg.danny.cz/sg/smp_utils.html
1766N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1766N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
1766N/ACOMPONENT_ARCHIVE_HASH= \
1766N/A sha256:0e10d304cfa8789bcf16537e8f72d9afdf8838fca20ae68103c317432d00915b
1766N/ACOMPONENT_ARCHIVE_URL= http://sg.danny.cz/sg/p/$(COMPONENT_ARCHIVE)
2899N/ACOMPONENT_BUGDB= utility/smputils
2899N/A
2899N/ATPNO= 11065
1766N/A
1766N/Ainclude ../../make-rules/prep.mk
1766N/Ainclude ../../make-rules/configure.mk
1766N/Ainclude ../../make-rules/ips.mk
1766N/A
1766N/A
1766N/ACC += $(CC_BITS)
1766N/ALDFLAGS += $(CC_BITS)
1766N/ACOMPONENT_BUILD_ARGS += CC="$(CC)"
1766N/ACOMPONENT_BUILD_ARGS += LDFLAGS="$(LDFLAGS)"
1766N/A
1766N/ACPPFLAGS += -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include
1766N/ACONFIGURE_OPTIONS += --disable-static
1766N/ACONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
1766N/A
1766N/A# Don't use rpath!
1766N/ACOMPONENT_POST_CONFIGURE_ACTION = \
1766N/A (cd $(BUILD_DIR_64) ; \
1766N/A $(GSED) -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool ; \
1766N/A $(GSED) -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool)
1766N/A
1766N/A# Move the section 8 man pages into section 1m.
1766N/ACOMPONENT_POST_INSTALL_ACTION = \
1766N/A for f in $(PROTOUSRSHAREMANDIR)/man8/*; do \
1766N/A mv $$f $${f%.8}.1m; \
1766N/A done ; \
1766N/A $(MV) $(PROTOUSRSHAREMANDIR)/man8 $(PROTOUSRSHAREMANDIR)/man1m
1766N/A
1766N/APKG_PROTO_DIRS += $(COMPONENT_DIR)/files
1766N/A
1766N/ACOMPONENT_INSTALL_ARGS += INSTALL=$(INSTALL)
1766N/ACOMPONENT_INSTALL_ARGS += INSTALL_TOP=$(PROTOUSRDIR)
1766N/A$(INSTALL_64): COMPONENT_INSTALL_ARGS += INSTALL_LIB=$(PROTOUSRLIBDIR64)
1766N/A$(INSTALL_64): COMPONENT_INSTALL_ARGS += INSTALL_SBIN=$(PROTOUSRBINDIR64)
1766N/A
1766N/AASLR_MODE = $(ASLR_ENABLE)
1766N/A
1766N/A# common targets
1766N/Abuild: $(BUILD_64)
1766N/A
1766N/Ainstall: $(INSTALL_64)
1766N/A
1766N/Atest: install
1766N/A ($(ENV) LD_LIBRARY_PATH=$(PROTOUSRLIBDIR64) \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_general -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_phy_event -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_route_info -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_zone_man_pass -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_zone_perm_tbl -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_zone_phy_info -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_discover -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_discover_list -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_ena_dis_zoning -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_phy_control -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_phy_test -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_read_gpio -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_broadcast -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_exp_route_tbl -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_general -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_manufacturer -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_phy_err_log -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_phy_event -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_phy_event_list -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_phy_sata -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_route_info -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_self_conf_stat -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_zone_man_pass -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_zone_perm_tbl -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_write_gpio -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_zone_activate -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_zone_lock -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_zone_unlock -V; \
1766N/A $(PROTOUSRDIR)/sbin/$(MACH64)/smp_zoned_broadcast -V)
1766N/A
1766N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
1766N/A
1766N/Ainclude ../../make-rules/depend.mk