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