xref: /illumos-gate/usr/src/Targetdirs (revision e9db39cef1f968a982994f50c05903cc988a3dd3)
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 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/network/ssl \
222	/lib/svc/manifest/application \
223	/lib/svc/manifest/application/management \
224	/lib/svc/manifest/application/security \
225	/lib/svc/manifest/application/print \
226	/lib/svc/manifest/platform \
227	/lib/svc/manifest/platform/sun4u \
228	/lib/svc/manifest/platform/sun4v \
229	/lib/svc/manifest/site \
230	/lib/svc/method \
231	/lib/svc/monitor \
232	/lib/svc/seed \
233	/lib/svc/share \
234	/kernel  \
235	/kernel/firmware \
236	/mnt  \
237	/opt  \
238	/platform  \
239	/proc  \
240	/root  \
241	/sbin  \
242	/system \
243	/system/boot \
244	/system/contract \
245	/system/object \
246	/tmp \
247	/usr  \
248	/usr/ast \
249	/usr/ast/bin \
250	/usr/bin \
251	/usr/bin/$(MACH32) \
252	/usr/ccs \
253	/usr/ccs/bin \
254	/usr/ccs/lib \
255	/usr/demo \
256	/usr/demo/SOUND \
257	/usr/games \
258	/usr/has \
259	/usr/has/bin \
260	/usr/has/lib \
261        /usr/has/man \
262	/usr/include \
263	/usr/include/ads \
264	/usr/include/ast \
265	/usr/include/fm \
266	/usr/include/gssapi \
267	/usr/include/hal \
268	/usr/include/kerberosv5 \
269	/usr/include/libmilter \
270	/usr/include/libpolkit \
271	/usr/include/sasl \
272	/usr/include/scsi \
273	/usr/include/security \
274	/usr/include/sys/crypto \
275	/usr/include/tsol \
276	/usr/kernel  \
277	/usr/kvm \
278	/usr/lib \
279	/usr/lib/abi \
280	/usr/lib/brand \
281	/usr/lib/brand/ipkg \
282	/usr/lib/brand/labeled \
283	/usr/lib/brand/shared \
284	/usr/lib/brand/sn1 \
285	/usr/lib/brand/solaris10 \
286	/usr/lib/class \
287	/usr/lib/class/FSS \
288	/usr/lib/class/FX \
289	/usr/lib/class/IA \
290	/usr/lib/class/RT \
291	/usr/lib/class/SDC \
292	/usr/lib/class/TS \
293	/usr/lib/crypto \
294	/usr/lib/elfedit \
295	/usr/lib/fm \
296	/usr/lib/font \
297	/usr/lib/fs \
298	/usr/lib/fs/nfs \
299	/usr/lib/fs/proc \
300	/usr/lib/fs/smb \
301	/usr/lib/fs/zfs \
302	/usr/lib/gss \
303	/usr/lib/hal \
304	/usr/lib/inet \
305	/usr/lib/inet/ilb \
306	/usr/lib/krb5 \
307	/usr/lib/link_audit \
308	/usr/lib/lwp \
309	/usr/lib/mdb \
310	/usr/lib/mdb/kvm \
311	/usr/lib/mdb/proc \
312	/usr/lib/nfs \
313	/usr/lib/varpd \
314	/usr/net \
315	/usr/net/servers \
316	/usr/lib/pool \
317	$(PYTHON2_DIRS) \
318	/usr/lib/rcap \
319	/usr/lib/rcap/$(MACH32) \
320	/usr/lib/sa  \
321	/usr/lib/saf \
322	/usr/lib/sasl \
323	/usr/lib/scsi \
324	/usr/lib/secure \
325	/usr/lib/security \
326	/usr/lib/smbsrv \
327	/usr/lib/vscan \
328	/usr/lib/zfs \
329	/usr/lib/zones \
330	/usr/old \
331	/usr/platform  \
332	/usr/proc \
333	/usr/proc/bin \
334	/usr/sadm \
335	/usr/sadm/install \
336	/usr/sadm/install/bin \
337	/usr/sadm/install/scripts \
338	/usr/sbin \
339	/usr/sbin/$(MACH32) \
340	/usr/share  \
341	/usr/share/applications \
342	/usr/share/audio \
343	/usr/share/audio/samples \
344	/usr/share/audio/samples/au \
345	/usr/share/gnome \
346	/usr/share/gnome/autostart \
347	/usr/share/hwdata \
348	/usr/share/lib \
349	/usr/share/lib/ccs \
350	/usr/share/lib/tmac  \
351	/usr/share/lib/ldif  \
352	/usr/share/lib/xml \
353	/usr/share/lib/xml/dtd \
354	/usr/share/man \
355	/usr/share/src \
356	/usr/ucb \
357	$(MACH32_DIRS) \
358	/usr/ucblib \
359	/usr/xpg4 \
360	/usr/xpg4/bin \
361	/usr/xpg4/include \
362	/usr/xpg4/lib \
363	/usr/xpg6 \
364	/usr/xpg6/bin \
365	/var  \
366	/var/adm  \
367	/var/adm/exacct \
368	/var/adm/log \
369	/var/adm/pool \
370	/var/adm/sa \
371	/var/adm/sm.bin \
372	/var/adm/streams \
373	/var/cores \
374	/var/cron \
375	/var/db \
376	/var/db/ipf \
377	/var/games \
378	/var/idmap \
379	/var/krb5 \
380	/var/krb5/rcache  \
381	/var/krb5/rcache/root  \
382	/var/ld \
383	/var/log \
384	/var/log/pool \
385	/var/logadm \
386	/var/mail \
387	/var/news \
388	/var/opt \
389	/var/preserve \
390	/var/run \
391	/var/saf \
392	/var/sadm \
393	/var/sadm/install \
394	/var/sadm/install/admin \
395	/var/sadm/install/logs \
396	/var/sadm/pkg \
397	/var/sadm/security \
398	/var/smb \
399	/var/smb/cvol \
400	/var/smb/cvol/windows \
401	/var/smb/cvol/windows/system32 \
402	/var/smb/cvol/windows/system32/vss \
403	/var/spool \
404	/var/spool/cron \
405	/var/spool/cron/atjobs \
406	/var/spool/cron/crontabs \
407	/var/spool/lp \
408	/var/spool/pkg \
409	/var/spool/uucp \
410	/var/spool/uucppublic \
411	/var/svc \
412	/var/svc/log \
413	/var/svc/manifest \
414	/var/svc/manifest/milestone \
415	/var/svc/manifest/device \
416	/var/svc/manifest/system \
417	/var/svc/manifest/system/device \
418	/var/svc/manifest/system/filesystem \
419	/var/svc/manifest/system/security \
420	/var/svc/manifest/system/svc \
421	/var/svc/manifest/network \
422	/var/svc/manifest/network/dns \
423	/var/svc/manifest/network/ipsec \
424	/var/svc/manifest/network/ldap \
425	/var/svc/manifest/network/nfs \
426	/var/svc/manifest/network/nis \
427	/var/svc/manifest/network/rpc \
428	/var/svc/manifest/network/routing \
429	/var/svc/manifest/network/security \
430	/var/svc/manifest/network/shares \
431	/var/svc/manifest/network/ssl \
432	/var/svc/manifest/application \
433	/var/svc/manifest/application/management \
434	/var/svc/manifest/application/print \
435	/var/svc/manifest/application/security \
436	/var/svc/manifest/platform \
437	/var/svc/manifest/platform/sun4u \
438	/var/svc/manifest/platform/sun4v \
439	/var/svc/manifest/site \
440	/var/svc/profile \
441	/var/uucp \
442	/var/tmp \
443	/var/tsol \
444	/var/tsol/doors
445
446sparcv9_DIRS64= \
447	/platform/sun4u \
448	/platform/sun4u/lib \
449	/platform/sun4u/lib/$(MACH64) \
450	/usr/platform/sun4u \
451	/usr/platform/sun4u/sbin \
452	/usr/platform/sun4u/lib \
453	/platform/sun4v/lib \
454	/platform/sun4v/lib/$(MACH64) \
455	/usr/platform/sun4v/sbin \
456	/usr/platform/sun4v/lib \
457	/usr/platform/sun4u-us3/lib \
458	/usr/platform/sun4u-opl/lib
459
460amd64_DIRS64= \
461	/platform/i86pc/amd64
462
463DIRS64= \
464	$($(MACH64)_DIRS64) \
465	/lib/$(MACH64) \
466	/lib/crypto/$(MACH64) \
467	/lib/fm/$(MACH64) \
468	/lib/secure/$(MACH64) \
469	/usr/bin/$(MACH64) \
470	/usr/ccs/bin/$(MACH64)  \
471	/usr/ccs/lib/$(MACH64) \
472	/usr/lib/$(MACH64) \
473	/usr/lib/$(MACH64)/gss \
474	/usr/lib/brand/sn1/$(MACH64) \
475	/usr/lib/brand/solaris10/$(MACH64) \
476	/usr/lib/elfedit/$(MACH64) \
477	/usr/lib/fm/$(MACH64) \
478	/usr/lib/fs/nfs/$(MACH64) \
479	/usr/lib/fs/smb/$(MACH64) \
480	/usr/lib/inet/$(MACH64) \
481	/usr/lib/krb5/$(MACH64) \
482	/usr/lib/link_audit/$(MACH64) \
483	/usr/lib/lwp/$(MACH64) \
484	/usr/lib/mdb/kvm/$(MACH64) \
485	/usr/lib/mdb/proc/$(MACH64) \
486	$(PYTHON2_64DIRS) \
487	$(PYTHON3_DIRS) \
488	/usr/lib/rcap/$(MACH64) \
489	/usr/lib/sasl/$(MACH64) \
490	/usr/lib/scsi/$(MACH64) \
491	/usr/lib/secure/$(MACH64) \
492	/usr/lib/security/$(MACH64) \
493	/usr/lib/smbsrv/$(MACH64) \
494	/usr/lib/abi/$(MACH64) \
495	/usr/lib/varpd/$(MACH64) \
496	/usr/sbin/$(MACH64) \
497	/usr/ucb/$(MACH64) \
498	/usr/ucblib/$(MACH64) \
499	/usr/xpg4/lib/$(MACH64) \
500	/var/ld/$(MACH64)
501
502# /var/mail/:saved is built directly by the rootdirs target in
503# /usr/src/Makefile because of the colon in its name.
504
505# macros for symbolic links
506SYM.DIRS= \
507	/bin \
508	/dev/stdin \
509	/dev/stdout \
510	/dev/stderr \
511	/etc/log \
512	/lib/32 \
513	/lib/crypto/32 \
514	/lib/secure/32 \
515	/usr/adm \
516	/usr/spool \
517	/usr/lib/tmac \
518	/usr/ccs/lib/link_audit \
519	/usr/news \
520	/usr/preserve \
521	/usr/lib/32 \
522	/usr/lib/cron \
523	/usr/lib/elfedit/32 \
524	/usr/lib/lwp/32 \
525	/usr/lib/link_audit/32 \
526	/usr/lib/secure/32 \
527	/usr/mail \
528	/usr/man \
529	/usr/pub \
530	/usr/src \
531	/usr/tmp \
532	/usr/ucblib/32 \
533	/var/ld/32
534
535sparc_SYM.DIRS64=
536
537SYM.DIRS64= \
538	$($(MACH)_SYM.DIRS64) \
539	/lib/64 \
540	/lib/crypto/64 \
541	/lib/secure/64 \
542	/usr/lib/64 \
543	/usr/lib/brand/sn1/64 \
544	/usr/lib/brand/solaris10/64 \
545	/usr/lib/elfedit/64 \
546	/usr/lib/link_audit/64 \
547	/usr/lib/lwp/64 \
548	/usr/lib/secure/64 \
549	/usr/lib/security/64 \
550	/usr/lib/varpd/64 \
551	/usr/xpg4/lib/64 \
552	/var/ld/64 \
553	/usr/ucblib/64
554
555# prepend the ROOT prefix
556
557ROOTDIRS=	$(TARGETDIRS:%=$(ROOT)%)
558
559# conditional assignments
560#
561# Target directories with non-default values for owner and group must
562# be referenced here, using their fully-prefixed names, and the non-
563# default values assigned.  If a directory is mentioned above and not
564# mentioned below, it has default values for attributes.
565#
566# The default value for DIRMODE is specified in usr/src/Makefile.master.
567#
568
569$(ROOT)/var/adm \
570$(ROOT)/var/adm/sa :=		DIRMODE= 775
571
572$(ROOT)/var/spool/lp:=		DIRMODE= 775
573
574# file mode
575#
576$(ROOT)/tmp \
577$(ROOT)/var/krb5/rcache \
578$(ROOT)/var/preserve \
579$(ROOT)/var/spool/pkg \
580$(ROOT)/var/spool/uucppublic \
581$(ROOT)/var/tmp:=	DIRMODE= 1777
582
583$(ROOT)/root:=		DIRMODE= 700
584
585$(ROOT)/var/krb5/rcache/root:=	DIRMODE= 700
586
587
588#
589# These permissions must match those set
590# in the package manifests.
591#
592$(ROOT)/var/sadm/pkg \
593$(ROOT)/var/sadm/security \
594$(ROOT)/var/sadm/install/logs :=	DIRMODE= 555
595
596
597#
598# These permissions must match the ones set
599# internally by fdfs and autofs.
600#
601$(ROOT)/dev/fd \
602$(ROOT)/home:=		DIRMODE= 555
603
604$(ROOT)/var/mail:=	DIRMODE=1777
605
606$(ROOT)/proc:=		DIRMODE= 555
607
608$(ROOT)/system/boot:=		DIRMODE= 555
609$(ROOT)/system/contract:=	DIRMODE= 555
610$(ROOT)/system/object:=		DIRMODE= 555
611
612# symlink assignments, LINKDEST is the value of the symlink
613#
614$(ROOT)/usr/lib/cron:=			LINKDEST=../../etc/cron.d
615$(ROOT)/bin:=				LINKDEST=usr/bin
616$(ROOT)/lib/32:=			LINKDEST=.
617$(ROOT)/lib/crypto/32:=			LINKDEST=.
618$(ROOT)/lib/secure/32:=			LINKDEST=.
619$(ROOT)/dev/stdin:=			LINKDEST=fd/0
620$(ROOT)/dev/stdout:=			LINKDEST=fd/1
621$(ROOT)/dev/stderr:=			LINKDEST=fd/2
622$(ROOT)/usr/pub:=			LINKDEST=share/lib/pub
623$(ROOT)/usr/man:=			LINKDEST=share/man
624$(ROOT)/usr/src:=			LINKDEST=share/src
625$(ROOT)/usr/adm:=			LINKDEST=../var/adm
626$(ROOT)/etc/log:=			LINKDEST=../var/adm/log
627$(ROOT)/usr/mail:=			LINKDEST=../var/mail
628$(ROOT)/usr/news:=			LINKDEST=../var/news
629$(ROOT)/usr/preserve:=			LINKDEST=../var/preserve
630$(ROOT)/usr/spool:=			LINKDEST=../var/spool
631$(ROOT)/usr/tmp:=			LINKDEST=../var/tmp
632$(ROOT)/usr/lib/tmac:=			LINKDEST=../share/lib/tmac
633$(ROOT)/usr/lib/32:=			LINKDEST=.
634$(ROOT)/usr/lib/elfedit/32:=		LINKDEST=.
635$(ROOT)/usr/lib/lwp/32:=		LINKDEST=.
636$(ROOT)/usr/lib/link_audit/32:=		LINKDEST=.
637$(ROOT)/usr/lib/secure/32:=		LINKDEST=.
638$(ROOT)/usr/ccs/lib/link_audit:=	LINKDEST=../../lib/link_audit
639$(ROOT)/var/ld/32:=			LINKDEST=.
640$(ROOT)/usr/ucblib/32:=			LINKDEST=.
641
642
643$(BUILD64) $(ROOT)/lib/64:=		LINKDEST=$(MACH64)
644$(BUILD64) $(ROOT)/lib/crypto/64:=	LINKDEST=$(MACH64)
645$(BUILD64) $(ROOT)/lib/secure/64:=	LINKDEST=$(MACH64)
646$(BUILD64) $(ROOT)/usr/lib/64:=		LINKDEST=$(MACH64)
647$(BUILD64) $(ROOT)/usr/lib/elfedit/64:=	LINKDEST=$(MACH64)
648$(BUILD64) $(ROOT)/usr/lib/brand/sn1/64:=	LINKDEST=$(MACH64)
649$(BUILD64) $(ROOT)/usr/lib/brand/solaris10/64:=	LINKDEST=$(MACH64)
650$(BUILD64) $(ROOT)/usr/lib/lwp/64:=	LINKDEST=$(MACH64)
651$(BUILD64) $(ROOT)/usr/lib/link_audit/64:=	LINKDEST=$(MACH64)
652$(BUILD64) $(ROOT)/usr/lib/secure/64:=	LINKDEST=$(MACH64)
653$(BUILD64) $(ROOT)/usr/lib/security/64:=	LINKDEST=$(MACH64)
654$(BUILD64) $(ROOT)/usr/lib/varpd/64:=	LINKDEST=$(MACH64)
655$(BUILD64) $(ROOT)/usr/xpg4/lib/64:=	LINKDEST=$(MACH64)
656$(BUILD64) $(ROOT)/var/ld/64:=		LINKDEST=$(MACH64)
657$(BUILD64) $(ROOT)/usr/ucblib/64:=	LINKDEST=$(MACH64)
658
659#
660# Installing a directory symlink calls for overriding INS.dir to install
661# a symlink.
662#
663$(DIRLINKS:%=$(ROOT)%):= \
664   INS.dir= -$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@
665