Makefile revision 2899
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith#
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# CDDL HEADER START
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith#
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# The contents of this file are subject to the terms of the
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# Common Development and Distribution License (the "License").
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# You may not use this file except in compliance with the License.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith#
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# or http://www.opensolaris.org/os/licensing.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# See the License for the specific language governing permissions
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# and limitations under the License.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith#
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# When distributing Covered Code, include this CDDL HEADER in each
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# If applicable, add the following below this CDDL HEADER, with the
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# fields enclosed by brackets "[]" replaced with your own identifying
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# information: Portions Copyright [yyyy] [name of copyright owner]
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith#
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# CDDL HEADER END
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith#
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith#
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith#
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithinclude ../../make-rules/shared-macros.mk
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithCOMPONENT_NAME= smp_utils
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithCOMPONENT_VERSION= 0.97
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithCOMPONENT_PROJECT_URL= http://sg.danny.cz/sg/smp_utils.html
5c45bb188ab729e501e48732842cb9de6a9813beAlex ValavanisCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
a4142717644b885998f4de2b27be4e8648315decMarkus EngelCOMPONENT_ARCHIVE_HASH= \
9ba77856a8823f85b53c0a861d220cd0347f2754Liam P. White sha256:0e10d304cfa8789bcf16537e8f72d9afdf8838fca20ae68103c317432d00915b
a4142717644b885998f4de2b27be4e8648315decMarkus EngelCOMPONENT_ARCHIVE_URL= http://sg.danny.cz/sg/p/$(COMPONENT_ARCHIVE)
d0e849117872ca80f44fc470761bc827fadd4680jabiertxofCOMPONENT_BUGDB= utility/smputils
d0e849117872ca80f44fc470761bc827fadd4680jabiertxof
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithTPNO= 11065
9836787d16b657453784c30809d330f50d9bc6d8Liam P. White
9836787d16b657453784c30809d330f50d9bc6d8Liam P. Whiteinclude ../../make-rules/prep.mk
a4142717644b885998f4de2b27be4e8648315decMarkus Engelinclude ../../make-rules/configure.mk
a4142717644b885998f4de2b27be4e8648315decMarkus Engelinclude ../../make-rules/ips.mk
878a58a27ee9b6bae58f9f8272c33e74600d2c2fjabiertxof
878a58a27ee9b6bae58f9f8272c33e74600d2c2fjabiertxof
d0e849117872ca80f44fc470761bc827fadd4680jabiertxofCC += $(CC_BITS)
182abb760cd7c8df49bd58c818a065469e06ce1dMatthew PetroffLDFLAGS += $(CC_BITS)
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithCOMPONENT_BUILD_ARGS += CC="$(CC)"
182abb760cd7c8df49bd58c818a065469e06ce1dMatthew PetroffCOMPONENT_BUILD_ARGS += LDFLAGS="$(LDFLAGS)"
182abb760cd7c8df49bd58c818a065469e06ce1dMatthew Petroff
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithCPPFLAGS += -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithCONFIGURE_OPTIONS += --disable-static
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithCONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
d0e849117872ca80f44fc470761bc827fadd4680jabiertxof
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# Don't use rpath!
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithCOMPONENT_POST_CONFIGURE_ACTION = \
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith (cd $(BUILD_DIR_64) ; \
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith $(GSED) -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool ; \
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith $(GSED) -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool)
d0e849117872ca80f44fc470761bc827fadd4680jabiertxof
d0e849117872ca80f44fc470761bc827fadd4680jabiertxof# Move the section 8 man pages into section 1m.
d0e849117872ca80f44fc470761bc827fadd4680jabiertxofCOMPONENT_POST_INSTALL_ACTION = \
d0e849117872ca80f44fc470761bc827fadd4680jabiertxof for f in $(PROTOUSRSHAREMANDIR)/man8/*; do \
d0e849117872ca80f44fc470761bc827fadd4680jabiertxof mv $$f $${f%.8}.1m; \
d0e849117872ca80f44fc470761bc827fadd4680jabiertxof done ; \
d0e849117872ca80f44fc470761bc827fadd4680jabiertxof $(MV) $(PROTOUSRSHAREMANDIR)/man8 $(PROTOUSRSHAREMANDIR)/man1m
d0e849117872ca80f44fc470761bc827fadd4680jabiertxof
d0e849117872ca80f44fc470761bc827fadd4680jabiertxofPKG_PROTO_DIRS += $(COMPONENT_DIR)/files
d0e849117872ca80f44fc470761bc827fadd4680jabiertxof
d0e849117872ca80f44fc470761bc827fadd4680jabiertxofCOMPONENT_INSTALL_ARGS += INSTALL=$(INSTALL)
d0e849117872ca80f44fc470761bc827fadd4680jabiertxofCOMPONENT_INSTALL_ARGS += INSTALL_TOP=$(PROTOUSRDIR)
d0e849117872ca80f44fc470761bc827fadd4680jabiertxof$(INSTALL_64): COMPONENT_INSTALL_ARGS += INSTALL_LIB=$(PROTOUSRLIBDIR64)
d0e849117872ca80f44fc470761bc827fadd4680jabiertxof$(INSTALL_64): COMPONENT_INSTALL_ARGS += INSTALL_SBIN=$(PROTOUSRBINDIR64)
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithASLR_MODE = $(ASLR_ENABLE)
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
6b0fbf10b982696648debeede2b57f2b32a6a958Alex Valavanis# common targets
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithbuild: $(BUILD_64)
9ba77856a8823f85b53c0a861d220cd0347f2754Liam P. White
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithinstall: $(INSTALL_64)
e5142885c05d3c92b126938b42fb0342c749f91fJabiertxof
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithtest: install
d0e849117872ca80f44fc470761bc827fadd4680jabiertxof ($(ENV) LD_LIBRARY_PATH=$(PROTOUSRLIBDIR64) \
d0e849117872ca80f44fc470761bc827fadd4680jabiertxof $(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_general -V; \
d0e849117872ca80f44fc470761bc827fadd4680jabiertxof $(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_phy_event -V; \
d0e849117872ca80f44fc470761bc827fadd4680jabiertxof $(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_route_info -V; \
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith $(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_zone_man_pass -V; \
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith $(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_zone_perm_tbl -V; \
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith $(PROTOUSRDIR)/sbin/$(MACH64)/smp_conf_zone_phy_info -V; \
3a3c3fe314715daa8d4cfaa231afe714bacefb58Jabiertxof $(PROTOUSRDIR)/sbin/$(MACH64)/smp_discover -V; \
3a3c3fe314715daa8d4cfaa231afe714bacefb58Jabiertxof $(PROTOUSRDIR)/sbin/$(MACH64)/smp_discover_list -V; \
3a3c3fe314715daa8d4cfaa231afe714bacefb58Jabiertxof $(PROTOUSRDIR)/sbin/$(MACH64)/smp_ena_dis_zoning -V; \
3a3c3fe314715daa8d4cfaa231afe714bacefb58Jabiertxof $(PROTOUSRDIR)/sbin/$(MACH64)/smp_phy_control -V; \
3a3c3fe314715daa8d4cfaa231afe714bacefb58Jabiertxof $(PROTOUSRDIR)/sbin/$(MACH64)/smp_phy_test -V; \
3a3c3fe314715daa8d4cfaa231afe714bacefb58Jabiertxof $(PROTOUSRDIR)/sbin/$(MACH64)/smp_read_gpio -V; \
3a3c3fe314715daa8d4cfaa231afe714bacefb58Jabiertxof $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_broadcast -V; \
e5142885c05d3c92b126938b42fb0342c749f91fJabiertxof $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_exp_route_tbl -V; \
3a3c3fe314715daa8d4cfaa231afe714bacefb58Jabiertxof $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_general -V; \
3a3c3fe314715daa8d4cfaa231afe714bacefb58Jabiertxof $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_manufacturer -V; \
3a3c3fe314715daa8d4cfaa231afe714bacefb58Jabiertxof $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_phy_err_log -V; \
3a3c3fe314715daa8d4cfaa231afe714bacefb58Jabiertxof $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_phy_event -V; \
3a3c3fe314715daa8d4cfaa231afe714bacefb58Jabiertxof $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_phy_event_list -V; \
3a3c3fe314715daa8d4cfaa231afe714bacefb58Jabiertxof $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_phy_sata -V; \
3a3c3fe314715daa8d4cfaa231afe714bacefb58Jabiertxof $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_route_info -V; \
3a3c3fe314715daa8d4cfaa231afe714bacefb58Jabiertxof $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_self_conf_stat -V; \
7ee327c815964db7636a12591cfe407ae7f8a523Jabiertxof $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_zone_man_pass -V; \
7ee327c815964db7636a12591cfe407ae7f8a523Jabiertxof $(PROTOUSRDIR)/sbin/$(MACH64)/smp_rep_zone_perm_tbl -V; \
7ee327c815964db7636a12591cfe407ae7f8a523Jabiertxof $(PROTOUSRDIR)/sbin/$(MACH64)/smp_write_gpio -V; \
7ee327c815964db7636a12591cfe407ae7f8a523Jabiertxof $(PROTOUSRDIR)/sbin/$(MACH64)/smp_zone_activate -V; \
7ee327c815964db7636a12591cfe407ae7f8a523Jabiertxof $(PROTOUSRDIR)/sbin/$(MACH64)/smp_zone_lock -V; \
7ee327c815964db7636a12591cfe407ae7f8a523Jabiertxof $(PROTOUSRDIR)/sbin/$(MACH64)/smp_zone_unlock -V; \
e5142885c05d3c92b126938b42fb0342c749f91fJabiertxof $(PROTOUSRDIR)/sbin/$(MACH64)/smp_zoned_broadcast -V)
7ee327c815964db7636a12591cfe407ae7f8a523Jabiertxof
7ee327c815964db7636a12591cfe407ae7f8a523JabiertxofBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
7ee327c815964db7636a12591cfe407ae7f8a523Jabiertxof
7ee327c815964db7636a12591cfe407ae7f8a523Jabiertxofinclude ../../make-rules/depend.mk
7ee327c815964db7636a12591cfe407ae7f8a523Jabiertxof