Home | History | Annotate | Download | only in src
      1 #
      2 # CDDL HEADER START
      3 #
      4 # The contents of this file are subject to the terms of the
      5 # Common Development and Distribution License (the "License").
      6 # You may not use this file except in compliance with the License.
      7 #
      8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
      9 # or http://www.opensolaris.org/os/licensing.
     10 # See the License for the specific language governing permissions
     11 # and limitations under the License.
     12 #
     13 # When distributing Covered Code, include this CDDL HEADER in each
     14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     15 # If applicable, add the following below this CDDL HEADER, with the
     16 # fields enclosed by brackets "[]" replaced with your own identifying
     17 # information: Portions Copyright [yyyy] [name of copyright owner]
     18 #
     19 # CDDL HEADER END
     20 #
     21 
     22 #
     23 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
     24 # Use is subject to license terms.
     25 #
     26 # ident	"@(#)Targetdirs	1.202	07/12/07 SMI"
     27 #
     28 
     29 #
     30 # The list is built of owner-group combinations.  ROOT.SYS occurs twice
     31 # because some directories owned by root and in group sys are subdirectories
     32 # of directories having other owner-group attributes.
     33 #
     34 # It is easier to think in terms of directory names without the ROOT macro
     35 # prefix.  ROOTDIRS is TARGETDIRS with ROOT prefixes.  It is necessary
     36 # to work with ROOT prefixes when controlling conditional assignments.
     37 #
     38 # The macro SYM.ROOT.SYS means symlinks with owner root and group sys.
     39 
     40 SYMLINKS=	$(SYM.ROOT.SYS) $(SYM.ROOT.BIN) $(SYM.OTHERS)
     41 
     42 TARGETDIRS=	$(ROOT.SYS) $(ROOT.BIN) $(ROOT.SYS2) \
     43 		$(UUCP.UUCP) $(OTHERS) $(SYM.USRCCSLIB) $(SYM.USRLIB) \
     44 		$(ROOT.SFW)
     45 
     46 $(BUILD64)	TARGETDIRS += $(ROOT.SYS64.2) $(ROOT.BIN64) \
     47 		$(SYM.USRCCSLIB64) $(SYM.USRLIB64) $(ROOT.SFW64)
     48 
     49 $(BUILD64)	SYMLINKS += $(SYM.ROOT.BIN64) $(SYM.ROOT.SFW64)
     50 
     51 TARGETDIRS	+= $(SYMLINKS)
     52 
     53 i386_ROOT.SYS= \
     54 	/boot/acpi \
     55 	/boot/acpi/tables \
     56 	/boot/grub \
     57 	/boot/grub/bin \
     58 	/platform/i86pc
     59 
     60 sparc_ROOT.SYS=
     61 
     62 ROOT.SYS= \
     63 	/boot \
     64 	/boot/solaris \
     65 	/boot/solaris/bin \
     66 	$($(MACH)_ROOT.SYS) \
     67 	/dev \
     68 	/dev/dsk \
     69 	/dev/fd \
     70 	/dev/rdsk \
     71 	/dev/rmt \
     72 	/dev/pts \
     73 	/dev/sad \
     74 	/dev/swap \
     75 	/dev/zcons \
     76 	/devices \
     77 	/devices/pseudo \
     78 	/etc \
     79 	/etc/certs	\
     80 	/etc/cron.d \
     81 	/etc/crypto \
     82 	/etc/crypto/certs \
     83 	/etc/crypto/crls \
     84 	/etc/default \
     85 	/etc/devices  \
     86 	/etc/dev  \
     87 	/etc/dfs  \
     88 	/etc/fs  \
     89 	/etc/fs/nfs  \
     90 	/etc/fs/zfs \
     91 	/etc/ftpd  \
     92 	/etc/hal \
     93 	/etc/hal/fdi \
     94 	/etc/hal/fdi/information \
     95 	/etc/hal/fdi/information/10freedesktop \
     96 	/etc/hal/fdi/information/20thirdparty \
     97 	/etc/hal/fdi/information/30user \
     98 	/etc/hal/fdi/policy \
     99 	/etc/hal/fdi/policy/10osvendor \
    100 	/etc/hal/fdi/policy/20thirdparty \
    101 	/etc/hal/fdi/policy/30user \
    102 	/etc/hal/fdi/preprobe \
    103 	/etc/hal/fdi/preprobe/10osvendor \
    104 	/etc/hal/fdi/preprobe/20thirdparty \
    105 	/etc/hal/fdi/preprobe/30user \
    106 	/etc/iscsi \
    107 	/etc/rpcsec	\
    108 	/etc/security	\
    109 	/etc/security/tsol	\
    110 	/etc/gss	\
    111 	/etc/init.d  \
    112 	/etc/dhcp	\
    113 	/etc/lib  \
    114 	/etc/opt  \
    115 	/etc/rc0.d  \
    116 	/etc/rc1.d  \
    117 	/etc/rc2.d  \
    118 	/etc/rc3.d  \
    119 	/etc/rcS.d  \
    120 	/etc/sasl	\
    121 	/etc/sfw \
    122 	/etc/svc \
    123 	/etc/svc/volatile \
    124 	/etc/tm  \
    125 	/etc/usb   \
    126 	/etc/zfs  \
    127 	/etc/zones  \
    128 	/export  \
    129 	/home  \
    130 	/kernel  \
    131 	/mnt  \
    132 	/opt  \
    133 	/platform  \
    134 	/proc  \
    135 	/sbin  \
    136 	/system \
    137 	/system/contract \
    138 	/system/object \
    139 	/usr  \
    140 	/usr/kernel  \
    141 	/usr/platform  \
    142 	/usr/share  \
    143 	/var  \
    144 	/var/adm  \
    145 	/var/adm/pool \
    146 	/var/adm/sm.bin \
    147 	/var/adm/streams \
    148 	/var/cron \
    149 	/var/db \
    150 	/var/db/ipf \
    151 	/var/krb5 \
    152 	/var/krb5/rcache  \
    153 	/var/krb5/rcache/root  \
    154 	/var/log \
    155 	/var/log/pool \
    156 	/var/sadm \
    157 	/var/opt \
    158 	/var/run \
    159 	/var/smb \
    160 	/var/svc \
    161 	/var/svc/log \
    162 	/var/svc/manifest \
    163 	/var/svc/manifest/milestone \
    164 	/var/svc/manifest/device \
    165 	/var/svc/manifest/system \
    166 	/var/svc/manifest/system/device \
    167 	/var/svc/manifest/system/filesystem \
    168 	/var/svc/manifest/system/security \
    169 	/var/svc/manifest/system/svc \
    170 	/var/svc/manifest/network \
    171 	/var/svc/manifest/network/dns \
    172   	/var/svc/manifest/network/ipsec \
    173 	/var/svc/manifest/network/ldap \
    174 	/var/svc/manifest/network/nfs \
    175 	/var/svc/manifest/network/nis \
    176 	/var/svc/manifest/network/rpc \
    177 	/var/svc/manifest/network/security \
    178 	/var/svc/manifest/network/shares \
    179 	/var/svc/manifest/network/ssl \
    180 	/var/svc/manifest/application \
    181 	/var/svc/manifest/application/management \
    182 	/var/svc/manifest/application/security \
    183 	/var/svc/manifest/application/print \
    184 	/var/svc/manifest/platform \
    185 	/var/svc/manifest/platform/sun4u \
    186 	/var/svc/manifest/platform/sun4v \
    187 	/var/svc/manifest/site \
    188 	/var/svc/profile \
    189 	/var/tsol \
    190 	/var/tsol/doors
    191 
    192 # EXPORT DELETE START
    193 XROOT.BIN= \
    194 	/etc/sfw/openssl \
    195 	/etc/sfw/openssl/certs \
    196 	/etc/sfw/openssl/private \
    197 	/usr/lib/inet/wanboot
    198 # EXPORT DELETE END
    199 
    200 i386_ROOT.BIN= \
    201 	/usr/lib/brand/lx \
    202 	/usr/lib/brand/lx/amd64 \
    203 	/usr/lib/brand/lx/distros
    204 
    205 sparc_ROOT.BIN= \
    206 	/usr/lib/ldoms
    207 
    208 ROOT.BIN= \
    209 	$($(MACH)_ROOT.BIN) \
    210 	/etc/dbus-1 \
    211 	/etc/dbus-1/system.d \
    212 	/etc/saf \
    213 	/etc/sma \
    214 	/etc/sma/snmp \
    215 	/lib \
    216 	/lib/inet \
    217 	/lib/secure \
    218 	/lib/svc \
    219 	/lib/svc/bin \
    220 	/lib/svc/capture \
    221 	/lib/svc/method \
    222 	/lib/svc/monitor \
    223 	/lib/svc/seed \
    224 	/lib/svc/share \
    225 	/usr/4lib \
    226 	/usr/ast \
    227 	/usr/ast/bin \
    228 	/usr/bin \
    229 	/usr/bin/$(MACH32) \
    230 	/usr/ccs \
    231 	/usr/ccs/bin \
    232 	/usr/ccs/lib \
    233 	/usr/demo \
    234 	/usr/demo/SOUND \
    235 	/usr/games \
    236 	/usr/include \
    237 	/usr/kvm \
    238 	/usr/include/ast \
    239 	/usr/include/sys/crypto \
    240 	/usr/include/fm \
    241 	/usr/include/gssapi \
    242 	/usr/include/hal \
    243 	/usr/include/kerberosv5 \
    244 	/usr/include/libmilter \
    245 	/usr/include/libpolkit \
    246 	/usr/include/sasl \
    247 	/usr/include/tsol \
    248 	/usr/include/security \
    249 	/usr/lib \
    250 	/usr/lib/abi \
    251 	/usr/lib/brand \
    252 	/usr/lib/brand/native \
    253 	/usr/lib/brand/sn1 \
    254 	/usr/lib/class \
    255 	/usr/lib/class/FSS \
    256 	/usr/lib/class/FX \
    257 	/usr/lib/class/IA \
    258 	/usr/lib/class/RT \
    259 	/usr/lib/class/TS \
    260 	/usr/lib/crypto \
    261 	/usr/lib/drv \
    262 	/usr/lib/elfedit \
    263 	/usr/lib/font \
    264 	/usr/lib/fp \
    265 	/usr/lib/fp/libp \
    266 	/usr/lib/inet \
    267 	/usr/lib/inet/dhcp \
    268 	/usr/lib/inet/dhcp/nsu \
    269 	/usr/lib/inet/dhcp/svc \
    270 	/usr/lib/inet/dhcp/svcadm \
    271 	$(XROOT.BIN) \
    272 	/usr/lib/fm    \
    273 	/usr/lib/gss    \
    274 	/usr/lib/hal \
    275 	/usr/lib/krb5 \
    276 	/usr/lib/link_audit \
    277 	/usr/lib/libp \
    278 	/usr/lib/localedef \
    279 	/usr/lib/localedef/extensions \
    280 	/usr/lib/localedef/src \
    281 	/usr/lib/lwp \
    282 	/usr/lib/pool \
    283 	/usr/lib/rcap \
    284 	/usr/lib/rcap/$(MACH32) \
    285 	/usr/lib/saf \
    286 	/usr/lib/sasl \
    287 	/usr/lib/secure \
    288 	/usr/lib/security \
    289 	/usr/lib/smbsrv \
    290 	/usr/lib/term \
    291 	/usr/lib/zones \
    292 	/usr/old \
    293 	/usr/openwin \
    294 	/usr/proc \
    295 	/usr/proc/bin \
    296 	/usr/sadm \
    297 	/usr/sadm/install \
    298 	/usr/sadm/install/scripts \
    299 	/usr/sadm/sysadm \
    300 	/usr/sadm/sysadm/add-ons \
    301 	/usr/snadm \
    302 	/usr/snadm/lib \
    303 	/usr/sbin \
    304 	/usr/sbin/$(MACH32) \
    305 	/usr/share/audio \
    306 	/usr/share/audio/samples \
    307 	/usr/share/audio/samples/au \
    308 	/usr/share/man \
    309 	/usr/share/man/man1m \
    310 	/usr/ucb \
    311 	/usr/ucb/$(MACH32) \
    312 	/usr/ucblib \
    313 	/usr/xpg4 \
    314 	/usr/xpg4/bin \
    315 	/usr/xpg4/include \
    316 	/usr/xpg4/lib \
    317 	/usr/xpg6 \
    318 	/usr/xpg6/bin \
    319 	/var/ld \
    320 	/var/news \
    321 	/var/preserve \
    322 	/var/saf \
    323 	/var/spool
    324 
    325 sparcv9_ROOT.BIN64= \
    326 	/platform/sun4u/lib \
    327 	/platform/sun4u/lib/$(MACH64) \
    328 	/usr/platform/sun4u/sbin \
    329 	/usr/platform/sun4u/lib \
    330 	/platform/sun4v/lib \
    331 	/platform/sun4v/lib/$(MACH64) \
    332 	/usr/platform/sun4v/sbin \
    333 	/usr/platform/sun4v/lib \
    334 	/usr/platform/sun4u-us3/lib \
    335 	/usr/platform/sun4u-opl/lib
    336 
    337 amd64_ROOT.BIN64= \
    338 	/platform/i86pc/amd64
    339 
    340 ROOT.BIN64= \
    341 	$($(MACH64)_ROOT.BIN64) \
    342 	/lib/$(MACH64) \
    343 	/lib/secure/$(MACH64) \
    344 	/usr/bin/$(MACH64) \
    345 	/usr/ccs/bin/$(MACH64)  \
    346 	/usr/ccs/lib/$(MACH64) \
    347 	/usr/lib/$(MACH64) \
    348         /usr/lib/$(MACH64)/gss \
    349 	/usr/lib/elfedit/$(MACH64) \
    350 	/usr/lib/fm/$(MACH64) \
    351 	/usr/lib/fp/libp/$(MACH64) \
    352 	/usr/lib/krb5/$(MACH64) \
    353 	/usr/lib/libp/$(MACH64) \
    354 	/usr/lib/link_audit/$(MACH64) \
    355 	/usr/lib/lwp/$(MACH64) \
    356 	/usr/lib/rcap/$(MACH64) \
    357 	/usr/lib/sasl/$(MACH64) \
    358 	/usr/lib/secure/$(MACH64) \
    359 	/usr/lib/security/$(MACH64) \
    360 	/usr/lib/smbsrv/$(MACH64) \
    361 	/usr/lib/abi/$(MACH64) \
    362 	/usr/sbin/$(MACH64) \
    363 	/usr/ucb/$(MACH64) \
    364 	/usr/ucblib/$(MACH64) \
    365 	/usr/xpg4/lib/$(MACH64) \
    366 	/var/ld/$(MACH64)
    367 
    368 ROOT.SYS2= \
    369 	/usr/lib/fs \
    370 	/usr/lib/fs/nfs \
    371 	/usr/lib/fs/proc \
    372 	/usr/lib/fs/smb \
    373 	/usr/lib/fs/zfs \
    374 	/usr/lib/mdb \
    375 	/usr/lib/mdb/kvm \
    376 	/usr/lib/mdb/proc \
    377 	/usr/lib/mdb/disasm \
    378 	/usr/lib/nfs \
    379 	/usr/net \
    380 	/usr/net/servers \
    381 	/usr/share/hwdata \
    382 	/usr/share/lib \
    383 	/usr/share/lib/xml \
    384 	/usr/share/lib/xml/dtd \
    385 	/usr/share/src \
    386 	/var/spool/cron \
    387 	/var/spool/cron/atjobs \
    388 	/var/spool/cron/crontabs
    389 
    390 sparcv9_ROOT.SYS64.2 = \
    391 	/platform/sun4u \
    392 	/usr/platform/sun4u
    393 
    394 amd64_ROOT.SYS64.2 =
    395 
    396 ROOT.SYS64.2 = \
    397 	$($(MACH64)_ROOT.SYS64.2) \
    398 	/usr/lib/mdb/kvm/$(MACH64) \
    399 	/usr/lib/mdb/proc/$(MACH64) \
    400 	/usr/lib/fs/nfs/$(MACH64) \
    401 	/usr/lib/fs/smb/$(MACH64)
    402 
    403 UUCP.UUCP= \
    404 	/var/spool/uucp \
    405 	/var/spool/uucppublic \
    406 	/var/uucp
    407 
    408 ROOT.SFW= \
    409 	/usr/sfw/bin \
    410 	/usr/sfw/sbin \
    411 	/usr/sfw/include \
    412 	/usr/sfw/lib \
    413 	/usr/sfw/share
    414 
    415 ROOT.SFW64= \
    416 	/usr/sfw/lib/$(MACH64)
    417 
    418 # EXPORT DELETE START
    419 ROOT.SFW64+= \
    420 	/usr/sfw/bin/$(MACH64)
    421 # EXPORT DELETE END
    422 
    423 OTHERS=  \
    424 	/dev/term  \
    425 	/tmp  \
    426 	/etc/dladm \
    427 	/etc/mail  \
    428 	/etc/mail/cf  \
    429 	/etc/mail/cf/cf  \
    430 	/etc/mail/cf/domain  \
    431 	/etc/mail/cf/feature  \
    432 	/etc/mail/cf/m4  \
    433 	/etc/mail/cf/mailer  \
    434 	/etc/mail/cf/ostype  \
    435 	/etc/mail/cf/sh  \
    436 	/usr/lib/sa  \
    437 	/usr/share/lib/ccs \
    438 	/usr/share/lib/tmac  \
    439 	/usr/share/lib/ldif  \
    440 	/var/adm/exacct \
    441 	/var/adm/log \
    442 	/var/adm/sa \
    443 	/var/idmap \
    444 	/var/mail \
    445 	/var/spool/lp \
    446 	/var/tmp
    447 
    448 # /var/mail/:saved is built directly by the rootdirs target in
    449 # /usr/src/Makefile because of the colon in its name.
    450 
    451 # macros for symbolic links
    452 
    453 SYM.ROOT.SYS= \
    454 	/dev/stdin \
    455 	/dev/stdout \
    456 	/dev/stderr \
    457 	/usr/adm \
    458 	/usr/lib/cron \
    459 	/usr/man \
    460 	/usr/pub
    461 
    462 SYM.ROOT.BIN= \
    463 	/bin \
    464 	/lib/32 \
    465 	/lib/secure/32 \
    466 	/etc/lib/ld.so.1 \
    467 	/etc/lib/libdl.so.1 \
    468 	/etc/lib/nss_files.so.1 \
    469 	/usr/spool \
    470 	/usr/lib/tmac \
    471 	/usr/ccs/lib/fp \
    472 	/usr/ccs/lib/link_audit \
    473 	/usr/news \
    474 	/usr/preserve \
    475 	/usr/src \
    476 	/usr/lib/32 \
    477 	/usr/lib/elfedit/32 \
    478 	/usr/lib/libp/32 \
    479 	/usr/lib/lwp/32 \
    480 	/usr/lib/link_audit/32 \
    481 	/usr/lib/secure/32 \
    482 	/var/ld/32 \
    483 	/usr/ucblib/32
    484 
    485 
    486 i386_SYM.ROOT.BIN64= \
    487 	/usr/lib/brand/lx/64
    488 
    489 sparc_SYM.ROOT.BIN64=
    490 
    491 SYM.ROOT.BIN64= \
    492 	$($(MACH)_SYM.ROOT.BIN64) \
    493 	/lib/64 \
    494 	/lib/secure/64 \
    495 	/usr/lib/64 \
    496 	/usr/lib/elfedit/64 \
    497 	/usr/lib/libp/64 \
    498 	/usr/lib/link_audit/64 \
    499 	/usr/lib/lwp/64 \
    500 	/usr/lib/secure/64 \
    501 	/usr/lib/security/64 \
    502 	/usr/xpg4/lib/64 \
    503 	/var/ld/64 \
    504 	/usr/ucblib/64
    505 
    506 SYM.ROOT.SFW64= \
    507 	/usr/sfw/lib/64
    508 
    509 SYM.OTHERS=  \
    510 	/etc/log  \
    511 	/usr/mail  \
    512 	/usr/tmp
    513 
    514 # prepend the ROOT prefix
    515 
    516 ROOTDIRS=	$(TARGETDIRS:%=$(ROOT)%)
    517 
    518 # conditional assignments
    519 #
    520 # Target directories with non-default values for owner and group must
    521 # be referenced here, using their fully-prefixed names, and the non-
    522 # default values assigned.  If a directory is mentioned above and not
    523 # mentioned below, it has default values for attributes.
    524 #
    525 # The default values for OWNER, GROUP, and DIRMODE are specified in
    526 # /usr/src/Makefile.master.
    527 #
    528 
    529 $(ROOT)/tmp \
    530 $(ROOT)/usr/tmp \
    531 $(ROOT)/var/tmp \
    532 $(ROOT)/var/adm/sa \
    533 $(ROOT.SYS:%=$(ROOT)%) \
    534 $(ROOT.SYS2:%=$(ROOT)%) \
    535 $(ROOT.SYS64.2:%=$(ROOT)%) \
    536 $(SYM.ROOT.SYS:%=$(ROOT)%):=	GROUP= sys
    537 
    538 $(ROOT)/var/adm \
    539 $(ROOT)/var/adm/sa :=		DIRMODE= 775
    540 
    541 $(ROOT)/var/idmap :=		OWNER= daemon
    542 $(ROOT)/var/idmap :=		GROUP= daemon
    543 
    544 $(ROOT)/dev/term:=		GROUP= root
    545 
    546 $(UUCP.UUCP:%=$(ROOT)%):=	OWNER= uucp
    547 $(UUCP.UUCP:%=$(ROOT)%):=	GROUP= uucp
    548 
    549 $(ROOT)/etc/log \
    550 $(ROOT)/usr/lib/sa \
    551 $(ROOT)/var/adm/exacct \
    552 $(ROOT)/var/adm/log \
    553 $(ROOT)/var/adm/sa:=		OWNER= adm
    554 
    555 $(ROOT)/etc/log \
    556 $(ROOT)/var/adm/exacct \
    557 $(ROOT)/var/adm/log:=	GROUP= adm
    558 
    559 $(ROOT)/etc/mail \
    560 $(ROOT)/etc/mail/cf \
    561 $(ROOT)/etc/mail/cf/cf \
    562 $(ROOT)/etc/mail/cf/domain \
    563 $(ROOT)/etc/mail/cf/feature \
    564 $(ROOT)/etc/mail/cf/m4 \
    565 $(ROOT)/etc/mail/cf/mailer \
    566 $(ROOT)/etc/mail/cf/ostype \
    567 $(ROOT)/etc/mail/cf/sh \
    568 $(ROOT)/usr/mail \
    569 $(ROOT)/var/mail  :=	GROUP= mail
    570 
    571 $(ROOT)/etc/dladm :=		OWNER= dladm
    572 $(ROOT)/etc/dladm :=		GROUP= sys
    573 
    574 $(ROOT)/var/spool/lp:=		OWNER= lp
    575 $(ROOT)/var/spool/lp:=		GROUP= lp
    576 $(ROOT)/var/spool/lp:=		DIRMODE= 775
    577 
    578 # file mode
    579 #
    580 $(ROOT)/tmp \
    581 $(ROOT)/var/krb5/rcache \
    582 $(ROOT)/var/preserve \
    583 $(ROOT)/var/spool/pkg \
    584 $(ROOT)/var/spool/uucppublic \
    585 $(ROOT)/var/tmp:=	DIRMODE= 1777
    586 
    587 $(ROOT)/var/krb5/rcache/root:=	DIRMODE= 700
    588 
    589 $(ROOT)/etc/sfw/openssl/private:=	DIRMODE= 700
    590 
    591 #
    592 # These permissions must match the ones set
    593 # internally by fdfs and autofs.
    594 #
    595 $(ROOT)/dev/fd \
    596 $(ROOT)/home:=		DIRMODE= 555
    597 
    598 $(ROOT)/dev/fd \
    599 $(ROOT)/home:=		GROUP= root
    600 
    601 $(ROOT)/var/mail:=	DIRMODE=1777
    602 
    603 $(ROOT)/proc:=		GROUP= root
    604 $(ROOT)/proc:=		DIRMODE= 555
    605 
    606 $(ROOT)/system/contract:=	DIRMODE= 555
    607 $(ROOT)/system/object:=		DIRMODE= 555
    608 
    609 # symlink assignments, LINKDEST is the value of the symlink
    610 #
    611 $(ROOT)/usr/lib/cron:=			LINKDEST=../../etc/cron.d
    612 $(ROOT)/bin:=				LINKDEST=usr/bin
    613 $(ROOT)/lib/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/lib/ld.so.1:=		LINKDEST=../../lib/ld.so.1
    623 $(ROOT)/etc/lib/libdl.so.1:=		LINKDEST=../../lib/libdl.so.1
    624 $(ROOT)/etc/lib/nss_files.so.1:=	LINKDEST=../../lib/nss_files.so.1
    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/libp/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/fp:=		LINKDEST=../../lib/fp
    639 $(ROOT)/usr/ccs/lib/link_audit:=	LINKDEST=../../lib/link_audit
    640 $(ROOT)/var/ld/32:=			LINKDEST=.
    641 $(ROOT)/usr/ucblib/32:=			LINKDEST=.
    642 
    643 
    644 $(BUILD64) $(ROOT)/lib/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/lx/64:=	LINKDEST=$(MACH64)
    649 $(BUILD64) $(ROOT)/usr/lib/libp/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/xpg4/lib/64:=	LINKDEST=$(MACH64)
    655 $(BUILD64) $(ROOT)/var/ld/64:=		LINKDEST=$(MACH64)
    656 $(BUILD64) $(ROOT)/usr/sfw/lib/64:=	LINKDEST=$(MACH64)
    657 $(BUILD64) $(ROOT)/usr/ucblib/64:=	LINKDEST=$(MACH64)
    658 
    659 # Installing a directory symlink calls for overriding INS.dir to install
    660 # a symlink.
    661 #
    662 $(SYMLINKS:%=$(ROOT)%):= \
    663    INS.dir= -$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@; \
    664 	     $(CHOWN) $(OWNER) $@; $(CHGRP) $(GROUP) $@
    665 
    666 
    667 # Special symlinks to populate usr/ccs/lib, whose objects
    668 # have actually been moved to usr/lib
    669 # Rather than adding another set of rules, we add usr/lib/lwp files here
    670 $(ROOT)/usr/ccs/lib/libcurses.so:= 	REALPATH=../../../lib/libcurses.so.1
    671 $(ROOT)/usr/ccs/lib/llib-lcurses:= 	REALPATH=../../../lib/llib-lcurses
    672 $(ROOT)/usr/ccs/lib/llib-lcurses.ln:= 	REALPATH=../../../lib/llib-lcurses.ln
    673 $(ROOT)/usr/ccs/lib/libform.so:=	REALPATH=../../lib/libform.so.1
    674 $(ROOT)/usr/ccs/lib/llib-lform:= 	REALPATH=../../lib/llib-lform
    675 $(ROOT)/usr/ccs/lib/llib-lform.ln:= 	REALPATH=../../lib/llib-lform.ln
    676 $(ROOT)/usr/ccs/lib/libgen.so:=		REALPATH=../../../lib/libgen.so.1
    677 $(ROOT)/usr/ccs/lib/llib-lgen:= 	REALPATH=../../../lib/llib-lgen
    678 $(ROOT)/usr/ccs/lib/llib-lgen.ln:= 	REALPATH=../../../lib/llib-lgen.ln
    679 $(ROOT)/usr/ccs/lib/libmalloc.so:=	REALPATH=../../lib/libmalloc.so.1
    680 $(ROOT)/usr/ccs/lib/libmenu.so:=	REALPATH=../../lib/libmenu.so.1
    681 $(ROOT)/usr/