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