xref: /illumos-gate/usr/src/Targetdirs (revision 9174bfaa08ca3aa4c0a12e840c4bd4f2570237a0)
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 2022 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 2022 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	/usr/share/bhyve
59
60sparc_DIRS=			\
61	/usr/lib/ldoms
62
63sparc_64ONLY= $(POUND_SIGN)
6464ONLY=  $($(MACH)_64ONLY)
65
66$(64ONLY) MACH32_DIRS=/usr/ucb/$(MACH32)
67
68PYTHON2_DIRS=
69PYTHON2_64DIRS=
70PYTHON3_DIRS=
71
72$(BUILDPY2)PYTHON2_DIRS += \
73	/usr/lib/python$(PYTHON_VERSION) \
74	/usr/lib/python$(PYTHON_VERSION)/vendor-packages \
75	/usr/lib/python$(PYTHON_VERSION)/vendor-packages/solaris \
76	/usr/lib/python$(PYTHON_VERSION)/vendor-packages/zfs
77
78$(BUILDPY2)PYTHON2_64DIRS += \
79	/usr/lib/python$(PYTHON_VERSION)/vendor-packages/64 \
80	/usr/lib/python$(PYTHON_VERSION)/vendor-packages/solaris/64 \
81	/usr/lib/python$(PYTHON_VERSION)/vendor-packages/zfs/64
82
83$(BUILDPY3)PYTHON3_DIRS += \
84	/usr/lib/python$(PYTHON3_VERSION) \
85	/usr/lib/python$(PYTHON3_VERSION)/vendor-packages \
86	/usr/lib/python$(PYTHON3_VERSION)/vendor-packages/solaris \
87	/usr/lib/python$(PYTHON3_VERSION)/vendor-packages/solaris/__pycache__ \
88	/usr/lib/python$(PYTHON3_VERSION)/vendor-packages/zfs \
89	/usr/lib/python$(PYTHON3_VERSION)/vendor-packages/zfs/__pycache__
90
91$(BUILDPY3b)PYTHON3_DIRS += \
92	/usr/lib/python$(PYTHON3b_VERSION) \
93	/usr/lib/python$(PYTHON3b_VERSION)/vendor-packages \
94	/usr/lib/python$(PYTHON3b_VERSION)/vendor-packages/solaris \
95	/usr/lib/python$(PYTHON3b_VERSION)/vendor-packages/solaris/__pycache__ \
96	/usr/lib/python$(PYTHON3b_VERSION)/vendor-packages/zfs \
97	/usr/lib/python$(PYTHON3b_VERSION)/vendor-packages/zfs/__pycache__
98
99DIRS= \
100	/boot \
101	/boot/solaris \
102	/boot/solaris/bin \
103	$($(MACH)_DIRS) \
104	/dev \
105	/dev/dsk \
106	/dev/fd \
107	/dev/ipnet \
108	/dev/net \
109	/dev/rdsk \
110	/dev/rmt \
111	/dev/pts \
112	/dev/sad \
113	/dev/swap \
114	/dev/term \
115	/dev/vt \
116	/dev/zcons \
117	/devices \
118	/devices/pseudo \
119	/etc \
120	/etc/brand  \
121	/etc/brand/solaris10  \
122	/etc/cron.d \
123	/etc/crypto \
124	/etc/crypto/certs \
125	/etc/crypto/crls \
126	/etc/dbus-1 \
127	/etc/dbus-1/system.d \
128	/etc/default \
129	/etc/devices  \
130	/etc/dev  \
131	/etc/dfs  \
132	/etc/dladm \
133	/etc/fs  \
134	/etc/fs/nfs  \
135	/etc/fs/zfs \
136	/etc/ftpd  \
137	/etc/hal \
138	/etc/hal/fdi \
139	/etc/hal/fdi/information \
140	/etc/hal/fdi/information/10freedesktop \
141	/etc/hal/fdi/information/20thirdparty \
142	/etc/hal/fdi/information/30user \
143	/etc/hal/fdi/policy \
144	/etc/hal/fdi/policy/10osvendor \
145	/etc/hal/fdi/policy/20thirdparty \
146	/etc/hal/fdi/policy/30user \
147	/etc/hal/fdi/preprobe \
148	/etc/hal/fdi/preprobe/10osvendor \
149	/etc/hal/fdi/preprobe/20thirdparty \
150	/etc/hal/fdi/preprobe/30user \
151	/etc/ipadm \
152	/etc/iscsi \
153	/etc/rpcsec	\
154	/etc/security	\
155	/etc/security/auth_attr.d \
156	/etc/security/exec_attr.d \
157	/etc/security/prof_attr.d \
158	/etc/security/tsol	\
159	/etc/gss	\
160	/etc/init.d  \
161	/etc/dhcp	\
162	/etc/lib  \
163	/etc/mail  \
164	/etc/mail/cf  \
165	/etc/mail/cf/cf  \
166	/etc/mail/cf/domain  \
167	/etc/mail/cf/feature  \
168	/etc/mail/cf/m4  \
169	/etc/mail/cf/mailer  \
170	/etc/mail/cf/ostype  \
171	/etc/mail/cf/sh  \
172	/etc/net-snmp \
173	/etc/net-snmp/snmp \
174	/etc/opt  \
175	/etc/rc0.d  \
176	/etc/rc1.d  \
177	/etc/rc2.d  \
178	/etc/rc3.d  \
179	/etc/rcS.d  \
180	/etc/saf \
181	/etc/sasl	\
182	/etc/sfw \
183	/etc/skel	\
184	/etc/svc \
185	/etc/svc/profile \
186	/etc/svc/profile/site \
187	/etc/svc/volatile \
188	/etc/system.d \
189	/etc/tm  \
190	/etc/usb   \
191	/etc/user_attr.d \
192	/etc/zfs  \
193	/etc/zones  \
194	/export  \
195	/home  \
196	/lib \
197	/lib/crypto \
198	/lib/inet \
199	/lib/fm \
200	/lib/secure \
201	/lib/svc \
202	/lib/svc/bin \
203	/lib/svc/capture \
204	/lib/svc/manifest \
205	/lib/svc/manifest/milestone \
206	/lib/svc/manifest/device \
207	/lib/svc/manifest/system \
208	/lib/svc/manifest/system/device \
209	/lib/svc/manifest/system/filesystem \
210	/lib/svc/manifest/system/security \
211	/lib/svc/manifest/system/svc \
212	/lib/svc/manifest/network \
213	/lib/svc/manifest/network/dns \
214	/lib/svc/manifest/network/ipsec \
215	/lib/svc/manifest/network/ldap \
216	/lib/svc/manifest/network/nfs \
217	/lib/svc/manifest/network/nis \
218	/lib/svc/manifest/network/rpc \
219	/lib/svc/manifest/network/security \
220	/lib/svc/manifest/network/shares \
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/application \
431	/var/svc/manifest/application/management \
432	/var/svc/manifest/application/print \
433	/var/svc/manifest/application/security \
434	/var/svc/manifest/platform \
435	/var/svc/manifest/platform/sun4u \
436	/var/svc/manifest/platform/sun4v \
437	/var/svc/manifest/site \
438	/var/svc/profile \
439	/var/uucp \
440	/var/tmp \
441	/var/tsol \
442	/var/tsol/doors
443
444sparcv9_DIRS64= \
445	/platform/sun4u \
446	/platform/sun4u/lib \
447	/platform/sun4u/lib/$(MACH64) \
448	/usr/platform/sun4u \
449	/usr/platform/sun4u/sbin \
450	/usr/platform/sun4u/lib \
451	/platform/sun4v/lib \
452	/platform/sun4v/lib/$(MACH64) \
453	/usr/platform/sun4v/sbin \
454	/usr/platform/sun4v/lib \
455	/usr/platform/sun4u-us3/lib \
456	/usr/platform/sun4u-opl/lib
457
458amd64_DIRS64= \
459	/platform/i86pc/amd64
460
461DIRS64= \
462	$($(MACH64)_DIRS64) \
463	/lib/$(MACH64) \
464	/lib/crypto/$(MACH64) \
465	/lib/fm/$(MACH64) \
466	/lib/secure/$(MACH64) \
467	/usr/bin/$(MACH64) \
468	/usr/ccs/bin/$(MACH64)  \
469	/usr/ccs/lib/$(MACH64) \
470	/usr/lib/$(MACH64) \
471	/usr/lib/$(MACH64)/gss \
472	/usr/lib/brand/sn1/$(MACH64) \
473	/usr/lib/brand/solaris10/$(MACH64) \
474	/usr/lib/elfedit/$(MACH64) \
475	/usr/lib/fm/$(MACH64) \
476	/usr/lib/fs/nfs/$(MACH64) \
477	/usr/lib/fs/smb/$(MACH64) \
478	/usr/lib/inet/$(MACH64) \
479	/usr/lib/krb5/$(MACH64) \
480	/usr/lib/link_audit/$(MACH64) \
481	/usr/lib/lwp/$(MACH64) \
482	/usr/lib/mdb/kvm/$(MACH64) \
483	/usr/lib/mdb/proc/$(MACH64) \
484	$(PYTHON2_64DIRS) \
485	$(PYTHON3_DIRS) \
486	/usr/lib/rcap/$(MACH64) \
487	/usr/lib/sasl/$(MACH64) \
488	/usr/lib/scsi/$(MACH64) \
489	/usr/lib/secure/$(MACH64) \
490	/usr/lib/security/$(MACH64) \
491	/usr/lib/smbsrv/$(MACH64) \
492	/usr/lib/abi/$(MACH64) \
493	/usr/lib/varpd/$(MACH64) \
494	/usr/sbin/$(MACH64) \
495	/usr/ucb/$(MACH64) \
496	/usr/ucblib/$(MACH64) \
497	/usr/xpg4/lib/$(MACH64) \
498	/var/ld/$(MACH64)
499
500# /var/mail/:saved is built directly by the rootdirs target in
501# /usr/src/Makefile because of the colon in its name.
502
503# macros for symbolic links
504SYM.DIRS= \
505	/bin \
506	/dev/stdin \
507	/dev/stdout \
508	/dev/stderr \
509	/etc/log \
510	/lib/32 \
511	/lib/crypto/32 \
512	/lib/secure/32 \
513	/usr/adm \
514	/usr/spool \
515	/usr/lib/tmac \
516	/usr/ccs/lib/link_audit \
517	/usr/news \
518	/usr/preserve \
519	/usr/lib/32 \
520	/usr/lib/cron \
521	/usr/lib/elfedit/32 \
522	/usr/lib/lwp/32 \
523	/usr/lib/link_audit/32 \
524	/usr/lib/secure/32 \
525	/usr/mail \
526	/usr/man \
527	/usr/pub \
528	/usr/src \
529	/usr/tmp \
530	/usr/ucblib/32 \
531	/var/ld/32
532
533sparc_SYM.DIRS64=
534
535SYM.DIRS64= \
536	$($(MACH)_SYM.DIRS64) \
537	/lib/64 \
538	/lib/crypto/64 \
539	/lib/secure/64 \
540	/usr/lib/64 \
541	/usr/lib/brand/sn1/64 \
542	/usr/lib/brand/solaris10/64 \
543	/usr/lib/elfedit/64 \
544	/usr/lib/link_audit/64 \
545	/usr/lib/lwp/64 \
546	/usr/lib/secure/64 \
547	/usr/lib/security/64 \
548	/usr/lib/varpd/64 \
549	/usr/xpg4/lib/64 \
550	/var/ld/64 \
551	/usr/ucblib/64
552
553# prepend the ROOT prefix
554
555ROOTDIRS=	$(TARGETDIRS:%=$(ROOT)%)
556
557# conditional assignments
558#
559# Target directories with non-default values for owner and group must
560# be referenced here, using their fully-prefixed names, and the non-
561# default values assigned.  If a directory is mentioned above and not
562# mentioned below, it has default values for attributes.
563#
564# The default value for DIRMODE is specified in usr/src/Makefile.master.
565#
566
567$(ROOT)/var/adm \
568$(ROOT)/var/adm/sa :=		DIRMODE= 775
569
570$(ROOT)/var/spool/lp:=		DIRMODE= 775
571
572# file mode
573#
574$(ROOT)/tmp \
575$(ROOT)/var/krb5/rcache \
576$(ROOT)/var/preserve \
577$(ROOT)/var/spool/pkg \
578$(ROOT)/var/spool/uucppublic \
579$(ROOT)/var/tmp:=	DIRMODE= 1777
580
581$(ROOT)/root:=		DIRMODE= 700
582
583$(ROOT)/var/krb5/rcache/root:=	DIRMODE= 700
584
585
586#
587# These permissions must match those set
588# in the package manifests.
589#
590$(ROOT)/var/sadm/pkg \
591$(ROOT)/var/sadm/security \
592$(ROOT)/var/sadm/install/logs :=	DIRMODE= 555
593
594
595#
596# These permissions must match the ones set
597# internally by fdfs and autofs.
598#
599$(ROOT)/dev/fd \
600$(ROOT)/home:=		DIRMODE= 555
601
602$(ROOT)/var/mail:=	DIRMODE=1777
603
604$(ROOT)/proc:=		DIRMODE= 555
605
606$(ROOT)/system/boot:=		DIRMODE= 555
607$(ROOT)/system/contract:=	DIRMODE= 555
608$(ROOT)/system/object:=		DIRMODE= 555
609
610# symlink assignments, LINKDEST is the value of the symlink
611#
612$(ROOT)/usr/lib/cron:=			LINKDEST=../../etc/cron.d
613$(ROOT)/bin:=				LINKDEST=usr/bin
614$(ROOT)/lib/32:=			LINKDEST=.
615$(ROOT)/lib/crypto/32:=			LINKDEST=.
616$(ROOT)/lib/secure/32:=			LINKDEST=.
617$(ROOT)/dev/stdin:=			LINKDEST=fd/0
618$(ROOT)/dev/stdout:=			LINKDEST=fd/1
619$(ROOT)/dev/stderr:=			LINKDEST=fd/2
620$(ROOT)/usr/pub:=			LINKDEST=share/lib/pub
621$(ROOT)/usr/man:=			LINKDEST=share/man
622$(ROOT)/usr/src:=			LINKDEST=share/src
623$(ROOT)/usr/adm:=			LINKDEST=../var/adm
624$(ROOT)/etc/log:=			LINKDEST=../var/adm/log
625$(ROOT)/usr/mail:=			LINKDEST=../var/mail
626$(ROOT)/usr/news:=			LINKDEST=../var/news
627$(ROOT)/usr/preserve:=			LINKDEST=../var/preserve
628$(ROOT)/usr/spool:=			LINKDEST=../var/spool
629$(ROOT)/usr/tmp:=			LINKDEST=../var/tmp
630$(ROOT)/usr/lib/tmac:=			LINKDEST=../share/lib/tmac
631$(ROOT)/usr/lib/32:=			LINKDEST=.
632$(ROOT)/usr/lib/elfedit/32:=		LINKDEST=.
633$(ROOT)/usr/lib/lwp/32:=		LINKDEST=.
634$(ROOT)/usr/lib/link_audit/32:=		LINKDEST=.
635$(ROOT)/usr/lib/secure/32:=		LINKDEST=.
636$(ROOT)/usr/ccs/lib/link_audit:=	LINKDEST=../../lib/link_audit
637$(ROOT)/var/ld/32:=			LINKDEST=.
638$(ROOT)/usr/ucblib/32:=			LINKDEST=.
639
640
641$(BUILD64) $(ROOT)/lib/64:=		LINKDEST=$(MACH64)
642$(BUILD64) $(ROOT)/lib/crypto/64:=	LINKDEST=$(MACH64)
643$(BUILD64) $(ROOT)/lib/secure/64:=	LINKDEST=$(MACH64)
644$(BUILD64) $(ROOT)/usr/lib/64:=		LINKDEST=$(MACH64)
645$(BUILD64) $(ROOT)/usr/lib/elfedit/64:=	LINKDEST=$(MACH64)
646$(BUILD64) $(ROOT)/usr/lib/brand/sn1/64:=	LINKDEST=$(MACH64)
647$(BUILD64) $(ROOT)/usr/lib/brand/solaris10/64:=	LINKDEST=$(MACH64)
648$(BUILD64) $(ROOT)/usr/lib/lwp/64:=	LINKDEST=$(MACH64)
649$(BUILD64) $(ROOT)/usr/lib/link_audit/64:=	LINKDEST=$(MACH64)
650$(BUILD64) $(ROOT)/usr/lib/secure/64:=	LINKDEST=$(MACH64)
651$(BUILD64) $(ROOT)/usr/lib/security/64:=	LINKDEST=$(MACH64)
652$(BUILD64) $(ROOT)/usr/lib/varpd/64:=	LINKDEST=$(MACH64)
653$(BUILD64) $(ROOT)/usr/xpg4/lib/64:=	LINKDEST=$(MACH64)
654$(BUILD64) $(ROOT)/var/ld/64:=		LINKDEST=$(MACH64)
655$(BUILD64) $(ROOT)/usr/ucblib/64:=	LINKDEST=$(MACH64)
656
657#
658# Installing a directory symlink calls for overriding INS.dir to install
659# a symlink.
660#
661$(DIRLINKS:%=$(ROOT)%):= \
662   INS.dir= -$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@
663