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