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