Print this page
8114 EOF rwho
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/ucbcmd/Makefile
+++ new/usr/src/ucbcmd/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 #
23 23 # Copyright 2010 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 26
27 27 # ucbcmd/Makefile
28 28
29 29 # include global definitions; SRC should be defined in the shell.
30 30 # SRC is needed until RFE 1026993 is implemented.
31 31 include $(SRC)/Makefile.master
32 32 include $(SRC)/ucbcmd/Makefile.ucbcmd
33 33
34 34 COMMON_SUBDIRS= \
35 35 basename \
36 36 biff \
37 37 chown \
38 38 df \
39 39 du \
40 40 echo \
41 41 expr \
42 42 fastboot \
43 43 fasthalt \
44 44 file \
45 45 from \
46 46 groups \
47 47 install.d \
48 48 ln \
49 49 ls \
50 50 mkstr \
51 51 printenv \
52 52 rusage \
53 53 sed \
54 54 shutdown \
55 55 stty \
56 56 sum \
57 57 test \
58 58 touch \
59 59 tr \
60 60 tset \
61 61 users \
62 62 vipw \
63 63 whereis \
64 64 whoami
65 65
66 66 sparc_SUBDIRS= sbcp
67 67
68 68 SUBDIRS= $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS)
69 69
70 70 # commands messaged
71 71 MSGSUBDIRS = biff install.d mkstr rusage shutdown
72 72
73 73 BWOSDIRS=
74 74
75 75 all:= TARGET= all
76 76 install:= TARGET= install
77 77 clean:= TARGET= clean
78 78 clobber:= TARGET= clobber
79 79 lint:= TARGET= lint
80 80 _msg:= TARGET= _msg
81 81
82 82 # Since pre-5.0 system users were told to put /usr/5bin in their path to
83 83 # get the 5.0 system behavior, we need this link so that the PATH of
84 84 # /usr/5bin:/usr/ucb:/usr/bin does the right thing. (let's see, without
85 85 # this link, 5.0 behaves like UCB and 4.1 behaves like SysV... I'm so
86 86 # confused...)
87 87 ROOTUSR = $(ROOT)/usr
88 88 S5LINK = $(ROOTUSR)/5bin
89 89 DICTLINK = $(ROOTUSR)/dict
90 90
91 91 # Symbolic links for source compatibility. Many utilities that
92 92 # were under /usr/ucb in SunOS 4.1, are now in the base; the
93 93 # symbolic links are provided for compatibility.
94 94 LINKDEST= ../bin/$(@F)
95 95
96 96 BINLINKS= \
97 97 arch \
98 98 clear \
99 99 e \
100 100 edit \
101 101 ex \
102 102 vedit \
103 103 vi \
104 104 view \
105 105 finger \
106 106 fmt \
107 107 fold \
108 108 ftp \
109 109 head \
110 110 hostid \
111 111 hostname \
112 112 logger \
113 113 mach \
↓ open down ↓ |
113 lines elided |
↑ open up ↑ |
114 114 more \
115 115 page \
116 116 pagesize \
117 117 netstat \
118 118 quota \
119 119 rcp \
120 120 rdate \
121 121 renice \
122 122 rlogin \
123 123 rsh \
124 - ruptime \
125 - rwho \
126 124 script \
127 125 tail \
128 126 talk \
129 127 tcopy \
130 128 telnet \
131 129 tftp \
132 130 uptime \
133 131 vacation \
134 132 vmstat \
135 133 w \
136 134 wc \
137 135 whois \
138 136 xstr
139 137
140 138 ROOTBINLINKS = $(BINLINKS:%=$(ROOTBIN)/%)
141 139
142 140 OTHERLINKS = $(ROOTETC)/termcap \
143 141 $(ROOTSHLIB)/zoneinfo/posixrules
144 142
145 143 $(S5LINK) := LINKDEST= bin
146 144 $(DICTLINK) := LINKDEST= share/lib/dict
147 145 $(ROOTBIN)/e := LINKDEST= ../bin/edit
148 146 $(ROOTBIN)/ex := LINKDEST= ../bin/edit
149 147 $(ROOTBIN)/page := LINKDEST= ../bin/more
150 148 $(ROOTBIN)/quota := LINKDEST= ../lib/fs/ufs/quota
151 149 $(ROOTETC)/termcap := LINKDEST= ../usr/share/lib/termcap
152 150 $(ROOTBIN)/vi := LINKDEST= ../bin/edit
153 151 $(ROOTBIN)/view := LINKDEST= ../bin/edit
154 152 $(ROOTSHLIB)/zoneinfo/posixrules := LINKDEST= US/Eastern
155 153
156 154 .KEEP_STATE:
157 155
158 156 .PARALLEL: $(SUBDIRS)
159 157
160 158 all clean clobber: $(SUBDIRS)
161 159
162 160 install: $(SUBDIRS) .WAIT rootlinks
163 161
164 162 # For messaging catalog
165 163 #
166 164 _msg: $(MSGSUBDIRS)
167 165
168 166
169 167
170 168 bwos: $(BWOSDIRS) .WAIT $(SUBDIRS)
171 169
172 170 $(BWOSDIRS) $(SUBDIRS): FRC
173 171 @cd $@; pwd; $(MAKE) $(TARGET)
174 172
175 173 rootlinks: $(S5LINK) $(DICTLINK) $(ROOTBINLINKS) $(OTHERLINKS)
176 174
177 175 $(S5LINK) $(DICTLINK) $(ROOTBINLINKS) $(OTHERLINKS):
178 176 $(RM) $@; $(SYMLINK) $(LINKDEST) $@
179 177
180 178 FRC:
↓ open down ↓ |
45 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX