Makefile revision 75
229N/A#
229N/A# CDDL HEADER START
229N/A#
229N/A# The contents of this file are subject to the terms of the
229N/A# Common Development and Distribution License (the "License").
229N/A# You may not use this file except in compliance with the License.
229N/A#
229N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
229N/A# or http://www.opensolaris.org/os/licensing.
229N/A# See the License for the specific language governing permissions
229N/A# and limitations under the License.
229N/A#
229N/A# When distributing Covered Code, include this CDDL HEADER in each
229N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
229N/A# If applicable, add the following below this CDDL HEADER, with the
229N/A# fields enclosed by brackets "[]" replaced with your own identifying
229N/A# information: Portions Copyright [yyyy] [name of copyright owner]
229N/A#
229N/A# CDDL HEADER END
229N/A#
1522N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
229N/A#
229N/Ainclude ../../make-rules/shared-macros.mk
229N/A
1244N/ACOMPONENT_NAME= tar
229N/ACOMPONENT_VERSION= 1.25
229N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
618N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
229N/ACOMPONENT_ARCHIVE_HASH= sha1:0f0c090e51d127cbeffbb9aeeb90db1181d82aed
1258N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/tar/$(COMPONENT_ARCHIVE)
229N/A
229N/Ainclude ../../make-rules/prep.mk
229N/Ainclude ../../make-rules/configure.mk
229N/Ainclude ../../make-rules/ips.mk
229N/A
229N/A# workaround for CR 6998994
229N/Asparc_COPTFLAG = -xO2
229N/A
229N/ACONFIGURE_OPTIONS += --with-rmt=/usr/sbin/rmt
229N/ACONFIGURE_OPTIONS += --libexecdir=/usr/sbin
229N/ACONFIGURE_OPTIONS += --program-prefix=g
229N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
1522N/A
1522N/AGNUPROGS = tar
1522N/AGNUMAN1 = tar.1
1938N/ASFWPROGS = gtar
1938N/A
231N/APROTOGNULINKS = $(GNUPROGS:%=$(PROTOGNUBIN)/%)
231N/A
231N/A$(PROTOGNULINKS): $(PROTOGNUBIN)
814N/A $(RM) $@ ; $(SYMLINK) ../../bin/g$(@F) $@
229N/A
229N/APROTOGNUMAN1LINKS = $(GNUMAN1:%=$(PROTOGNUSHAREMAN1)/%)
229N/A
229N/A$(PROTOGNUMAN1LINKS): $(PROTOGNUSHAREMAN1)
229N/A $(RM) $@ ; $(SYMLINK) ../../../../share/man/man1/g$(@F) $@
229N/A
229N/Ainclude ../../make-rules/shared-targets.mk
229N/A
229N/ACOMPONENT_BUILD_TARGETS = all
229N/A
229N/Abuild: $(BUILD_32)
229N/A
229N/Ainstall: $(PROTOUSRSHAREMAN1DIR) $(INSTALL_32) \
229N/A $(PROTOGNULINKS) $(PROTOGNUMAN1LINKS) $(PROTOSFWLINKS)
229N/A $(CP) -f $(COMPONENT_DIR)/gtar.1.sunman $(PROTOUSRSHAREMAN1DIR)/gtar.1
229N/A
229N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk