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