xref: /illumos-gate/usr/src/Targetdirs (revision 1b863af9bc9a5c76ed773e129889fc19dbf9e41c)
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/net \
313	/usr/net/servers \
314	/usr/lib/pool \
315	$(PYTHON2_DIRS) \
316	/usr/lib/rcap \
317	/usr/lib/rcap/$(MACH32) \
318	/usr/lib/sa  \
319	/usr/lib/saf \
320	/usr/lib/sasl \
321	/usr/lib/scsi \
322	/usr/lib/secure \
323	/usr/lib/security \
324	/usr/lib/smbsrv \
325	/usr/lib/vscan \
326	/usr/lib/zfs \
327	/usr/lib/zones \
328	/usr/old \
329	/usr/platform  \
330	/usr/proc \
331	/usr/proc/bin \
332	/usr/sadm \
333	/usr/sadm/install \
334	/usr/sadm/install/bin \
335	/usr/sadm/install/scripts \
336	/usr/sbin \
337	/usr/sbin/$(MACH32) \
338	/usr/share  \
339	/usr/share/applications \
340	/usr/share/audio \
341	/usr/share/audio/samples \
342	/usr/share/audio/samples/au \
343	/usr/share/gnome \
344	/usr/share/gnome/autostart \
345	/usr/share/hwdata \
346	/usr/share/lib \
347	/usr/share/lib/ccs \
348	/usr/share/lib/tmac  \
349	/usr/share/lib/ldif  \
350	/usr/share/lib/xml \
351	/usr/share/lib/xml/dtd \
352	/usr/share/man \
353	/usr/share/src \
354	/usr/ucb \
355	$(MACH32_DIRS) \
356	/usr/ucblib \
357	/usr/xpg4 \
358	/usr/xpg4/bin \
359	/usr/xpg4/include \
360	/usr/xpg4/lib \
361	/usr/xpg6 \
362	/usr/xpg6/bin \
363	/var  \
364	/var/adm  \
365	/var/adm/exacct \
366	/var/adm/log \
367	/var/adm/pool \
368	/var/adm/sa \
369	/var/adm/sm.bin \
370	/var/adm/streams \
371	/var/cores \
372	/var/cron \
373	/var/db \
374	/var/db/ipf \
375	/var/games \
376	/var/idmap \
377	/var/krb5 \
378	/var/krb5/rcache  \
379	/var/krb5/rcache/root  \
380	/var/ld \
381	/var/log \
382	/var/log/pool \
383	/var/logadm \
384	/var/mail \
385	/var/news \
386	/var/opt \
387	/var/preserve \
388	/var/run \
389	/var/saf \
390	/var/sadm \
391	/var/sadm/install \
392	/var/sadm/install/admin \
393	/var/sadm/install/logs \
394	/var/sadm/pkg \
395	/var/sadm/security \
396	/var/smb \
397	/var/smb/cvol \
398	/var/smb/cvol/windows \
399	/var/smb/cvol/windows/system32 \
400	/var/smb/cvol/windows/system32/vss \
401	/var/spool \
402	/var/spool/cron \
403	/var/spool/cron/atjobs \
404	/var/spool/cron/crontabs \
405	/var/spool/lp \
406	/var/spool/pkg \
407	/var/spool/uucp \
408	/var/spool/uucppublic \
409	/var/svc \
410	/var/svc/log \
411	/var/svc/manifest \
412	/var/svc/manifest/milestone \
413	/var/svc/manifest/device \
414	/var/svc/manifest/system \
415	/var/svc/manifest/system/device \
416	/var/svc/manifest/system/filesystem \
417	/var/svc/manifest/system/security \
418	/var/svc/manifest/system/svc \
419	/var/svc/manifest/network \
420	/var/svc/manifest/network/dns \
421	/var/svc/manifest/network/ipsec \
422	/var/svc/manifest/network/ldap \
423	/var/svc/manifest/network/nfs \
424	/var/svc/manifest/network/nis \
425	/var/svc/manifest/network/rpc \
426	/var/svc/manifest/network/routing \
427	/var/svc/manifest/network/security \
428	/var/svc/manifest/network/shares \
429	/var/svc/manifest/network/ssl \
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/sbin/$(MACH64) \
494	/usr/ucb/$(MACH64) \
495	/usr/ucblib/$(MACH64) \
496	/usr/xpg4/lib/$(MACH64) \
497	/var/ld/$(MACH64)
498
499# /var/mail/:saved is built directly by the rootdirs target in
500# /usr/src/Makefile because of the colon in its name.
501
502# macros for symbolic links
503SYM.DIRS= \
504	/bin \
505	/dev/stdin \
506	/dev/stdout \
507	/dev/stderr \
508	/etc/log \
509	/lib/32 \
510	/lib/crypto/32 \
511	/lib/secure/32 \
512	/usr/adm \
513	/usr/spool \
514	/usr/lib/tmac \
515	/usr/ccs/lib/link_audit \
516	/usr/news \
517	/usr/preserve \
518	/usr/lib/32 \
519	/usr/lib/cron \
520	/usr/lib/elfedit/32 \
521	/usr/lib/lwp/32 \
522	/usr/lib/link_audit/32 \
523	/usr/lib/secure/32 \
524	/usr/mail \
525	/usr/man \
526	/usr/pub \
527	/usr/src \
528	/usr/tmp \
529	/usr/ucblib/32 \
530	/var/ld/32
531
532sparc_SYM.DIRS64=
533
534SYM.DIRS64= \
535	$($(MACH)_SYM.DIRS64) \
536	/lib/64 \
537	/lib/crypto/64 \
538	/lib/secure/64 \
539	/usr/lib/64 \
540	/usr/lib/brand/sn1/64 \
541	/usr/lib/brand/solaris10/64 \
542	/usr/lib/elfedit/64 \
543	/usr/lib/link_audit/64 \
544	/usr/lib/lwp/64 \
545	/usr/lib/secure/64 \
546	/usr/lib/security/64 \
547	/usr/xpg4/lib/64 \
548	/var/ld/64 \
549	/usr/ucblib/64
550
551# prepend the ROOT prefix
552
553ROOTDIRS=	$(TARGETDIRS:%=$(ROOT)%)
554
555# conditional assignments
556#
557# Target directories with non-default values for owner and group must
558# be referenced here, using their fully-prefixed names, and the non-
559# default values assigned.  If a directory is mentioned above and not
560# mentioned below, it has default values for attributes.
561#
562# The default value for DIRMODE is specified in usr/src/Makefile.master.
563#
564
565$(ROOT)/var/adm \
566$(ROOT)/var/adm/sa :=		DIRMODE= 775
567
568$(ROOT)/var/spool/lp:=		DIRMODE= 775
569
570# file mode
571#
572$(ROOT)/tmp \
573$(ROOT)/var/krb5/rcache \
574$(ROOT)/var/preserve \
575$(ROOT)/var/spool/pkg \
576$(ROOT)/var/spool/uucppublic \
577$(ROOT)/var/tmp:=	DIRMODE= 1777
578
579$(ROOT)/root:=		DIRMODE= 700
580
581$(ROOT)/var/krb5/rcache/root:=	DIRMODE= 700
582
583
584#
585# These permissions must match those set
586# in the package manifests.
587#
588$(ROOT)/var/sadm/pkg \
589$(ROOT)/var/sadm/security \
590$(ROOT)/var/sadm/install/logs :=	DIRMODE= 555
591
592
593#
594# These permissions must match the ones set
595# internally by fdfs and autofs.
596#
597$(ROOT)/dev/fd \
598$(ROOT)/home:=		DIRMODE= 555
599
600$(ROOT)/var/mail:=	DIRMODE=1777
601
602$(ROOT)/proc:=		DIRMODE= 555
603
604$(ROOT)/system/boot:=		DIRMODE= 555
605$(ROOT)/system/contract:=	DIRMODE= 555
606$(ROOT)/system/object:=		DIRMODE= 555
607
608# symlink assignments, LINKDEST is the value of the symlink
609#
610$(ROOT)/usr/lib/cron:=			LINKDEST=../../etc/cron.d
611$(ROOT)/bin:=				LINKDEST=usr/bin
612$(ROOT)/lib/32:=			LINKDEST=.
613$(ROOT)/lib/crypto/32:=			LINKDEST=.
614$(ROOT)/lib/secure/32:=			LINKDEST=.
615$(ROOT)/dev/stdin:=			LINKDEST=fd/0
616$(ROOT)/dev/stdout:=			LINKDEST=fd/1
617$(ROOT)/dev/stderr:=			LINKDEST=fd/2
618$(ROOT)/usr/pub:=			LINKDEST=share/lib/pub
619$(ROOT)/usr/man:=			LINKDEST=share/man
620$(ROOT)/usr/src:=			LINKDEST=share/src
621$(ROOT)/usr/adm:=			LINKDEST=../var/adm
622$(ROOT)/etc/log:=			LINKDEST=../var/adm/log
623$(ROOT)/usr/mail:=			LINKDEST=../var/mail
624$(ROOT)/usr/news:=			LINKDEST=../var/news
625$(ROOT)/usr/preserve:=			LINKDEST=../var/preserve
626$(ROOT)/usr/spool:=			LINKDEST=../var/spool
627$(ROOT)/usr/tmp:=			LINKDEST=../var/tmp
628$(ROOT)/usr/lib/tmac:=			LINKDEST=../share/lib/tmac
629$(ROOT)/usr/lib/32:=			LINKDEST=.
630$(ROOT)/usr/lib/elfedit/32:=		LINKDEST=.
631$(ROOT)/usr/lib/lwp/32:=		LINKDEST=.
632$(ROOT)/usr/lib/link_audit/32:=		LINKDEST=.
633$(ROOT)/usr/lib/secure/32:=		LINKDEST=.
634$(ROOT)/usr/ccs/lib/link_audit:=	LINKDEST=../../lib/link_audit
635$(ROOT)/var/ld/32:=			LINKDEST=.
636$(ROOT)/usr/ucblib/32:=			LINKDEST=.
637
638
639$(BUILD64) $(ROOT)/lib/64:=		LINKDEST=$(MACH64)
640$(BUILD64) $(ROOT)/lib/crypto/64:=	LINKDEST=$(MACH64)
641$(BUILD64) $(ROOT)/lib/secure/64:=	LINKDEST=$(MACH64)
642$(BUILD64) $(ROOT)/usr/lib/64:=		LINKDEST=$(MACH64)
643$(BUILD64) $(ROOT)/usr/lib/elfedit/64:=	LINKDEST=$(MACH64)
644$(BUILD64) $(ROOT)/usr/lib/brand/sn1/64:=	LINKDEST=$(MACH64)
645$(BUILD64) $(ROOT)/usr/lib/brand/solaris10/64:=	LINKDEST=$(MACH64)
646$(BUILD64) $(ROOT)/usr/lib/lwp/64:=	LINKDEST=$(MACH64)
647$(BUILD64) $(ROOT)/usr/lib/link_audit/64:=	LINKDEST=$(MACH64)
648$(BUILD64) $(ROOT)/usr/lib/secure/64:=	LINKDEST=$(MACH64)
649$(BUILD64) $(ROOT)/usr/lib/security/64:=	LINKDEST=$(MACH64)
650$(BUILD64) $(ROOT)/usr/xpg4/lib/64:=	LINKDEST=$(MACH64)
651$(BUILD64) $(ROOT)/var/ld/64:=		LINKDEST=$(MACH64)
652$(BUILD64) $(ROOT)/usr/ucblib/64:=	LINKDEST=$(MACH64)
653
654#
655# Installing a directory symlink calls for overriding INS.dir to install
656# a symlink.
657#
658$(DIRLINKS:%=$(ROOT)%):= \
659   INS.dir= -$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@
660