Makefile revision ead1f93ee620d7580f7e53350fe5a884fc4f158a
70N/A#
70N/A# CDDL HEADER START
286N/A#
70N/A# The contents of this file are subject to the terms of the
70N/A# Common Development and Distribution License (the "License").
70N/A# You may not use this file except in compliance with the License.
70N/A#
70N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
70N/A# or http://www.opensolaris.org/os/licensing.
70N/A# See the License for the specific language governing permissions
70N/A# and limitations under the License.
70N/A#
70N/A# When distributing Covered Code, include this CDDL HEADER in each
70N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
70N/A# If applicable, add the following below this CDDL HEADER, with the
70N/A# fields enclosed by brackets "[]" replaced with your own identifying
70N/A# information: Portions Copyright [yyyy] [name of copyright owner]
70N/A#
70N/A# CDDL HEADER END
70N/A#
70N/A
70N/A#
70N/A# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
70N/A# Use is subject to license terms.
70N/A#
70N/A
70N/ASHELL=/usr/bin/ksh93
70N/A
70N/APROG= ksh
70N/A
475N/AUSRKSH_ALIAS_LIST=ksh ksh93 rksh rksh93 pfksh pfksh93 pfrksh pfrksh93
70N/A
70N/A
70N/Ainclude ../Makefile.cmd
359N/A
359N/ASUBDIRS= $(MACH)
359N/A$(BUILD64)SUBDIRS += $(MACH64)
98N/A
321N/ASUBDIRS += builtins
321N/A
213N/AARCH32_i386= i86
304N/AARCH32_sparc= sparcv7
425N/AARCH32= $(ARCH32_$(MACH))
425N/A
325N/A# Serialise the build to avoid that we run the test suite for 32bit
456N/A# and 64bit in parallel
320N/A.NO_PARALLEL: $(SUBDIRS)
332N/A
231N/Aall := TARGET = all
98N/Ainstall := TARGET = install
347N/Aclean := TARGET = clean
463N/Aclobber := TARGET = clobber
346N/Alint := TARGET = lint
425N/Atestshell := TARGET = testshell
472N/A
324N/A.KEEP_STATE:
347N/A
310N/Aall clean clobber lint testshell: $(SUBDIRS)
316N/A
474N/A# dummy file since AST/ksh doesn't use *.po files
290N/A# (and "ksh" is just a frontend which calls directly into libshell,
332N/A# e.g. there are no l10n strings here)
464N/A$(PROG).po:
332N/A $(RM) ksh.po ksh93.po ; \
332N/A $(TOUCH) $(PROG).po
210N/A
128N/Ainstall: $(ISAEXEC) $(SUBDIRS)
414N/A @(set -o xtrace ; \
326N/A builtin ln ; \
335N/A builtin rm ; \
425N/A rm -f $(ROOTPROG) ; \
370N/A ln $(ISAEXEC) $(ROOTPROG) ; \
70N/A for i in $(USRKSH_ALIAS_LIST) ; do \
400N/A [[ "$$i" == "$(PROG)" ]] && continue ; \
294N/A rm -f "$(ROOTBIN)/$$i" ; \
435N/A ln "$(ROOTBIN)/$(PROG)" "$(ROOTBIN)/$$i" ; \
98N/A done \
434N/A )
277N/A $(RM) $(ROOTSBIN)/sh
433N/A $(SYMLINK) ../usr/bin/$(ARCH32)/ksh93 $(ROOTSBIN)/sh
356N/A $(RM) $(ROOTSBIN)/jsh
289N/A $(SYMLINK) ../usr/bin/ksh93 $(ROOTSBIN)/jsh
326N/A $(RM) $(ROOTBIN)/jsh
439N/A $(SYMLINK) ksh93 $(ROOTBIN)/jsh
469N/A $(RM) $(ROOTSBIN)/pfsh
290N/A $(SYMLINK) ../usr/bin/ksh93 $(ROOTSBIN)/pfsh
424N/A $(RM) $(ROOTBIN)/pfsh
286N/A $(SYMLINK) ksh93 $(ROOTBIN)/pfsh
90N/A $(RM) $(ROOTBIN)/sh
475N/A $(SYMLINK) $(ARCH32)/ksh93 $(ROOTBIN)/sh
295N/A $(RM) $(ROOTLIB)/rsh
70N/A $(SYMLINK) ../bin/ksh93 $(ROOTLIB)/rsh
299N/A
262N/A$(SUBDIRS): FRC
455N/A @cd $@; pwd; $(MAKE) $(TARGET)
277N/A
332N/AFRC:
332N/A
70N/Ainclude ../Makefile.targ
70N/A