Makefile revision 7c2fbfb345896881c631598ee3852ce9ce33fb07
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync#
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# CDDL HEADER START
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync#
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# The contents of this file are subject to the terms of the
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# Common Development and Distribution License (the "License").
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# You may not use this file except in compliance with the License.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync#
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# or http://www.opensolaris.org/os/licensing.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# See the License for the specific language governing permissions
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# and limitations under the License.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync#
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# When distributing Covered Code, include this CDDL HEADER in each
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# If applicable, add the following below this CDDL HEADER, with the
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync#
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# CDDL HEADER END
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync#
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync#
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# Use is subject to license terms.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync#
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncSHELL=/usr/bin/ksh93
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncinclude ../../Makefile.ksh93switch
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync$(BINKSH_IS_KSH93)PROG= ksh
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync$(BINKSH_IS_KSH93)USRKSH_ALIAS_LIST=ksh ksh93 rksh rksh93 pfksh pfksh93 pfrksh pfrksh93
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync$(BINKSH_ISNOT_KSH93)PROG= ksh93
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync$(BINKSH_ISNOT_KSH93)USRKSH_ALIAS_LIST=ksh93 rksh93
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncinclude ../Makefile.cmd
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncSUBDIRS= $(MACH)
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync$(BUILD64)SUBDIRS += $(MACH64)
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncSUBDIRS += builtins
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# Serialise the build to avoid that we run the test suite for 32bit
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# and 64bit in parallel
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync.NO_PARALLEL: $(SUBDIRS)
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncall := TARGET = all
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncinstall := TARGET = install
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncclean := TARGET = clean
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncclobber := TARGET = clobber
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsynclint := TARGET = lint
1e74d5ef6d6f0f4363c04e17cfec55784144811bvboxsynctestshell := TARGET = testshell
1e74d5ef6d6f0f4363c04e17cfec55784144811bvboxsync
1e74d5ef6d6f0f4363c04e17cfec55784144811bvboxsync.KEEP_STATE:
1e74d5ef6d6f0f4363c04e17cfec55784144811bvboxsync
1e74d5ef6d6f0f4363c04e17cfec55784144811bvboxsyncall clean clobber lint testshell: $(SUBDIRS)
1e74d5ef6d6f0f4363c04e17cfec55784144811bvboxsync
1e74d5ef6d6f0f4363c04e17cfec55784144811bvboxsync# dummy file since AST/ksh doesn't use *.po files
1e74d5ef6d6f0f4363c04e17cfec55784144811bvboxsync# (and "ksh" is just a frontend which calls directly into libshell,
1e74d5ef6d6f0f4363c04e17cfec55784144811bvboxsync# e.g. there are no l10n strings here)
1e74d5ef6d6f0f4363c04e17cfec55784144811bvboxsync$(PROG).po:
1e74d5ef6d6f0f4363c04e17cfec55784144811bvboxsync $(RM) ksh.po ksh93.po ; \
1e74d5ef6d6f0f4363c04e17cfec55784144811bvboxsync $(TOUCH) $(PROG).po
1e74d5ef6d6f0f4363c04e17cfec55784144811bvboxsync
1e74d5ef6d6f0f4363c04e17cfec55784144811bvboxsyncinstall: $(ISAEXEC) $(SUBDIRS)
1e74d5ef6d6f0f4363c04e17cfec55784144811bvboxsync @(set -o xtrace ; \
1e74d5ef6d6f0f4363c04e17cfec55784144811bvboxsync builtin ln ; \
1e74d5ef6d6f0f4363c04e17cfec55784144811bvboxsync builtin rm ; \
1e74d5ef6d6f0f4363c04e17cfec55784144811bvboxsync rm -f $(ROOTPROG) ; \
1e74d5ef6d6f0f4363c04e17cfec55784144811bvboxsync ln $(ISAEXEC) $(ROOTPROG) ; \
1e74d5ef6d6f0f4363c04e17cfec55784144811bvboxsync for i in $(USRKSH_ALIAS_LIST) ; do \
1e74d5ef6d6f0f4363c04e17cfec55784144811bvboxsync [[ "$$i" == "$(PROG)" ]] && continue ; \
1e74d5ef6d6f0f4363c04e17cfec55784144811bvboxsync rm -f "$(ROOTBIN)/$$i" ; \
10183353efa12aa94e0f3dc78e0f1c47f7928e8dvboxsync ln "$(ROOTBIN)/$(PROG)" "$(ROOTBIN)/$$i" ; \
10183353efa12aa94e0f3dc78e0f1c47f7928e8dvboxsync done \
10183353efa12aa94e0f3dc78e0f1c47f7928e8dvboxsync )
10183353efa12aa94e0f3dc78e0f1c47f7928e8dvboxsync
10183353efa12aa94e0f3dc78e0f1c47f7928e8dvboxsync$(SUBDIRS): FRC
10183353efa12aa94e0f3dc78e0f1c47f7928e8dvboxsync @cd $@; pwd; $(MAKE) $(TARGET)
10183353efa12aa94e0f3dc78e0f1c47f7928e8dvboxsync
10183353efa12aa94e0f3dc78e0f1c47f7928e8dvboxsyncFRC:
10183353efa12aa94e0f3dc78e0f1c47f7928e8dvboxsync
10183353efa12aa94e0f3dc78e0f1c47f7928e8dvboxsyncinclude ../Makefile.targ
10183353efa12aa94e0f3dc78e0f1c47f7928e8dvboxsync