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