Makefile revision 134a1f4e3289b54e0f980e9cf05352e419a60bee
2247N/A#
2247N/A# CDDL HEADER START
2247N/A#
2247N/A# The contents of this file are subject to the terms of the
2247N/A# Common Development and Distribution License (the "License").
2247N/A# You may not use this file except in compliance with the License.
2247N/A#
2247N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2247N/A# or http://www.opensolaris.org/os/licensing.
2247N/A# See the License for the specific language governing permissions
2247N/A# and limitations under the License.
2247N/A#
2247N/A# When distributing Covered Code, include this CDDL HEADER in each
2247N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2247N/A# If applicable, add the following below this CDDL HEADER, with the
2247N/A# fields enclosed by brackets "[]" replaced with your own identifying
2247N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2247N/A#
2247N/A# CDDL HEADER END
2247N/A#
5680N/A
5680N/A#
5306N/A# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
2247N/A#
5680N/A
5680N/ASHELL=/usr/bin/ksh93
2247N/A
2247N/APROG= ksh
2247N/A
5817N/AUSRKSH_ALIAS_LIST=ksh ksh93 rksh rksh93
2276N/A
2276N/Ainclude ../Makefile.cmd
2276N/A
2276N/ASUBDIRS= $(MACH)
2276N/A$(BUILD64)SUBDIRS += $(MACH64)
5817N/A
2276N/ASUBDIRS += builtins
2276N/A
5817N/AARCH32_i386= i86
5821N/AARCH32_sparc= sparcv7
2247N/AARCH32= $(ARCH32_$(MACH))
6188N/A
3574N/A# Serialise the build to avoid that we run the test suite for 32bit
2899N/A# and 64bit in parallel
5680N/A.NO_PARALLEL: $(SUBDIRS)
5680N/A
5528N/Aall := TARGET = all
5528N/Ainstall := TARGET = install
5528N/Aclean := TARGET = clean
5528N/Aclobber := TARGET = clobber
5528N/Alint := TARGET = lint
5528N/Atestshell := TARGET = testshell
5528N/A
5528N/A.KEEP_STATE:
5528N/A
5680N/Aall clean clobber lint testshell: $(SUBDIRS)
3930N/A
3142N/A# dummy file since AST/ksh doesn't use *.po files
3142N/A# (and "ksh" is just a frontend which calls directly into libshell,
3142N/A# e.g. there are no l10n strings here)
3142N/A$(PROG).po:
3142N/A $(RM) ksh.po ksh93.po ; \
3142N/A $(TOUCH) $(PROG).po
3142N/A
3142N/Ainstall: $(ISAEXEC) $(SUBDIRS)
4742N/A @(set -o xtrace ; \
5024N/A builtin ln ; \
5308N/A builtin rm ; \
6541N/A rm -f $(ROOTPROG) ; \
6541N/A ln $(ISAEXEC) $(ROOTPROG) ; \
3142N/A for i in $(USRKSH_ALIAS_LIST) ; do \
2247N/A [[ "$$i" == "$(PROG)" ]] && continue ; \
2247N/A rm -f "$(ROOTBIN)/$$i" ; \
2247N/A ln "$(ROOTBIN)/$(PROG)" "$(ROOTBIN)/$$i" ; \
2247N/A done \
5680N/A )
3431N/A $(RM) $(ROOTSBIN)/sh
5161N/A $(SYMLINK) ../usr/bin/$(ARCH32)/ksh93 $(ROOTSBIN)/sh
5161N/A $(RM) $(ROOTSBIN)/jsh
5161N/A $(SYMLINK) ../usr/bin/ksh93 $(ROOTSBIN)/jsh
5680N/A $(RM) $(ROOTBIN)/jsh
5680N/A $(SYMLINK) ksh93 $(ROOTBIN)/jsh
2247N/A $(RM) $(ROOTBIN)/sh
3513N/A $(SYMLINK) $(ARCH32)/ksh93 $(ROOTBIN)/sh
2247N/A $(RM) $(ROOTLIB)/rsh
2247N/A $(SYMLINK) ../bin/ksh93 $(ROOTLIB)/rsh
2247N/A
2247N/A$(SUBDIRS): FRC
2247N/A @cd $@; pwd; $(MAKE) $(TARGET)
2247N/A
5680N/AFRC:
5680N/A
2588N/Ainclude ../Makefile.targ
5680N/A