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