xref: /illumos-gate/usr/src/Targetdirs (revision 8cbaa6a809af7f43b3da2420c9d29a3507893284)
1# CDDL HEADER START
2#
3# The contents of this file are subject to the terms of the
4# Common Development and Distribution License (the "License").
5# You may not use this file except in compliance with the License.
6#
7# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8# or http://www.opensolaris.org/os/licensing.
9# See the License for the specific language governing permissions
10# and limitations under the License.
11#
12# When distributing Covered Code, include this CDDL HEADER in each
13# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14# If applicable, add the following below this CDDL HEADER, with the
15# fields enclosed by brackets "[]" replaced with your own identifying
16# information: Portions Copyright [yyyy] [name of copyright owner]
17#
18# CDDL HEADER END
19#
20
21#
22# Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
23# Copyright 2011, Richard Lowe
24# Copyright (c) 2012 by Delphix. All rights reserved.
25# Copyright (c) 2012, Igor Kozhukhov <ikozhukhov@gmail.com>
26# Copyright 2012 OmniTI Computer Consulting, Inc.  All rights reserved.
27# Copyright 2014 Garrett D'Amore <garrett@damore.org>
28# Copyright 2016 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
29# Copyright 2017 Nexenta Systems, Inc.
30# Copyright 2017 RackTop Systems.
31# Copyright 2021 OmniOS Community Edition (OmniOSce) Association.
32# Copyright 2020 Joyent, Inc.
33#
34
35#
36# It is easier to think in terms of directory names without the ROOT macro
37# prefix.  ROOTDIRS is TARGETDIRS with ROOT prefixes.  It is necessary
38# to work with ROOT prefixes when controlling conditional assignments.
39#
40
41DIRLINKS=	$(SYM.DIRS)
42$(BUILD64)	DIRLINKS += $(SYM.DIRS64)
43
44TARGETDIRS=	$(DIRS)
45$(BUILD64)	TARGETDIRS += $(DIRS64)
46
47TARGETDIRS	+= $(FILELINKS) $(DIRLINKS)
48
49i386_DIRS=			\
50	/boot/acpi		\
51	/boot/acpi/tables	\
52	/boot/grub		\
53	/boot/grub/bin		\
54	/platform/i86pc		\
55	/lib/libmvec		\
56	/usr/lib/xen		\
57	/usr/lib/xen/bin
58
59sparc_DIRS=				\
60	/usr/lib/ldoms
61
62sparc_64ONLY= $(POUND_SIGN)
6364ONLY=  $($(MACH)_64ONLY)
64
65$(64ONLY) MACH32_DIRS=/usr/ucb/$(MACH32)
66
67PYTHON2_DIRS=
68PYTHON2_64DIRS=
69PYTHON3_DIRS=
70
71$(BUILDPY2)PYTHON2_DIRS += \
72	/usr/lib/python$(PYTHON_VERSION) \
73	/usr/lib/python$(PYTHON_VERSION)/vendor-packages \
74	/usr/lib/python$(PYTHON_VERSION)/vendor-packages/solaris \
75	/usr/lib/python$(PYTHON_VERSION)/vendor-packages/zfs
76
77$(BUILDPY2)PYTHON2_64DIRS += \
78	/usr/lib/python$(PYTHON_VERSION)/vendor-packages/64 \
79	/usr/lib/python$(PYTHON_VERSION)/vendor-packages/solaris/64 \
80	/usr/lib/python$(PYTHON_VERSION)/vendor-packages/zfs/64
81
82$(BUILDPY3)PYTHON3_DIRS += \
83	/usr/lib/python$(PYTHON3_VERSION) \
84	/usr/lib/python$(PYTHON3_VERSION)/vendor-packages \
85	/usr/lib/python$(PYTHON3_VERSION)/vendor-packages/solaris \
86	/usr/lib/python$(PYTHON3_VERSION)/vendor-packages/solaris/__pycache__ \
87	/usr/lib/python$(PYTHON3_VERSION)/vendor-packages/zfs \
88	/usr/lib/python$(PYTHON3_VERSION)/vendor-packages/zfs/__pycache__
89
90$(BUILDPY3b)PYTHON3_DIRS += \
91	/usr/lib/python$(PYTHON3b_VERSION) \
92	/usr/lib/python$(PYTHON3b_VERSION)/vendor-packages \
93	/usr/lib/python$(PYTHON3b_VERSION)/vendor-packages/solaris \
94	/usr/lib/python$(PYTHON3b_VERSION)/vendor-packages/solaris/__pycache__ \
95	/usr/lib/python$(PYTHON3b_VERSION)/vendor-packages/zfs \
96	/usr/lib/python$(PYTHON3b_VERSION)/vendor-packages/zfs/__pycache__
97
98DIRS= \
99	/boot \
100	/boot/solaris \
101	/boot/solaris/bin \
102	$($(MACH)_DIRS) \
103	/dev \
104	/dev/dsk \
105	/dev/fd \
106	/dev/ipnet \
107	/dev/net \
108	/dev/rdsk \
109	/dev/rmt \
110	/dev/pts \
111	/dev/sad \
112	/dev/swap \
113	/dev/term \
114	/dev/vt \
115	/dev/zcons \
116	/devices \
117	/devices/pseudo \
118	/etc \
119	/etc/brand  \
120	/etc/brand/solaris10  \
121	/etc/cron.d \
122	/etc/crypto \
123	/etc/crypto/certs \
124	/etc/crypto/crls \
125	/etc/dbus-1 \
126	/etc/dbus-1/system.d \
127	/etc/default \
128	/etc/devices  \
129	/etc/dev  \
130	/etc/dfs  \
131	/etc/dladm \
132	/etc/fs  \
133	/etc/fs/nfs  \
134	/etc/fs/zfs \
135	/etc/ftpd  \
136	/etc/hal \
137	/etc/hal/fdi \
138	/etc/hal/fdi/information \
139	/etc/hal/fdi/information/10freedesktop \
140	/etc/hal/fdi/information/20thirdparty \
141	/etc/hal/fdi/information/30user \
142	/etc/hal/fdi/policy \
143	/etc/hal/fdi/policy/10osvendor \
144	/etc/hal/fdi/policy/20thirdparty \
145	/etc/hal/fdi/policy/30user \
146	/etc/hal/fdi/preprobe \
147	/etc/hal/fdi/preprobe/10osvendor \
148	/etc/hal/fdi/preprobe/20thirdparty \
149	/etc/hal/fdi/preprobe/30user \
150	/etc/ipadm \
151	/etc/iscsi \
152	/etc/rpcsec	\
153	/etc/security	\
154	/etc/security/auth_attr.d \
155	/etc/security/exec_attr.d \
156	/etc/security/prof_attr.d \
157	/etc/security/tsol	\
158	/etc/gss	\
159	/etc/init.d  \
160	/etc/dhcp	\
161	/etc/lib  \
162	/etc/mail  \
163	/etc/mail/cf  \
164	/etc/mail/cf/cf  \
165	/etc/mail/cf/domain  \
166	/etc/mail/cf/feature  \
167	/etc/mail/cf/m4  \
168	/etc/mail/cf/mailer  \
169	/etc/mail/cf/ostype  \
170	/etc/mail/cf/sh  \
171	/etc/net-snmp \
172	/etc/net-snmp/snmp \
173	/etc/opt  \
174	/etc/rc0.d  \
175	/etc/rc1.d  \
176	/etc/rc2.d  \
177	/etc/rc3.d  \
178	/etc/rcS.d  \
179	/etc/saf \
180	/etc/sasl	\
181	/etc/sfw \
182	/etc/skel	\
183	/etc/svc \
184	/etc/svc/profile \
185	/etc/svc/profile/site \
186	/etc/svc/volatile \
187	/etc/system.d \
188	/etc/tm  \
189	/etc/usb   \
190	/etc/user_attr.d \
191	/etc/zfs  \
192	/etc/zones  \
193	/export  \
194	/home  \
195	/lib \
196	/lib/crypto \
197	/lib/inet \
198	/lib/fm \
199	/lib/secure \
200	/lib/svc \
201	/lib/svc/bin \
202	/lib/svc/capture \
203	/lib/svc/manifest \
204	/lib/svc/manifest/milestone \
205	/lib/svc/manifest/device \
206	/lib/svc/manifest/system \
207	/lib/svc/manifest/system/device \
208	/lib/svc/manifest/system/filesystem \
209	/lib/svc/manifest/system/security \
210	/lib/svc/manifest/system/svc \
211	/lib/svc/manifest/network \
212	/lib/svc/manifest/network/dns \
213	/lib/svc/manifest/network/ipsec \
214	/lib/svc/manifest/network/ldap \
215	/lib/svc/manifest/network/nfs \
216	/lib/svc/manifest/network/nis \
217	/lib/svc/manifest/network/rpc \
218	/lib/svc/manifest/network/security \
219	/lib/svc/manifest/network/shares \
220	/lib/svc/manifest/network/ssl \
221	/lib/svc/manifest/application \
222	/lib/svc/manifest/application/management \
223	/lib/svc/manifest/application/security \
224	/lib/svc/manifest/application/print \
225	/lib/svc/manifest/platform \
226	/lib/svc/manifest/platform/sun4u \
227	/lib/svc/manifest/platform/sun4v \
228	/lib/svc/manifest/site \
229	/lib/svc/method \
230	/lib/svc/monitor \
231	/lib/svc/seed \
232	/lib/svc/share \
233	/kernel  \
234	/kernel/firmware \
235	/mnt  \
236	/opt  \
237	/platform  \
238	/proc  \
239	/root  \
240	/sbin  \
241	/system \
242	/system/boot \
243	/system/contract \
244	/system/object \
245	/tmp \
246	/usr  \
247	/usr/ast \
248	/usr/ast/bin \
249	/usr/bin \
250	/usr/bin/$(MACH32) \
251	/usr/ccs \
252	/usr/ccs/bin \
253	/usr/ccs/lib \
254	/usr/demo \
255	/usr/demo/SOUND \
256	/usr/games \
257	/usr/has \
258	/usr/has/bin \
259	/usr/has/lib \
260        /usr/has/man \
261	/usr/include \
262	/usr/include/ads \
263	/usr/include/ast \
264	/usr/include/fm \
265	/usr/include/gssapi \
266	/usr/include/hal \
267	/usr/include/kerberosv5 \
268	/usr/include/libmilter \
269	/usr/include/libpolkit \
270	/usr/include/sasl \
271	/usr/include/scsi \
272	/usr/include/security \
273	/usr/include/sys/crypto \
274	/usr/include/tsol \
275	/usr/kernel  \
276	/usr/kvm \
277	/usr/lib \
278	/usr/lib/abi \
279	/usr/lib/brand \
280	/usr/lib/brand/ipkg \
281	/usr/lib/brand/labeled \
282	/usr/lib/brand/shared \
283	/usr/lib/brand/sn1 \
284	/usr/lib/brand/solaris10 \
285	/usr/lib/class \
286	/usr/lib/class/FSS \
287	/usr/lib/class/FX \
288	/usr/lib/class/IA \
289	/usr/lib/class/RT \
290	/usr/lib/class/SDC \
291	/usr/lib/class/TS \
292	/usr/lib/crypto \
293	/usr/lib/elfedit \
294	/usr/lib/fm \
295	/usr/lib/font \
296	/usr/lib/fs \
297	/usr/lib/fs/nfs \
298	/usr/lib/fs/proc \
299	/usr/lib/fs/smb \
300	/usr/lib/fs/zfs \
301	/usr/lib/gss \
302	/usr/lib/hal \
303	/usr/lib/inet \
304	/usr/lib/inet/ilb \
305	/usr/lib/krb5 \
306	/usr/lib/link_audit \
307	/usr/lib/lwp \
308	/usr/lib/mdb \
309	/usr/lib/mdb/kvm \
310	/usr/lib/mdb/proc \
311	/usr/lib/nfs \
312	/usr/lib/varpd \
313	/usr/net \
314	/usr/net/servers \
315	/usr/lib/pool \
316	$(PYTHON2_DIRS) \
317	/usr/lib/rcap \
318	/usr/lib/rcap/$(MACH32) \
319	/usr/lib/sa  \
320	/usr/lib/saf \
321	/usr/lib/sasl \
322	/usr/lib/scsi \
323	/usr/lib/secure \
324	/usr/lib/security \
325	/usr/lib/smbsrv \
326	/usr/lib/vscan \
327	/usr/lib/zfs \
328	/usr/lib/zones \
329	/usr/old \
330	/usr/platform  \
331	/usr/proc \
332	/usr/proc/bin \
333	/usr/sadm \
334	/usr/sadm/install \
335	/usr/sadm/install/bin \
336	/usr/sadm/install/scripts \
337	/usr/sbin \
338	/usr/sbin/$(MACH32) \
339	/usr/share  \
340	/usr/share/applications \
341	/usr/share/audio \
342	/usr/share/audio/samples \
343	/usr/share/audio/samples/au \
344	/usr/share/gnome \
345	/usr/share/gnome/autostart \
346	/usr/share/hwdata \
347	/usr/share/lib \
348	/usr/share/lib/ccs \
349	/usr/share/lib/tmac  \
350	/usr/share/lib/ldif  \
351	/usr/share/lib/xml \
352	/usr/share/lib/xml/dtd \
353	/usr/share/man \
354	/usr/share/src \
355	/usr/ucb \
356	$(MACH32_DIRS) \
357	/usr/ucblib \
358	/usr/xpg4 \
359	/usr/xpg4/bin \
360	/usr/xpg4/include \
361	/usr/xpg4/lib \
362	/usr/xpg6 \
363	/usr/xpg6/bin \
364	/var  \
365	/var/adm  \
366	/var/adm/exacct \
367	/var/adm/log \
368	/var/adm/pool \
369	/var/adm/sa \
370	/var/adm/sm.bin \
371	/var/adm/streams \
372	/var/cores \
373	/var/cron \
374	/var/db \
375	/var/db/ipf \
376	/var/games \
377	/var/idmap \
378	/var/krb5 \
379	/var/krb5/rcache  \
380	/var/krb5/rcache/root  \
381	/var/ld \
382	/var/log \
383	/var/log/pool \
384	/var/logadm \
385	/var/mail \
386	/var/news \
387	/var/opt \
388	/var/preserve \
389	/var/run \
390	/var/saf \
391	/var/sadm \
392	/var/sadm/install \
393	/var/sadm/install/admin \
394	/var/sadm/install/logs \
395	/var/sadm/pkg \
396	/var/sadm/security \
397	/var/smb \
398	/var/smb/cvol \
399	/var/smb/cvol/windows \
400	/var/smb/cvol/windows/system32 \
401	/var/smb/cvol/windows/system32/vss \
402	/var/spool \
403	/var/spool/cron \
404	/var/spool/cron/atjobs \
405	/var/spool/cron/crontabs \
406	/var/spool/lp \
407	/var/spool/pkg \
408	/var/spool/uucp \
409	/var/spool/uucppublic \
410	/var/svc \
411	/var/svc/log \
412	/var/svc/manifest \
413	/var/svc/manifest/milestone \
414	/var/svc/manifest/device \
415	/var/svc/manifest/system \
416	/var/svc/manifest/system/device \
417	/var/svc/manifest/system/filesystem \
418	/var/svc/manifest/system/security \
419	/var/svc/manifest/system/svc \
420	/var/svc/manifest/network \
421	/var/svc/manifest/network/dns \
422	/var/svc/manifest/network/ipsec \
423	/var/svc/manifest/network/ldap \
424	/var/svc/manifest/network/nfs \
425	/var/svc/manifest/network/nis \
426	/var/svc/manifest/network/rpc \
427	/var/svc/manifest/network/routing \
428	/var/svc/manifest/network/security \
429	/var/svc/manifest/network/shares \
430	/var/svc/manifest/network/ssl \
431	/var/svc/manifest/application \
432	/var/svc/manifest/application/management \
433	/var/svc/manifest/application/print \
434	/var/svc/manifest/application/security \
435	/var/svc/manifest/platform \
436	/var/svc/manifest/platform/sun4u \
437	/var/svc/manifest/platform/sun4v \
438	/var/svc/manifest/site \
439	/var/svc/profile \
440	/var/uucp \
441	/var/tmp \
442	/var/tsol \
443	/var/tsol/doors
444
445sparcv9_DIRS64= \
446	/platform/sun4u \
447	/platform/sun4u/lib \
448	/platform/sun4u/lib/$(MACH64) \
449	/usr/platform/sun4u \
450	/usr/platform/sun4u/sbin \
451	/usr/platform/sun4u/lib \
452	/platform/sun4v/lib \
453	/platform/sun4v/lib/$(MACH64) \
454	/usr/platform/sun4v/sbin \
455	/usr/platform/sun4v/lib \
456	/usr/platform/sun4u-us3/lib \
457	/usr/platform/sun4u-opl/lib
458
459amd64_DIRS64= \
460	/platform/i86pc/amd64
461
462DIRS64= \
463	$($(MACH64)_DIRS64) \
464	/lib/$(MACH64) \
465	/lib/crypto/$(MACH64) \
466	/lib/fm/$(MACH64) \
467	/lib/secure/$(MACH64) \
468	/usr/bin/$(MACH64) \
469	/usr/ccs/bin/$(MACH64)  \
470	/usr/ccs/lib/$(MACH64) \
471	/usr/lib/$(MACH64) \
472	/usr/lib/$(MACH64)/gss \
473	/usr/lib/brand/sn1/$(MACH64) \
474	/usr/lib/brand/solaris10/$(MACH64) \
475	/usr/lib/elfedit/$(MACH64) \
476	/usr/lib/fm/$(MACH64) \
477	/usr/lib/fs/nfs/$(MACH64) \
478	/usr/lib/fs/smb/$(MACH64) \
479	/usr/lib/inet/$(MACH64) \
480	/usr/lib/krb5/$(MACH64) \
481	/usr/lib/link_audit/$(MACH64) \
482	/usr/lib/lwp/$(MACH64) \
483	/usr/lib/mdb/kvm/$(MACH64) \
484	/usr/lib/mdb/proc/$(MACH64) \
485	$(PYTHON2_64DIRS) \
486	$(PYTHON3_DIRS) \
487	/usr/lib/rcap/$(MACH64) \
488	/usr/lib/sasl/$(MACH64) \
489	/usr/lib/scsi/$(MACH64) \
490	/usr/lib/secure/$(MACH64) \
491	/usr/lib/security/$(MACH64) \
492	/usr/lib/smbsrv/$(MACH64) \
493	/usr/lib/abi/$(MACH64) \
494	/usr/lib/varpd/$(MACH64) \
495	/usr/sbin/$(MACH64) \
496	/usr/ucb/$(MACH64) \
497	/usr/ucblib/$(MACH64) \
498	/usr/xpg4/lib/$(MACH64) \
499	/var/ld/$(MACH64)
500
501# /var/mail/:saved is built directly by the rootdirs target in
502# /usr/src/Makefile because of the colon in its name.
503
504# macros for symbolic links
505SYM.DIRS= \
506	/bin \
507	/dev/stdin \
508	/dev/stdout \
509	/dev/stderr \
510	/etc/log \
511	/lib/32 \
512	/lib/crypto/32 \
513	/lib/secure/32 \
514	/usr/adm \
515	/usr/spool \
516	/usr/lib/tmac \
517	/usr/ccs/lib/link_audit \
518	/usr/news \
519	/usr/preserve \
520	/usr/lib/32 \
521	/usr/lib/cron \
522	/usr/lib/elfedit/32 \
523	/usr/lib/lwp/32 \
524	/usr/lib/link_audit/32 \
525	/usr/lib/secure/32 \
526	/usr/mail \
527	/usr/man \
528	/usr/pub \
529	/usr/src \
530	/usr/tmp \
531	/usr/ucblib/32 \
532	/var/ld/32
533
534sparc_SYM.DIRS64=
535
536SYM.DIRS64= \
537	$($(MACH)_SYM.DIRS64) \
538	/lib/64 \
539	/lib/crypto/64 \
540	/lib/secure/64 \
541	/usr/lib/64 \
542	/usr/lib/brand/sn1/64 \
543	/usr/lib/brand/solaris10/64 \
544	/usr/lib/elfedit/64 \
545	/usr/lib/link_audit/64 \
546	/usr/lib/lwp/64 \
547	/usr/lib/secure/64 \
548	/usr/lib/security/64 \
549	/usr/lib/varpd/64 \
550	/usr/xpg4/lib/64 \
551	/var/ld/64 \
552	/usr/ucblib/64
553
554# prepend the ROOT prefix
555
556ROOTDIRS=	$(TARGETDIRS:%=$(ROOT)%)
557
558# conditional assignments
559#
560# Target directories with non-default values for owner and group must
561# be referenced here, using their fully-prefixed names, and the non-
562# default values assigned.  If a directory is mentioned above and not
563# mentioned below, it has default values for attributes.
564#
565# The default value for DIRMODE is specified in usr/src/Makefile.master.
566#
567
568$(ROOT)/var/adm \
569$(ROOT)/var/adm/sa :=		DIRMODE= 775
570
571$(ROOT)/var/spool/lp:=		DIRMODE= 775
572
573# file mode
574#
575$(ROOT)/tmp \
576$(ROOT)/var/krb5/rcache \
577$(ROOT)/var/preserve \
578$(ROOT)/var/spool/pkg \
579$(ROOT)/var/spool/uucppublic \
580$(ROOT)/var/tmp:=	DIRMODE= 1777
581
582$(ROOT)/root:=		DIRMODE= 700
583
584$(ROOT)/var/krb5/rcache/root:=	DIRMODE= 700
585
586
587#
588# These permissions must match those set
589# in the package manifests.
590#
591$(ROOT)/var/sadm/pkg \
592$(ROOT)/var/sadm/security \
593$(ROOT)/var/sadm/install/logs :=	DIRMODE= 555
594
595
596#
597# These permissions must match the ones set
598# internally by fdfs and autofs.
599#
600$(ROOT)/dev/fd \
601$(ROOT)/home:=		DIRMODE= 555
602
603$(ROOT)/var/mail:=	DIRMODE=1777
604
605$(ROOT)/proc:=		DIRMODE= 555
606
607$(ROOT)/system/boot:=		DIRMODE= 555
608$(ROOT)/system/contract:=	DIRMODE= 555
609$(ROOT)/system/object:=		DIRMODE= 555
610
611# symlink assignments, LINKDEST is the value of the symlink
612#
613$(ROOT)/usr/lib/cron:=			LINKDEST=../../etc/cron.d
614$(ROOT)/bin:=				LINKDEST=usr/bin
615$(ROOT)/lib/32:=			LINKDEST=.
616$(ROOT)/lib/crypto/32:=			LINKDEST=.
617$(ROOT)/lib/secure/32:=			LINKDEST=.
618$(ROOT)/dev/stdin:=			LINKDEST=fd/0
619$(ROOT)/dev/stdout:=			LINKDEST=fd/1
620$(ROOT)/dev/stderr:=			LINKDEST=fd/2
621$(ROOT)/usr/pub:=			LINKDEST=share/lib/pub
622$(ROOT)/usr/man:=			LINKDEST=share/man
623$(ROOT)/usr/src:=			LINKDEST=share/src
624$(ROOT)/usr/adm:=			LINKDEST=../var/adm
625$(ROOT)/etc/log:=			LINKDEST=../var/adm/log
626$(ROOT)/usr/mail:=			LINKDEST=../var/mail
627$(ROOT)/usr/news:=			LINKDEST=../var/news
628$(ROOT)/usr/preserve:=			LINKDEST=../var/preserve
629$(ROOT)/usr/spool:=			LINKDEST=../var/spool
630$(ROOT)/usr/tmp:=			LINKDEST=../var/tmp
631$(ROOT)/usr/lib/tmac:=			LINKDEST=../share/lib/tmac
632$(ROOT)/usr/lib/32:=			LINKDEST=.
633$(ROOT)/usr/lib/elfedit/32:=		LINKDEST=.
634$(ROOT)/usr/lib/lwp/32:=		LINKDEST=.
635$(ROOT)/usr/lib/link_audit/32:=		LINKDEST=.
636$(ROOT)/usr/lib/secure/32:=		LINKDEST=.
637$(ROOT)/usr/ccs/lib/link_audit:=	LINKDEST=../../lib/link_audit
638$(ROOT)/var/ld/32:=			LINKDEST=.
639$(ROOT)/usr/ucblib/32:=			LINKDEST=.
640
641
642$(BUILD64) $(ROOT)/lib/64:=		LINKDEST=$(MACH64)
643$(BUILD64) $(ROOT)/lib/crypto/64:=	LINKDEST=$(MACH64)
644$(BUILD64) $(ROOT)/lib/secure/64:=	LINKDEST=$(MACH64)
645$(BUILD64) $(ROOT)/usr/lib/64:=		LINKDEST=$(MACH64)
646$(BUILD64) $(ROOT)/usr/lib/elfedit/64:=	LINKDEST=$(MACH64)
647$(BUILD64) $(ROOT)/usr/lib/brand/sn1/64:=	LINKDEST=$(MACH64)
648$(BUILD64) $(ROOT)/usr/lib/brand/solaris10/64:=	LINKDEST=$(MACH64)
649$(BUILD64) $(ROOT)/usr/lib/lwp/64:=	LINKDEST=$(MACH64)
650$(BUILD64) $(ROOT)/usr/lib/link_audit/64:=	LINKDEST=$(MACH64)
651$(BUILD64) $(ROOT)/usr/lib/secure/64:=	LINKDEST=$(MACH64)
652$(BUILD64) $(ROOT)/usr/lib/security/64:=	LINKDEST=$(MACH64)
653$(BUILD64) $(ROOT)/usr/lib/varpd/64:=	LINKDEST=$(MACH64)
654$(BUILD64) $(ROOT)/usr/xpg4/lib/64:=	LINKDEST=$(MACH64)
655$(BUILD64) $(ROOT)/var/ld/64:=		LINKDEST=$(MACH64)
656$(BUILD64) $(ROOT)/usr/ucblib/64:=	LINKDEST=$(MACH64)
657
658#
659# Installing a directory symlink calls for overriding INS.dir to install
660# a symlink.
661#
662$(DIRLINKS:%=$(ROOT)%):= \
663   INS.dir= -$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@
664