Makefile revision da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# CDDL HEADER START
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# The contents of this file are subject to the terms of the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Common Development and Distribution License (the "License").
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# You may not use this file except in compliance with the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# or http://www.opensolaris.org/os/licensing.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# See the License for the specific language governing permissions
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# and limitations under the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# When distributing Covered Code, include this CDDL HEADER in each
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# If applicable, add the following below this CDDL HEADER, with the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# fields enclosed by brackets "[]" replaced with your own identifying
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# information: Portions Copyright [yyyy] [name of copyright owner]
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# CDDL HEADER END
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Use is subject to license terms.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# ident "%Z%%M% %I% %E% SMI"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinSHELL=/usr/bin/ksh
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude ../../Makefile.ksh93switch
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin$(BINKSH_IS_KSH93)PROG= ksh
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin$(BINKSH_IS_KSH93)USRKSH_ALIAS_LIST=ksh ksh93 rksh rksh93 pfksh
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin$(BINKSH_ISNOT_KSH93)PROG= ksh93
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin$(BINKSH_ISNOT_KSH93)USRKSH_ALIAS_LIST=ksh93 rksh93
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude ../Makefile.cmd
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinSUBDIRS= $(MACH)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin$(BUILD64)SUBDIRS += $(MACH64)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Serialise the build to avoid that we run the test suite for 32bit
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# and 64bit in parallel
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin.NO_PARALLEL: $(SUBDIRS)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinall := TARGET = all
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininstall := TARGET = install
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinclean := TARGET = clean
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinclobber := TARGET = clobber
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinlint := TARGET = lint
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chintestshell := TARGET = testshell
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin.KEEP_STATE:
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinall clean clobber lint testshell: $(SUBDIRS)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# dummy file since AST/ksh doesn't use *.po files
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# (and "ksh" is just a frontend which calls directly into libshell,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# e.g. there are no l10n strings here)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin$(PROG).po:
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(RM) ksh.po ksh93.po
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin touch $(PROG).po
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininstall: $(ISAEXEC) $(SUBDIRS)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(RM) $(ROOTPROG)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(LN) $(ISAEXEC) $(ROOTPROG)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin @(set -o xtrace ; \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin for i in $(USRKSH_ALIAS_LIST) ; do \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin [[ "$$i" = "$(PROG)" ]] && continue ; \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(RM) "$(ROOTBIN)/$$i" ; \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(LN) "$(ROOTBIN)/$(PROG)" "$(ROOTBIN)/$$i" ; \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin done \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin )
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin$(SUBDIRS): FRC
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin @cd $@; pwd; $(MAKE) $(TARGET)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinFRC:
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude ../Makefile.targ