1da2e3ebdSchin# 2da2e3ebdSchin# CDDL HEADER START 3da2e3ebdSchin# 4da2e3ebdSchin# The contents of this file are subject to the terms of the 5da2e3ebdSchin# Common Development and Distribution License (the "License"). 6da2e3ebdSchin# You may not use this file except in compliance with the License. 7da2e3ebdSchin# 8da2e3ebdSchin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9da2e3ebdSchin# or http://www.opensolaris.org/os/licensing. 10da2e3ebdSchin# See the License for the specific language governing permissions 11da2e3ebdSchin# and limitations under the License. 12da2e3ebdSchin# 13da2e3ebdSchin# When distributing Covered Code, include this CDDL HEADER in each 14da2e3ebdSchin# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15da2e3ebdSchin# If applicable, add the following below this CDDL HEADER, with the 16da2e3ebdSchin# fields enclosed by brackets "[]" replaced with your own identifying 17da2e3ebdSchin# information: Portions Copyright [yyyy] [name of copyright owner] 18da2e3ebdSchin# 19da2e3ebdSchin# CDDL HEADER END 20da2e3ebdSchin# 21*7c2fbfb3SApril Chin 22da2e3ebdSchin# 23*7c2fbfb3SApril Chin# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24da2e3ebdSchin# Use is subject to license terms. 25da2e3ebdSchin# 26da2e3ebdSchin 27*7c2fbfb3SApril ChinSHELL=/usr/bin/ksh93 28da2e3ebdSchin 29da2e3ebdSchininclude ../../Makefile.ksh93switch 30da2e3ebdSchin 31da2e3ebdSchin$(BINKSH_IS_KSH93)PROG= ksh 32*7c2fbfb3SApril Chin$(BINKSH_IS_KSH93)USRKSH_ALIAS_LIST=ksh ksh93 rksh rksh93 pfksh pfksh93 pfrksh pfrksh93 33da2e3ebdSchin 34da2e3ebdSchin$(BINKSH_ISNOT_KSH93)PROG= ksh93 35da2e3ebdSchin$(BINKSH_ISNOT_KSH93)USRKSH_ALIAS_LIST=ksh93 rksh93 36da2e3ebdSchin 37da2e3ebdSchininclude ../Makefile.cmd 38da2e3ebdSchin 39da2e3ebdSchinSUBDIRS= $(MACH) 40da2e3ebdSchin$(BUILD64)SUBDIRS += $(MACH64) 41da2e3ebdSchin 42*7c2fbfb3SApril ChinSUBDIRS += builtins 43*7c2fbfb3SApril Chin 44da2e3ebdSchin# Serialise the build to avoid that we run the test suite for 32bit 45da2e3ebdSchin# and 64bit in parallel 46da2e3ebdSchin.NO_PARALLEL: $(SUBDIRS) 47da2e3ebdSchin 48da2e3ebdSchinall := TARGET = all 49da2e3ebdSchininstall := TARGET = install 50da2e3ebdSchinclean := TARGET = clean 51da2e3ebdSchinclobber := TARGET = clobber 52da2e3ebdSchinlint := TARGET = lint 53da2e3ebdSchintestshell := TARGET = testshell 54da2e3ebdSchin 55da2e3ebdSchin.KEEP_STATE: 56da2e3ebdSchin 57da2e3ebdSchinall clean clobber lint testshell: $(SUBDIRS) 58da2e3ebdSchin 59da2e3ebdSchin# dummy file since AST/ksh doesn't use *.po files 60da2e3ebdSchin# (and "ksh" is just a frontend which calls directly into libshell, 61da2e3ebdSchin# e.g. there are no l10n strings here) 62da2e3ebdSchin$(PROG).po: 63*7c2fbfb3SApril Chin $(RM) ksh.po ksh93.po ; \ 64*7c2fbfb3SApril Chin $(TOUCH) $(PROG).po 65da2e3ebdSchin 66da2e3ebdSchininstall: $(ISAEXEC) $(SUBDIRS) 67da2e3ebdSchin @(set -o xtrace ; \ 68*7c2fbfb3SApril Chin builtin ln ; \ 69*7c2fbfb3SApril Chin builtin rm ; \ 70*7c2fbfb3SApril Chin rm -f $(ROOTPROG) ; \ 71*7c2fbfb3SApril Chin ln $(ISAEXEC) $(ROOTPROG) ; \ 72da2e3ebdSchin for i in $(USRKSH_ALIAS_LIST) ; do \ 73*7c2fbfb3SApril Chin [[ "$$i" == "$(PROG)" ]] && continue ; \ 74*7c2fbfb3SApril Chin rm -f "$(ROOTBIN)/$$i" ; \ 75*7c2fbfb3SApril Chin ln "$(ROOTBIN)/$(PROG)" "$(ROOTBIN)/$$i" ; \ 76da2e3ebdSchin done \ 77da2e3ebdSchin ) 78da2e3ebdSchin 79da2e3ebdSchin$(SUBDIRS): FRC 80da2e3ebdSchin @cd $@; pwd; $(MAKE) $(TARGET) 81da2e3ebdSchin 82da2e3ebdSchinFRC: 83da2e3ebdSchin 84da2e3ebdSchininclude ../Makefile.targ 85