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# 24# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 25# Use is subject to license terms. 26# 27# ident "%Z%%M% %I% %E% SMI" 28 29include ../Makefile.master 30 31# 32# Note that the commands 'agents', 'lp', 'perl', and 'man' are first in 33# the list, violating alphabetical order. This is because they are very 34# long-running and should be given the most wall-clock time for a 35# parallel build. 36# 37# Commands in the FIRST_SUBDIRS list are built before starting the build 38# of other commands. Currently this includes only 'isaexec' and 39# 'platexec'. This is necessary because $(ROOT)/usr/lib/isaexec or 40# $(ROOT)/usr/lib/platexec must exist when some other commands are built 41# because their 'make install' creates a hard link to one of them. 42# 43# Commands are listed one per line so that TeamWare can auto-merge most 44# changes. 45# 46 47FIRST_SUBDIRS= \ 48 isaexec \ 49 platexec 50 51COMMON_SUBDIRS= \ 52 agents \ 53 availdevs \ 54 lp \ 55 perl \ 56 man \ 57 Adm \ 58 abi \ 59 adbgen \ 60 acct \ 61 acctadm \ 62 arch \ 63 asa \ 64 audio \ 65 auths \ 66 autopush \ 67 awk \ 68 awk_xpg4 \ 69 backup \ 70 banner \ 71 bart \ 72 basename \ 73 bc \ 74 bdiff \ 75 bfs \ 76 bnu \ 77 boot \ 78 busstat \ 79 cal \ 80 calendar \ 81 captoinfo \ 82 cat \ 83 cdrw \ 84 cfgadm \ 85 checkeq \ 86 checknr \ 87 chgrp \ 88 chmod \ 89 chown \ 90 chroot \ 91 cksum \ 92 clear \ 93 clinfo \ 94 cmd-crypto \ 95 cmd-inet \ 96 cmp \ 97 col \ 98 comm \ 99 compress \ 100 consadm \ 101 coreadm \ 102 cpio \ 103 cpc \ 104 cron \ 105 crypt \ 106 csh \ 107 csplit \ 108 ctrun \ 109 ctstat \ 110 ctwatch \ 111 cut \ 112 datadm \ 113 date \ 114 dc \ 115 dd \ 116 deroff \ 117 des \ 118 devfsadm \ 119 syseventd \ 120 devctl \ 121 devinfo \ 122 devmgmt \ 123 dfs.cmds \ 124 diff \ 125 diff3 \ 126 diffmk \ 127 dircmp \ 128 dirname \ 129 dis \ 130 diskmgtd \ 131 dispadmin \ 132 dladm \ 133 dmesg \ 134 dtrace \ 135 du \ 136 dumpadm \ 137 dumpcs \ 138 echo \ 139 ed \ 140 eeprom \ 141 egrep \ 142 eject \ 143 emul64ioctl \ 144 enhance \ 145 env \ 146 eqn \ 147 expand \ 148 expr \ 149 exstr \ 150 factor \ 151 false \ 152 fdetach \ 153 fdformat \ 154 fdisk \ 155 filesync \ 156 fgrep \ 157 file \ 158 find \ 159 fm \ 160 fmli \ 161 fmt \ 162 fmthard \ 163 fmtmsg \ 164 fold \ 165 format \ 166 fs.d \ 167 fstyp \ 168 fuser \ 169 gcore \ 170 gencat \ 171 geniconvtbl \ 172 genmsg \ 173 getconf \ 174 getdevpolicy \ 175 getent \ 176 getfacl \ 177 getmajor \ 178 getopt \ 179 gettext \ 180 gettxt \ 181 graph \ 182 grep \ 183 grep_xpg4 \ 184 groups \ 185 grpck \ 186 gss \ 187 hal \ 188 halt \ 189 head \ 190 hostid \ 191 hostname \ 192 hwdata \ 193 id \ 194 infocmp \ 195 init \ 196 initpkg \ 197 install.d \ 198 intrd \ 199 intrstat \ 200 ipcrm \ 201 ipcs \ 202 ipf \ 203 isainfo \ 204 isalist \ 205 iscsi \ 206 java \ 207 join \ 208 kbd \ 209 keyserv \ 210 killall \ 211 krb5 \ 212 kstat \ 213 last \ 214 lastcomm \ 215 ldap \ 216 ldapcachemgr \ 217 lgrpinfo \ 218 line \ 219 link \ 220 listen \ 221 loadkeys \ 222 locale \ 223 lockstat \ 224 locator \ 225 lofiadm \ 226 logadm \ 227 logger \ 228 login \ 229 logins \ 230 logname \ 231 look \ 232 ls \ 233 lvm \ 234 mach \ 235 machid \ 236 mail \ 237 mailx \ 238 makekey \ 239 mdb \ 240 mesg \ 241 mkdir \ 242 mkfifo \ 243 mkfile \ 244 mkmsgs \ 245 mknod \ 246 mkpwdict \ 247 mktemp \ 248 modload \ 249 more \ 250 msgfmt \ 251 msgid \ 252 mt \ 253 mv \ 254 mvdir \ 255 netadm \ 256 netfiles \ 257 newform \ 258 newgrp \ 259 news \ 260 newtask \ 261 nice \ 262 nispasswd \ 263 nl \ 264 nlsadmin \ 265 nohup \ 266 nsadmin \ 267 nscd \ 268 oamuser \ 269 oawk \ 270 openssl \ 271 pack \ 272 pagesize \ 273 passmgmt \ 274 passwd \ 275 paste \ 276 pathchk \ 277 pbind \ 278 pcidr \ 279 pcmciad \ 280 pfexec \ 281 pgrep \ 282 picl \ 283 plimit \ 284 policykit \ 285 pools \ 286 power \ 287 ppgsz \ 288 pg \ 289 plockstat \ 290 pr \ 291 prctl \ 292 print \ 293 priocntl \ 294 profiles \ 295 projadd \ 296 projects \ 297 prstat \ 298 prtconf \ 299 prtdiag \ 300 prtvtoc \ 301 ps \ 302 psradm \ 303 psrinfo \ 304 psrset \ 305 ptools \ 306 pwck \ 307 pwconv \ 308 pwd \ 309 raidctl \ 310 ramdiskadm \ 311 rcap \ 312 rcm_daemon \ 313 rctladm \ 314 refer \ 315 regcmp \ 316 renice \ 317 rexd \ 318 rm \ 319 rmdir \ 320 rmformat \ 321 rmmount \ 322 rmt \ 323 rmvolmgr \ 324 roles \ 325 rpcbind \ 326 rpcgen \ 327 rpcinfo \ 328 rpcsvc \ 329 rpld \ 330 runat \ 331 sa \ 332 saf \ 333 savecore \ 334 script \ 335 sdiff \ 336 sdpadm \ 337 sendmail \ 338 setfacl \ 339 setmnt \ 340 setpgrp \ 341 setuname \ 342 sgs \ 343 sh \ 344 sleep \ 345 smbios \ 346 smserverd \ 347 soelim \ 348 sort \ 349 spell \ 350 spline \ 351 split \ 352 srchtxt \ 353 ssh \ 354 stat \ 355 stmsboot \ 356 streams \ 357 strings \ 358 su \ 359 sulogin \ 360 sum \ 361 sunpc \ 362 svc \ 363 swap \ 364 sync \ 365 sysdef \ 366 syseventadm \ 367 syslogd \ 368 tabs \ 369 tar \ 370 tbl \ 371 tcopy \ 372 tcpd \ 373 tee \ 374 terminfo \ 375 th_tools \ 376 tic \ 377 time \ 378 tip \ 379 tnf \ 380 touch \ 381 tplot \ 382 tput \ 383 trapstat \ 384 troff \ 385 true \ 386 truss \ 387 tty \ 388 ttymon \ 389 uadmin \ 390 ul \ 391 uname \ 392 uniq \ 393 units \ 394 unlink \ 395 unpack \ 396 users \ 397 utmp_update \ 398 utmpd \ 399 valtools \ 400 vgrind \ 401 vi \ 402 volcheck \ 403 volrmmount \ 404 w \ 405 wall \ 406 wbem \ 407 wc \ 408 which \ 409 who \ 410 whodo \ 411 wracct \ 412 write \ 413 xntpd \ 414 xargs \ 415 xstr \ 416 yes \ 417 ypcmd \ 418 yppasswd \ 419 zdb \ 420 zdump \ 421 zfs \ 422 zic \ 423 zinject \ 424 zlogin \ 425 zoneadm \ 426 zoneadmd \ 427 zonecfg \ 428 zonename \ 429 zpool \ 430 ztest 431 432$(CLOSED_BUILD)COMMON_SUBDIRS += \ 433 $(CLOSED)/cmd/dodatadm \ 434 $(CLOSED)/cmd/iconv \ 435 $(CLOSED)/cmd/ksh \ 436 $(CLOSED)/cmd/llc2 \ 437 $(CLOSED)/cmd/localedef \ 438 $(CLOSED)/cmd/more_xpg4 \ 439 $(CLOSED)/cmd/mtst \ 440 $(CLOSED)/cmd/od \ 441 $(CLOSED)/cmd/patch \ 442 $(CLOSED)/cmd/pax \ 443 $(CLOSED)/cmd/pcitool \ 444 $(CLOSED)/cmd/printf \ 445 $(CLOSED)/cmd/sed \ 446 $(CLOSED)/cmd/sed_xpg4 \ 447 $(CLOSED)/cmd/smartcard \ 448 $(CLOSED)/cmd/tail \ 449 $(CLOSED)/cmd/tr \ 450 $(CLOSED)/cmd/tr_xpg4 451 452i386_SUBDIRS= \ 453 addbadsec \ 454 biosdev \ 455 diskscan \ 456 OWconfig \ 457 rtc 458 459sparc_SUBDIRS= \ 460 cvcd \ 461 dcs \ 462 drd \ 463 fruadm \ 464 oplhpd \ 465 prtdscp \ 466 prtfru \ 467 scadm \ 468 sckmd \ 469 sf880drd \ 470 vntsd \ 471 wrsmconf \ 472 wrsmstat 473 474# 475# Commands that are messaged. Note that 'lp' and 'man' come first 476# (see previous comment about 'lp' and 'man'). 477# 478MSGSUBDIRS= \ 479 lp \ 480 man \ 481 abi \ 482 acctadm \ 483 allocate \ 484 asa \ 485 audio \ 486 audit \ 487 auditd \ 488 auths \ 489 autopush \ 490 awk \ 491 awk_xpg4 \ 492 backup \ 493 banner \ 494 bart \ 495 basename \ 496 bnu \ 497 bsmconv \ 498 bsmrecord \ 499 bsmunconv \ 500 busstat \ 501 cal \ 502 cat \ 503 cdrw \ 504 cfgadm \ 505 checkeq \ 506 checknr \ 507 chgrp \ 508 chmod \ 509 chown \ 510 cksum \ 511 cmd-crypto \ 512 cmd-inet \ 513 cmp \ 514 col \ 515 comm \ 516 compress \ 517 consadm \ 518 coreadm \ 519 cpio \ 520 cpc \ 521 cron \ 522 csh \ 523 csplit \ 524 ctrun \ 525 ctstat \ 526 ctwatch \ 527 cut \ 528 datadm \ 529 date \ 530 dc \ 531 dcs \ 532 dd \ 533 deroff \ 534 devfsadm \ 535 dfs.cmds \ 536 diff \ 537 diffmk \ 538 dladm \ 539 du \ 540 dumpcs \ 541 ed \ 542 eject \ 543 env \ 544 eqn \ 545 expand \ 546 expr \ 547 fgrep \ 548 file \ 549 filesync \ 550 find \ 551 fm \ 552 fold \ 553 fs.d \ 554 geniconvtbl \ 555 genmsg \ 556 getconf \ 557 getent \ 558 gettext \ 559 gettxt \ 560 grep \ 561 grep_xpg4 \ 562 grpck \ 563 gss \ 564 halt \ 565 head \ 566 hostname \ 567 id \ 568 isaexec \ 569 iscsi \ 570 join \ 571 krb5 \ 572 kstat \ 573 last \ 574 ldap \ 575 ldapcachemgr \ 576 lgrpinfo \ 577 locale \ 578 lofiadm \ 579 logadm \ 580 logger \ 581 logins \ 582 logname \ 583 ls \ 584 lvm \ 585 mailx \ 586 mesg \ 587 mkdir \ 588 mkpwdict \ 589 mktemp \ 590 more \ 591 msgfmt \ 592 mv \ 593 newgrp \ 594 newtask \ 595 nice \ 596 nispasswd \ 597 nohup \ 598 oawk \ 599 pack \ 600 passwd \ 601 passmgmt \ 602 paste \ 603 pathchk \ 604 pfexec \ 605 pg \ 606 pgrep \ 607 picl \ 608 pools \ 609 power \ 610 pr \ 611 praudit \ 612 print \ 613 profiles \ 614 projadd \ 615 projects \ 616 prstat \ 617 prtdiag \ 618 ps \ 619 psrinfo \ 620 ptools \ 621 pwconv \ 622 pwd \ 623 raidctl \ 624 ramdiskadm \ 625 rcap \ 626 rcm_daemon \ 627 refer \ 628 regcmp \ 629 renice \ 630 roles \ 631 rm \ 632 rmdir \ 633 rmformat \ 634 rmmount \ 635 rmvolmgr \ 636 scadm \ 637 script \ 638 sdiff \ 639 sdpadm \ 640 sgs \ 641 sh \ 642 sleep \ 643 sort \ 644 split \ 645 ssh \ 646 stat \ 647 stmsboot \ 648 strings \ 649 su \ 650 sum \ 651 svc \ 652 swap \ 653 syseventadm \ 654 syseventd \ 655 tabs \ 656 tar \ 657 tbl \ 658 tee \ 659 time \ 660 tnf \ 661 touch \ 662 tput \ 663 troff \ 664 tty \ 665 ttymon \ 666 ul \ 667 uname \ 668 uniq \ 669 units \ 670 unlink \ 671 unpack \ 672 valtools \ 673 vgrind \ 674 vi \ 675 volcheck \ 676 volrmmount \ 677 w \ 678 wbem \ 679 wc \ 680 who \ 681 whodo \ 682 wracct \ 683 write \ 684 xargs \ 685 yppasswd \ 686 zdump \ 687 zfs \ 688 zic \ 689 zlogin \ 690 zoneadm \ 691 zoneadmd \ 692 zonecfg \ 693 zonename \ 694 zpool 695 696$(CLOSED_BUILD)MSGSUBDIRS += \ 697 $(CLOSED)/cmd/iconv \ 698 $(CLOSED)/cmd/ksh \ 699 $(CLOSED)/cmd/llc2 \ 700 $(CLOSED)/cmd/localedef \ 701 $(CLOSED)/cmd/more_xpg4 \ 702 $(CLOSED)/cmd/od \ 703 $(CLOSED)/cmd/patch \ 704 $(CLOSED)/cmd/pax \ 705 $(CLOSED)/cmd/printf \ 706 $(CLOSED)/cmd/sed \ 707 $(CLOSED)/cmd/sed_xpg4 \ 708 $(CLOSED)/cmd/tail \ 709 $(CLOSED)/cmd/tr \ 710 $(CLOSED)/cmd/tr_xpg4 711 712sparc_MSGSUBDIRS= \ 713 fruadm \ 714 prtdscp \ 715 prtfru \ 716 vntsd \ 717 wrsmconf \ 718 wrsmstat 719 720# 721# commands that use dcgettext for localized time, LC_TIME 722# 723DCSUBDIRS= \ 724 cal \ 725 cfgadm \ 726 diff \ 727 ls \ 728 pr \ 729 ps \ 730 tar \ 731 w \ 732 who \ 733 whodo \ 734 write 735 736$(CLOSED_BUILD)DCSUBDIRS += \ 737 $(CLOSED)/cmd/pax 738 739# 740# commands that belong only to the basic security module 741# 742BSMSUBDIRS= \ 743 allocate \ 744 amt \ 745 audit \ 746 audit_warn \ 747 auditconfig \ 748 auditd \ 749 auditreduce \ 750 auditstat \ 751 praudit \ 752 bsmconv \ 753 bsmrecord \ 754 bsmunconv 755 756# 757# commands not owned by the systems group 758# 759BWOSDIRS= 760 761# 762# Commands providing manifests must offer a check target. A recursive check 763# target across all commands directories is not currently provided. 764# 765MANIFEST_TOPDIRS= \ 766 auditd \ 767 bnu \ 768 consadm \ 769 coreadm \ 770 cron \ 771 cvcd \ 772 dispadmin \ 773 drd \ 774 dumpadm \ 775 eeprom \ 776 fm \ 777 intrd \ 778 ipf \ 779 keyserv \ 780 ldapcachemgr \ 781 nscd \ 782 oplhpd \ 783 power \ 784 rexd \ 785 rpcbind \ 786 rpcsvc \ 787 saf \ 788 sf880drd \ 789 smserverd \ 790 syseventd \ 791 syslogd \ 792 utmpd \ 793 vntsd \ 794 ypcmd \ 795 zoneadmd 796 797MANIFEST_SUBDIRS= \ 798 boot/scripts \ 799 cmd-crypto/scripts \ 800 cmd-inet/usr.lib/in.chargend \ 801 cmd-inet/usr.lib/in.daytimed \ 802 cmd-inet/usr.lib/in.dhcpd \ 803 cmd-inet/usr.lib/in.discardd \ 804 cmd-inet/usr.lib/in.echod \ 805 cmd-inet/usr.lib/in.ndpd \ 806 cmd-inet/usr.lib/in.ripngd \ 807 cmd-inet/usr.lib/in.timed \ 808 cmd-inet/usr.lib/inetd \ 809 cmd-inet/usr.lib/slpd \ 810 cmd-inet/usr.sbin \ 811 cmd-inet/usr.sbin/in.ftpd \ 812 cmd-inet/usr.sbin/in.rdisc \ 813 cmd-inet/usr.sbin/in.routed \ 814 cmd-inet/usr.sbin/in.talkd \ 815 cmd-inet/usr.sbin/routeadm \ 816 dcs/sparc/sun4u \ 817 fs.d/autofs \ 818 fs.d/cachefs \ 819 fs.d/nfs/svc \ 820 gss/gssd \ 821 krb5/kadmin/server \ 822 krb5/krb5kdc \ 823 krb5/kwarn \ 824 krb5/slave \ 825 lp/cmd/lpsched \ 826 lvm/rpc.metad \ 827 lvm/rpc.metamedd \ 828 lvm/rpc.metamhd \ 829 lvm/md_monitord \ 830 lvm/metassist/sysfiles \ 831 lvm/util \ 832 picl/picld \ 833 print/gateway \ 834 print/lp \ 835 rcap/rcapd \ 836 rpcsvc/rpc.bootparamd \ 837 sendmail/lib \ 838 smartcard/daemon \ 839 ssh/etc \ 840 svc/milestone \ 841 ypcmd/yppasswd \ 842 ypcmd/ypupdated \ 843 xntpd/xntpd 844 845all := TARGET = all 846install := TARGET = install 847clean := TARGET = clean 848clobber := TARGET = clobber 849lint := TARGET = lint 850check := TARGET = check 851_msg := TARGET = _msg 852_dc := TARGET = _dc 853 854.KEEP_STATE: 855 856SUBDIRS = $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS) 857 858.PARALLEL: $(BWOSDIRS) $(SUBDIRS) $(MSGSUBDIRS) $(BSMSUBDIRS) \ 859 $(MANIFEST_SUBDIRS) 860 861all install clean clobber lint: $(FIRST_SUBDIRS) .WAIT $(SUBDIRS) $(BSMSUBDIRS) 862 863check: svccfg_check .WAIT $(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) 864 865svccfg_check: 866 @$(ECHO) "building requirements for svccfg check ..."; \ 867 (cd $(SRC)/cmd/svc/svccfg && pwd && $(MAKE) $(MFLAGS) native) 868 869# 870# The .WAIT directive works around an apparent bug in parallel make. 871# Evidently make was getting the target _msg vs. _dc confused under 872# some level of parallelization, causing some of the _dc objects 873# not to be built. 874# 875_msg: $(MSGSUBDIRS) $($(MACH)_MSGSUBDIRS) .WAIT _dc 876 877_dc: $(DCSUBDIRS) 878 879# 880# Dependencies 881# 882fs.d: fstyp 883 884$(FIRST_SUBDIRS) $(BWOSDIRS) $(SUBDIRS) $(BSMSUBDIRS) $(MANIFEST_SUBDIRS): FRC 885 @if [ -f $@/Makefile ]; then \ 886 cd $@; pwd; $(MAKE) $(TARGET); \ 887 else \ 888 true; \ 889 fi 890 891FRC: 892