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# Copyright 2021 OmniOS Community Edition (OmniOSce) Association. 33# 34 35include ../Makefile.master 36 37# 38# Note that the commands 'lp', and 'perl' are first in 39# the list, violating alphabetical order. This is because they are very 40# long-running and should be given the most wall-clock time for a 41# parallel build. 42# 43# Commands in the FIRST_SUBDIRS list are built before starting the build 44# of other commands. Currently this includes only 'isaexec' and 45# 'platexec'. This is necessary because $(ROOT)/usr/lib/isaexec or 46# $(ROOT)/usr/lib/platexec must exist when some other commands are built 47# because their 'make install' creates a hard link to one of them. 48# 49# Commands are listed one per line so that TeamWare can auto-merge most 50# changes. 51# 52 53FIRST_SUBDIRS= \ 54 isaexec \ 55 platexec 56 57COMMON_SUBDIRS= \ 58 allocate \ 59 availdevs \ 60 lp \ 61 perl \ 62 Adm \ 63 abi \ 64 adbgen \ 65 acct \ 66 acctadm \ 67 arch \ 68 asa \ 69 ast \ 70 audio \ 71 auths \ 72 autopush \ 73 awk \ 74 awk_xpg4 \ 75 backup \ 76 banner \ 77 bart \ 78 basename \ 79 bc \ 80 bdiff \ 81 beadm \ 82 bnu \ 83 boot \ 84 busstat \ 85 cal \ 86 captoinfo \ 87 cat \ 88 ccidadm \ 89 cdrw \ 90 cfgadm \ 91 checkeq \ 92 checknr \ 93 chgrp \ 94 chmod \ 95 chown \ 96 chroot \ 97 clear \ 98 clinfo \ 99 cmd-crypto \ 100 cmd-inet \ 101 col \ 102 compress \ 103 connstat \ 104 consadm \ 105 coreadm \ 106 cpio \ 107 cpc \ 108 cron \ 109 crypt \ 110 csh \ 111 csplit \ 112 ctfconvert \ 113 ctfdiff \ 114 ctfdump \ 115 ctfmerge \ 116 ctrun \ 117 ctstat \ 118 ctwatch \ 119 datadm \ 120 date \ 121 dc \ 122 dd \ 123 demangle \ 124 deroff \ 125 devfsadm \ 126 syseventd \ 127 devctl \ 128 devinfo \ 129 devmgmt \ 130 devprop \ 131 dfs.cmds \ 132 diff \ 133 diff3 \ 134 diffmk \ 135 dircmp \ 136 dirname \ 137 dis \ 138 diskinfo \ 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 iscsiadm \ 225 iscsid \ 226 iscsitsvc \ 227 isns \ 228 itadm \ 229 kbd \ 230 keyserv \ 231 killall \ 232 krb5 \ 233 kvmstat \ 234 last \ 235 lastcomm \ 236 latencytop \ 237 ldap \ 238 ldapcachemgr \ 239 lgrpinfo \ 240 line \ 241 link \ 242 dlmgmtd \ 243 listen \ 244 loadkeys \ 245 locale \ 246 localedef \ 247 lockstat \ 248 locator \ 249 lofiadm \ 250 logadm \ 251 logger \ 252 login \ 253 logins \ 254 logname \ 255 look \ 256 ls \ 257 luxadm \ 258 mach \ 259 mail \ 260 mailwrapper \ 261 mailx \ 262 make \ 263 makekey \ 264 man \ 265 mandoc \ 266 mdb \ 267 mesg \ 268 mkdir \ 269 mkfifo \ 270 mkfile \ 271 mkmsgs \ 272 mknod \ 273 mkpwdict \ 274 mktemp \ 275 modload \ 276 more \ 277 mpathadm \ 278 msgfmt \ 279 msgid \ 280 mt \ 281 mv \ 282 mvdir \ 283 ndmpadm \ 284 ndmpd \ 285 ndmpstat \ 286 netadm \ 287 netfiles \ 288 newform \ 289 newgrp \ 290 news \ 291 newtask \ 292 nice \ 293 nl \ 294 nlsadmin \ 295 nohup \ 296 nsadmin \ 297 nscd \ 298 oamuser \ 299 oawk \ 300 od \ 301 pack \ 302 pagesize \ 303 passmgmt \ 304 passwd \ 305 pathchk \ 306 pbind \ 307 pcidb \ 308 pcidr \ 309 pcieadm \ 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 raidctl \ 347 raidz_test \ 348 ramdiskadm \ 349 rcap \ 350 rcm_daemon \ 351 rctladm \ 352 refer \ 353 regcmp \ 354 renice \ 355 rm \ 356 rmdir \ 357 rmformat \ 358 rmmount \ 359 rmt \ 360 rmvolmgr \ 361 roles \ 362 rpcbind \ 363 rpcgen \ 364 rpcinfo \ 365 rpcsvc \ 366 runat \ 367 sa \ 368 saf \ 369 sasinfo \ 370 savecore \ 371 sbdadm \ 372 script \ 373 scsi \ 374 sdiff \ 375 sdpadm \ 376 sed \ 377 sendmail \ 378 setfacl \ 379 setmnt \ 380 setpgrp \ 381 sgs \ 382 sh \ 383 sleep \ 384 smbios \ 385 smbsrv \ 386 smserverd \ 387 soelim \ 388 sort \ 389 spell \ 390 split \ 391 sqlite \ 392 srchtxt \ 393 srptadm \ 394 srptsvc \ 395 ssh \ 396 stat \ 397 stmfadm \ 398 stmfproxy \ 399 stmfsvc \ 400 stmsboot \ 401 streams \ 402 strings \ 403 su \ 404 sulogin \ 405 sunpc \ 406 svc \ 407 svr4pkg \ 408 swap \ 409 sync \ 410 sysdef \ 411 syseventadm \ 412 syslogd \ 413 tabs \ 414 tail \ 415 tar \ 416 tbl \ 417 tcopy \ 418 tcpd \ 419 th_tools \ 420 tic \ 421 time \ 422 tip \ 423 touch \ 424 tput \ 425 tr \ 426 trapstat \ 427 troff \ 428 true \ 429 truss \ 430 tsol \ 431 tty \ 432 ttymon \ 433 tzreload \ 434 uadmin \ 435 ul \ 436 uname \ 437 units \ 438 unlink \ 439 unpack \ 440 userattr \ 441 users \ 442 utmp_update \ 443 utmpd \ 444 uuidgen \ 445 valtools \ 446 varpd \ 447 vgrind \ 448 vi \ 449 volcheck \ 450 volrmmount \ 451 vrrpadm \ 452 vscan \ 453 vt \ 454 vtfontcvt \ 455 w \ 456 wall \ 457 which \ 458 who \ 459 whodo \ 460 wracct \ 461 write \ 462 xargs \ 463 xstr \ 464 yes \ 465 ypcmd \ 466 yppasswd \ 467 zdb \ 468 zdump \ 469 zfs \ 470 zhack \ 471 zic \ 472 zinject \ 473 zlogin \ 474 zoneadm \ 475 zoneadmd \ 476 zonecfg \ 477 zonename \ 478 zpool \ 479 zlook \ 480 zonestat \ 481 zstreamdump \ 482 ztest 483 484i386_SUBDIRS= \ 485 acpi \ 486 acpihpd \ 487 addbadsec \ 488 ahciem \ 489 amdzen \ 490 bhyve \ 491 bhyvectl \ 492 biosdev \ 493 cxgbetool \ 494 diskscan \ 495 nvmeadm \ 496 pptadm \ 497 rdmsr \ 498 rsrvrctl \ 499 rtc \ 500 ucodeadm \ 501 xhci \ 502 xvm 503 504sparc_SUBDIRS= \ 505 dcs \ 506 device_remap \ 507 drd \ 508 fruadm \ 509 ldmad \ 510 oplhpd \ 511 prtdscp \ 512 prtfru \ 513 scadm \ 514 sckmd \ 515 sf880drd \ 516 virtinfo \ 517 vntsd 518 519# 520# Commands that are messaged. Note that 'lp' comes first 521# (see previous comment about 'lp'.) 522# 523MSGSUBDIRS= \ 524 lp \ 525 abi \ 526 acctadm \ 527 allocate \ 528 asa \ 529 ast \ 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 last \ 625 ldap \ 626 ldapcachemgr \ 627 lgrpinfo \ 628 locale \ 629 lofiadm \ 630 logadm \ 631 logger \ 632 logins \ 633 ls \ 634 luxadm \ 635 mailx \ 636 make \ 637 man \ 638 mesg \ 639 mkdir \ 640 mkpwdict \ 641 mktemp \ 642 more \ 643 mpathadm \ 644 msgfmt \ 645 mv \ 646 ndmpadm \ 647 ndmpstat \ 648 newgrp \ 649 newtask \ 650 nice \ 651 nohup \ 652 oawk \ 653 pack \ 654 passwd \ 655 passmgmt \ 656 pathchk \ 657 pfexec \ 658 pg \ 659 pgrep \ 660 picl \ 661 pools \ 662 power \ 663 pr \ 664 praudit \ 665 print \ 666 profiles \ 667 projadd \ 668 projects \ 669 prstat \ 670 prtdiag \ 671 ps \ 672 psrinfo \ 673 ptools \ 674 pwconv \ 675 pwd \ 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 sasinfo \ 690 sbdadm \ 691 scadm \ 692 script \ 693 scsi \ 694 sdiff \ 695 sdpadm \ 696 sgs \ 697 sh \ 698 smbsrv \ 699 sort \ 700 split \ 701 srptadm \ 702 stat \ 703 stmfadm \ 704 stmsboot \ 705 strings \ 706 su \ 707 svc \ 708 svr4pkg \ 709 swap \ 710 syseventadm \ 711 syseventd \ 712 tabs \ 713 tar \ 714 tbl \ 715 time \ 716 touch \ 717 tput \ 718 troff \ 719 tsol \ 720 tty \ 721 ttymon \ 722 tzreload \ 723 ul \ 724 uname \ 725 units \ 726 unlink \ 727 unpack \ 728 userattr \ 729 valtools \ 730 vgrind \ 731 vi \ 732 volcheck \ 733 volrmmount \ 734 vrrpadm \ 735 vscan \ 736 w \ 737 who \ 738 whodo \ 739 wracct \ 740 write \ 741 xargs \ 742 yppasswd \ 743 zdump \ 744 zfs \ 745 zic \ 746 zlogin \ 747 zoneadm \ 748 zoneadmd \ 749 zonecfg \ 750 zonename \ 751 zpool \ 752 zonestat 753 754sparc_MSGSUBDIRS= \ 755 fruadm \ 756 prtdscp \ 757 prtfru \ 758 virtinfo \ 759 vntsd 760 761i386_MSGSUBDIRS= \ 762 rdmsr \ 763 ucodeadm 764 765# 766# commands that use dcgettext for localized time, LC_TIME 767# 768DCSUBDIRS= \ 769 cal \ 770 cfgadm \ 771 diff \ 772 ls \ 773 pr \ 774 ps \ 775 tar \ 776 w \ 777 who \ 778 whodo \ 779 write 780 781# 782# commands that belong only to audit. 783# 784AUDITSUBDIRS= \ 785 amt \ 786 audit \ 787 audit_warn \ 788 auditconfig \ 789 auditd \ 790 auditrecord \ 791 auditreduce \ 792 auditset \ 793 auditstat \ 794 praudit 795 796all := TARGET = all 797install := TARGET = install 798clean := TARGET = clean 799clobber := TARGET = clobber 800_msg := TARGET = _msg 801_dc := TARGET = _dc 802 803.KEEP_STATE: 804 805SUBDIRS = $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS) 806 807.PARALLEL: $(SUBDIRS) $(MSGSUBDIRS) $(AUDITSUBDIRS) 808 809all install clean clobber: $(FIRST_SUBDIRS) .WAIT $(SUBDIRS) \ 810 $(AUDITSUBDIRS) 811 812# 813# Manifests cannot be checked in parallel, because we are using 814# the global repository that is in $(SRC)/cmd/svc/seed/global.db. 815# For this reason, to avoid .PARALLEL and .NO_PARALLEL conflicts, 816# we spawn off a sub-make to perform the non-parallel 'make check' 817# 818check: 819 $(MAKE) -f Makefile.check check 820 821# 822# The .WAIT directive works around an apparent bug in parallel make. 823# Evidently make was getting the target _msg vs. _dc confused under 824# some level of parallelization, causing some of the _dc objects 825# not to be built. 826# 827_msg: $(MSGSUBDIRS) $($(MACH)_MSGSUBDIRS) .WAIT _dc 828 829_dc: $(DCSUBDIRS) 830 831# 832# Dependencies 833# 834fs.d: fstyp 835ast: isaexec 836print: lp 837fmt: mailx 838 839$(FIRST_SUBDIRS) $(SUBDIRS) $(AUDITSUBDIRS): FRC 840 cd $@; pwd; $(MAKE) $(TARGET) 841 842FRC: 843