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 filesync \ 169 file \ 170 find \ 171 flowadm \ 172 flowstat \ 173 fm \ 174 fmt \ 175 fmthard \ 176 fmtmsg \ 177 fold \ 178 format \ 179 fs.d \ 180 fstyp \ 181 fuser \ 182 fwflash \ 183 gcore \ 184 gencat \ 185 geniconvtbl \ 186 genmsg \ 187 getconf \ 188 getdevpolicy \ 189 getent \ 190 getfacl \ 191 getmajor \ 192 getopt \ 193 gettext \ 194 gettxt \ 195 grep \ 196 groups \ 197 growfs \ 198 grpck \ 199 gss \ 200 hal \ 201 halt \ 202 head \ 203 hostid \ 204 hostname \ 205 hotplug \ 206 hotplugd \ 207 ibd_upgrade \ 208 iconv \ 209 id \ 210 idmap \ 211 infocmp \ 212 init \ 213 initpkg \ 214 install.d \ 215 intrd \ 216 intrstat \ 217 ipcrm \ 218 ipcs \ 219 ipdadm \ 220 ipf \ 221 isainfo \ 222 isalist \ 223 iscsiadm \ 224 iscsid \ 225 iscsitsvc \ 226 isns \ 227 itadm \ 228 kbd \ 229 keyserv \ 230 killall \ 231 krb5 \ 232 ktest \ 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 spd \ 390 spell \ 391 split \ 392 sqlite \ 393 srchtxt \ 394 srptadm \ 395 srptsvc \ 396 ssh \ 397 stat \ 398 stmfadm \ 399 stmfproxy \ 400 stmfsvc \ 401 stmsboot \ 402 streams \ 403 strings \ 404 su \ 405 sulogin \ 406 sunpc \ 407 svc \ 408 svr4pkg \ 409 swap \ 410 sync \ 411 sysdef \ 412 syseventadm \ 413 syslogd \ 414 tabs \ 415 tail \ 416 tar \ 417 tbl \ 418 tcopy \ 419 tcpd \ 420 th_tools \ 421 tic \ 422 time \ 423 tip \ 424 touch \ 425 tput \ 426 tr \ 427 trapstat \ 428 troff \ 429 true \ 430 truss \ 431 tsol \ 432 tty \ 433 ttymon \ 434 tzreload \ 435 uadmin \ 436 ul \ 437 uname \ 438 units \ 439 unlink \ 440 unpack \ 441 userattr \ 442 users \ 443 utmp_update \ 444 utmpd \ 445 uuidgen \ 446 valtools \ 447 varpd \ 448 vgrind \ 449 vi \ 450 volcheck \ 451 volrmmount \ 452 vrrpadm \ 453 vscan \ 454 vt \ 455 vtfontcvt \ 456 w \ 457 wall \ 458 which \ 459 who \ 460 whodo \ 461 wracct \ 462 write \ 463 xargs \ 464 xstr \ 465 yes \ 466 ypcmd \ 467 yppasswd \ 468 zdb \ 469 zdump \ 470 zfs \ 471 zhack \ 472 zic \ 473 zinject \ 474 zlogin \ 475 zoneadm \ 476 zoneadmd \ 477 zonecfg \ 478 zonename \ 479 zpool \ 480 zlook \ 481 zonestat \ 482 zstreamdump \ 483 ztest 484 485i386_SUBDIRS= \ 486 acpi \ 487 acpihpd \ 488 addbadsec \ 489 ahciem \ 490 amdzen \ 491 bhyve \ 492 bhyvectl \ 493 biosdev \ 494 cxgbetool \ 495 diskscan \ 496 ficl \ 497 nvmeadm \ 498 pptadm \ 499 rdmsr \ 500 rsrvrctl \ 501 rtc \ 502 ucodeadm \ 503 xhci \ 504 xvm 505 506sparc_SUBDIRS= \ 507 dcs \ 508 device_remap \ 509 drd \ 510 fruadm \ 511 ldmad \ 512 oplhpd \ 513 prtdscp \ 514 prtfru \ 515 scadm \ 516 sckmd \ 517 sf880drd \ 518 virtinfo \ 519 vntsd 520 521# 522# Commands that are messaged. Note that 'lp' comes first 523# (see previous comment about 'lp'.) 524# 525MSGSUBDIRS= \ 526 lp \ 527 abi \ 528 acctadm \ 529 allocate \ 530 asa \ 531 ast \ 532 audio \ 533 audit \ 534 auditconfig \ 535 auditd \ 536 auditrecord \ 537 auditset \ 538 auths \ 539 autopush \ 540 awk \ 541 awk_xpg4 \ 542 backup \ 543 banner \ 544 bart \ 545 basename \ 546 beadm \ 547 bnu \ 548 busstat \ 549 cal \ 550 cat \ 551 cdrw \ 552 cfgadm \ 553 checkeq \ 554 checknr \ 555 chgrp \ 556 chmod \ 557 chown \ 558 cmd-crypto \ 559 cmd-inet \ 560 col \ 561 compress \ 562 connstat \ 563 consadm \ 564 coreadm \ 565 cpio \ 566 cpc \ 567 cron \ 568 csh \ 569 csplit \ 570 ctrun \ 571 ctstat \ 572 ctwatch \ 573 datadm \ 574 date \ 575 dc \ 576 dcs \ 577 dd \ 578 deroff \ 579 devfsadm \ 580 dfs.cmds \ 581 diff \ 582 diffmk \ 583 dladm \ 584 dlstat \ 585 du \ 586 dumpcs \ 587 ed \ 588 eject \ 589 env \ 590 eqn \ 591 expand \ 592 expr \ 593 fcinfo \ 594 file \ 595 filesync \ 596 find \ 597 flowadm \ 598 flowstat \ 599 fm \ 600 fold \ 601 fs.d \ 602 fwflash \ 603 geniconvtbl \ 604 genmsg \ 605 getconf \ 606 getent \ 607 gettext \ 608 gettxt \ 609 grep \ 610 grpck \ 611 gss \ 612 halt \ 613 head \ 614 hostname \ 615 hotplug \ 616 iconv \ 617 id \ 618 idmap \ 619 isaexec \ 620 iscsiadm \ 621 iscsid \ 622 isns \ 623 itadm \ 624 kbd \ 625 krb5 \ 626 last \ 627 ldap \ 628 ldapcachemgr \ 629 lgrpinfo \ 630 locale \ 631 lofiadm \ 632 logadm \ 633 logger \ 634 logins \ 635 ls \ 636 luxadm \ 637 mailx \ 638 make \ 639 man \ 640 mesg \ 641 mkdir \ 642 mkpwdict \ 643 mktemp \ 644 more \ 645 mpathadm \ 646 msgfmt \ 647 mv \ 648 ndmpadm \ 649 ndmpstat \ 650 newgrp \ 651 newtask \ 652 nice \ 653 nohup \ 654 oawk \ 655 pack \ 656 passwd \ 657 passmgmt \ 658 pathchk \ 659 pfexec \ 660 pg \ 661 pgrep \ 662 picl \ 663 pools \ 664 power \ 665 pr \ 666 praudit \ 667 print \ 668 profiles \ 669 projadd \ 670 projects \ 671 prstat \ 672 prtdiag \ 673 ps \ 674 psrinfo \ 675 ptools \ 676 pwconv \ 677 pwd \ 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 smbsrv \ 701 sort \ 702 split \ 703 srptadm \ 704 stat \ 705 stmfadm \ 706 stmsboot \ 707 strings \ 708 su \ 709 svc \ 710 svr4pkg \ 711 swap \ 712 syseventadm \ 713 syseventd \ 714 tabs \ 715 tar \ 716 tbl \ 717 time \ 718 touch \ 719 tput \ 720 troff \ 721 tsol \ 722 tty \ 723 ttymon \ 724 tzreload \ 725 ul \ 726 uname \ 727 units \ 728 unlink \ 729 unpack \ 730 userattr \ 731 valtools \ 732 vgrind \ 733 vi \ 734 volcheck \ 735 volrmmount \ 736 vrrpadm \ 737 vscan \ 738 w \ 739 who \ 740 whodo \ 741 wracct \ 742 write \ 743 xargs \ 744 yppasswd \ 745 zdump \ 746 zfs \ 747 zic \ 748 zlogin \ 749 zoneadm \ 750 zoneadmd \ 751 zonecfg \ 752 zonename \ 753 zpool \ 754 zonestat 755 756sparc_MSGSUBDIRS= \ 757 fruadm \ 758 prtdscp \ 759 prtfru \ 760 virtinfo \ 761 vntsd 762 763i386_MSGSUBDIRS= \ 764 rdmsr \ 765 ucodeadm 766 767# 768# commands that use dcgettext for localized time, LC_TIME 769# 770DCSUBDIRS= \ 771 cal \ 772 cfgadm \ 773 diff \ 774 ls \ 775 pr \ 776 ps \ 777 tar \ 778 w \ 779 who \ 780 whodo \ 781 write 782 783# 784# commands that belong only to audit. 785# 786AUDITSUBDIRS= \ 787 amt \ 788 audit \ 789 audit_warn \ 790 auditconfig \ 791 auditd \ 792 auditrecord \ 793 auditreduce \ 794 auditset \ 795 auditstat \ 796 praudit 797 798all := TARGET = all 799install := TARGET = install 800clean := TARGET = clean 801clobber := TARGET = clobber 802_msg := TARGET = _msg 803_dc := TARGET = _dc 804 805.KEEP_STATE: 806 807SUBDIRS = $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS) 808 809.PARALLEL: $(SUBDIRS) $(MSGSUBDIRS) $(AUDITSUBDIRS) 810 811all install clean clobber: $(FIRST_SUBDIRS) .WAIT $(SUBDIRS) \ 812 $(AUDITSUBDIRS) 813 814# 815# Manifests cannot be checked in parallel, because we are using 816# the global repository that is in $(SRC)/cmd/svc/seed/global.db. 817# For this reason, to avoid .PARALLEL and .NO_PARALLEL conflicts, 818# we spawn off a sub-make to perform the non-parallel 'make check' 819# 820check: 821 $(MAKE) -f Makefile.check check 822 823# 824# The .WAIT directive works around an apparent bug in parallel make. 825# Evidently make was getting the target _msg vs. _dc confused under 826# some level of parallelization, causing some of the _dc objects 827# not to be built. 828# 829_msg: $(MSGSUBDIRS) $($(MACH)_MSGSUBDIRS) .WAIT _dc 830 831_dc: $(DCSUBDIRS) 832 833# 834# Dependencies 835# 836fs.d: fstyp 837ast: isaexec 838print: lp 839fmt: mailx 840 841$(FIRST_SUBDIRS) $(SUBDIRS) $(AUDITSUBDIRS): FRC 842 cd $@; pwd; $(MAKE) $(TARGET) 843 844FRC: 845