Makefile revision 100
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# CDDL HEADER START
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# The contents of this file are subject to the terms of the
af062818b47340eef15700d2f0211576ba3506eevboxsync# Common Development and Distribution License (the "License").
af062818b47340eef15700d2f0211576ba3506eevboxsync# You may not use this file except in compliance with the License.
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
af062818b47340eef15700d2f0211576ba3506eevboxsync# or http://www.opensolaris.org/os/licensing.
af062818b47340eef15700d2f0211576ba3506eevboxsync# See the License for the specific language governing permissions
af062818b47340eef15700d2f0211576ba3506eevboxsync# and limitations under the License.
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# When distributing Covered Code, include this CDDL HEADER in each
af062818b47340eef15700d2f0211576ba3506eevboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
af062818b47340eef15700d2f0211576ba3506eevboxsync# If applicable, add the following below this CDDL HEADER, with the
af062818b47340eef15700d2f0211576ba3506eevboxsync# fields enclosed by brackets "[]" replaced with your own identifying
af062818b47340eef15700d2f0211576ba3506eevboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# CDDL HEADER END
af062818b47340eef15700d2f0211576ba3506eevboxsync#
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync#
4b9d6701570cb98fd36e209314239d104ec584d3vboxsyncinclude ../../make-rules/shared-macros.mk
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsyncCOMPONENT_NAME= coreutils
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsyncCOMPONENT_VERSION= 8.5
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsyncCOMPONENT_ARCHIVE_HASH= sha1:939144f16d05691753a87134436dd2bb8ea89851
af062818b47340eef15700d2f0211576ba3506eevboxsyncCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/coreutils/$(COMPONENT_ARCHIVE)
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncinclude ../../make-rules/prep.mk
af062818b47340eef15700d2f0211576ba3506eevboxsyncinclude ../../make-rules/configure.mk
af062818b47340eef15700d2f0211576ba3506eevboxsyncinclude ../../make-rules/ips.mk
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncCONFIGURE_PREFIX = /usr/gnu
af062818b47340eef15700d2f0211576ba3506eevboxsyncCONFIGURE_OPTIONS += --libdir=/usr/lib
af062818b47340eef15700d2f0211576ba3506eevboxsyncCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
af062818b47340eef15700d2f0211576ba3506eevboxsyncCONFIGURE_OPTIONS += CPPFLAGS=-I/usr/include/gmp
af062818b47340eef15700d2f0211576ba3506eevboxsyncCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncinclude ../../make-rules/shared-targets.mk
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync# common targets
af062818b47340eef15700d2f0211576ba3506eevboxsyncbuild: $(BUILD_32)
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncCMDS_NONCONFLICTING=\[ base64 dir dircolors md5sum nproc pinky \
af062818b47340eef15700d2f0211576ba3506eevboxsyncprintenv ptx readlink seq sha1sum sha224sum sha256sum sha384sum sha512sum \
af062818b47340eef15700d2f0211576ba3506eevboxsyncshred shuf stat stdbuf tac timeout truncate users vdir whoami
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncMANS_NONCONFLICTING=base64.1 dir.1 dircolors.1 md5sum.1 nproc.1 pinky.1 \
af062818b47340eef15700d2f0211576ba3506eevboxsyncprintenv.1 ptx.1 readlink.1 seq.1 sha1sum.1 sha224sum.1 sha256sum.1 \
af062818b47340eef15700d2f0211576ba3506eevboxsyncsha384sum.1 sha512sum.1 shred.1 shuf.1 stat.1 stdbuf.1 tac.1 \
af062818b47340eef15700d2f0211576ba3506eevboxsynctimeout.1 truncate.1 users.1 vdir.1 whoami.1
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncNEEDMV=if [ -e $(1) ]; then $(RM) $(2); /usr/bin/mv $(1) $(2); fi
af062818b47340eef15700d2f0211576ba3506eevboxsyncRMDIR=/usr/bin/rmdir
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncinstall: $(PROTOUSRBINDIR) $(PROTOUSRSHAREMAN1DIR) $(INSTALL_32)
af062818b47340eef15700d2f0211576ba3506eevboxsync for command in $(CMDS_NONCONFLICTING); do \
af062818b47340eef15700d2f0211576ba3506eevboxsync $(call NEEDMV,$(PROTOGNUBIN)/$$command,\
af062818b47340eef15700d2f0211576ba3506eevboxsync $(PROTOUSRBINDIR)/$$command) \
af062818b47340eef15700d2f0211576ba3506eevboxsync done
af062818b47340eef15700d2f0211576ba3506eevboxsync for manpage in $(COMPONENT_SRC)/man/*.1; do \
af062818b47340eef15700d2f0211576ba3506eevboxsync sed -f oracleman-stability $$manpage > \
af062818b47340eef15700d2f0211576ba3506eevboxsync $(PROTO_DIR)/$(GNUSHAREMAN1)/`basename $$manpage`; \
af062818b47340eef15700d2f0211576ba3506eevboxsync done
af062818b47340eef15700d2f0211576ba3506eevboxsync for manpage in $(MANS_NONCONFLICTING); do \
af062818b47340eef15700d2f0211576ba3506eevboxsync $(call NEEDMV,$(PROTOGNUSHAREMAN1)/$$manpage,\
af062818b47340eef15700d2f0211576ba3506eevboxsync $(PROTOUSRSHAREMAN1DIR)/$$manpage); \
af062818b47340eef15700d2f0211576ba3506eevboxsync done
af062818b47340eef15700d2f0211576ba3506eevboxsync #
af062818b47340eef15700d2f0211576ba3506eevboxsync # whoami is in both /usr/bin and /usr/gnu/bin; mistake?
af062818b47340eef15700d2f0211576ba3506eevboxsync #
af062818b47340eef15700d2f0211576ba3506eevboxsync $(CP) $(PROTOUSRBINDIR)/whoami $(PROTOGNUBIN)/whoami
af062818b47340eef15700d2f0211576ba3506eevboxsync $(CP) $(PROTOUSRSHAREMAN1DIR)/whoami.1 $(PROTOGNUSHAREMAN1)/whoami.1
af062818b47340eef15700d2f0211576ba3506eevboxsync $(call NEEDMV,$(PROTOGNUBIN)/install,$(PROTOUSRBINDIR)/ginstall)
af062818b47340eef15700d2f0211576ba3506eevboxsync $(call NEEDMV,$(PROTOGNUSHAREMAN1)/install.1,\
af062818b47340eef15700d2f0211576ba3506eevboxsync $(PROTOUSRSHAREMAN1DIR)/ginstall.1)
af062818b47340eef15700d2f0211576ba3506eevboxsync $(call NEEDMV,$(PROTOUSRLIBDIR)/coreutils/libstdbuf.so,\
af062818b47340eef15700d2f0211576ba3506eevboxsync $(PROTOUSRLIBDIR)/libstdbuf.so)
af062818b47340eef15700d2f0211576ba3506eevboxsync -$(RMDIR) $(PROTOUSRLIBDIR)/coreutils
af062818b47340eef15700d2f0211576ba3506eevboxsync $(RM) $(PROTOGNUBIN)/chcon
af062818b47340eef15700d2f0211576ba3506eevboxsync $(RM) $(PROTOGNUBIN)/runcon
af062818b47340eef15700d2f0211576ba3506eevboxsync $(RM) $(PROTOGNUSHAREMAN1)/chcon.1
af062818b47340eef15700d2f0211576ba3506eevboxsync $(RM) $(PROTOGNUSHAREMAN1)/runcon.1
af062818b47340eef15700d2f0211576ba3506eevboxsync $(RM) $(PROTOUSRLIBDIR)/charset.alias
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsynctest: build
af062818b47340eef15700d2f0211576ba3506eevboxsync @cd $(BUILD_DIR_32); $(MAKE) check
af062818b47340eef15700d2f0211576ba3506eevboxsync
include ../../make-rules/depend.mk