Makefile revision 46e5ca4c180bbc8cb48be79bc045e873add461ac
893N/A#
2362N/A# CDDL HEADER START
893N/A#
893N/A# The contents of this file are subject to the terms of the
893N/A# Common Development and Distribution License (the "License").
893N/A# You may not use this file except in compliance with the License.
893N/A#
893N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
893N/A# or http://www.opensolaris.org/os/licensing.
893N/A# See the License for the specific language governing permissions
893N/A# and limitations under the License.
893N/A#
893N/A# When distributing Covered Code, include this CDDL HEADER in each
893N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
893N/A# If applicable, add the following below this CDDL HEADER, with the
893N/A# fields enclosed by brackets "[]" replaced with your own identifying
893N/A# information: Portions Copyright [yyyy] [name of copyright owner]
893N/A#
2362N/A# CDDL HEADER END
2362N/A#
2362N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
893N/A# Use is subject to license terms.
893N/A#
893N/A# ucbcmd/Makefile
893N/A#
893N/A
893N/A# include global definitions; SRC should be defined in the shell.
893N/A# SRC is needed until RFE 1026993 is implemented.
893N/Ainclude $(SRC)/Makefile.master
893N/Ainclude $(SRC)/ucbcmd/Makefile.ucbcmd
893N/A
893N/ACOMMON_SUBDIRS= \
893N/A basename \
893N/A biff \
893N/A chown \
893N/A df \
893N/A du \
893N/A echo \
893N/A expr \
893N/A fastboot \
893N/A fasthalt \
893N/A file \
893N/A from \
893N/A groups \
893N/A install.d \
893N/A ln \
893N/A ls \
893N/A mkstr \
893N/A printenv \
rusage \
sed \
shutdown \
stty \
sum \
test \
touch \
tr \
tset \
users \
vipw \
whereis \
whoami
sparc_SUBDIRS= sbcp
SUBDIRS= $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS)
# commands messaged
MSGSUBDIRS = biff install.d mkstr rusage shutdown
BWOSDIRS=
all:= TARGET= all
install:= TARGET= install
clean:= TARGET= clean
clobber:= TARGET= clobber
lint:= TARGET= lint
_msg:= TARGET= _msg
# Since pre-5.0 system users were told to put /usr/5bin in their path to
# get the 5.0 system behavior, we need this link so that the PATH of
# /usr/5bin:/usr/ucb:/usr/bin does the right thing. (let's see, without
# this link, 5.0 behaves like UCB and 4.1 behaves like SysV... I'm so
# confused...)
ROOTUSR = $(ROOT)/usr
S5LINK = $(ROOTUSR)/5bin
DICTLINK = $(ROOTUSR)/dict
# Symbolic links for source compatibility. Many utilities that
# were under /usr/ucb in SunOS 4.1, are now in the base; the
# symbolic links are provided for compatibility.
LINKDEST= ../bin/$(@F)
BINLINKS= \
arch \
clear \
e \
edit \
ex \
vedit \
vi \
view \
finger \
fmt \
fold \
ftp \
head \
hostid \
hostname \
logger \
mach \
more \
page \
pagesize \
netstat \
quota \
rcp \
rdate \
renice \
rlogin \
rsh \
ruptime \
rwho \
script \
tail \
talk \
tcopy \
telnet \
tftp \
uptime \
vacation \
vmstat \
w \
wc \
whois \
xstr
ROOTBINLINKS = $(BINLINKS:%=$(ROOTBIN)/%)
OTHERLINKS = $(ROOTETC)/termcap \
$(ROOTSHLIB)/zoneinfo/posixrules
$(S5LINK) := LINKDEST= bin
$(DICTLINK) := LINKDEST= share/lib/dict
$(ROOTBIN)/e := LINKDEST= ../bin/ex
$(ROOTBIN)/page := LINKDEST= ../bin/more
$(ROOTBIN)/quota := LINKDEST= ../lib/fs/ufs/quota
$(ROOTETC)/termcap := LINKDEST= ../usr/share/lib/termcap
$(ROOTSHLIB)/zoneinfo/posixrules := LINKDEST= US/Eastern
.KEEP_STATE:
.PARALLEL: $(SUBDIRS)
all clean clobber: $(SUBDIRS)
install: $(SUBDIRS) .WAIT rootlinks
# For messaging catalog
#
_msg: $(MSGSUBDIRS)
bwos: $(BWOSDIRS) .WAIT $(SUBDIRS)
$(BWOSDIRS) $(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
rootlinks: $(S5LINK) $(DICTLINK) $(ROOTBINLINKS) $(OTHERLINKS)
$(S5LINK) $(DICTLINK) $(ROOTBINLINKS) $(OTHERLINKS):
$(RM) $@; $(SYMLINK) $(LINKDEST) $@
FRC: