blob: fa2da2685ba6d85de6de0be58c29400459fb9543 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
|
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ucbcmd/Makefile
#
# include global definitions; SRC should be defined in the shell.
# SRC is needed until RFE 1026993 is implemented.
include $(SRC)/Makefile.master
include $(SRC)/ucbcmd/Makefile.ucbcmd
COMMON_SUBDIRS= \
basename \
biff \
cc \
chown \
df \
du \
echo \
expr \
fastboot \
fasthalt \
file \
from \
groups \
install.d \
ld \
lint.d \
ln \
ls \
mkstr \
plot \
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:
|