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 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# Copyright 2016 Nexenta Systems, Inc. 30# 31 32include ../Makefile.master 33 34# 35# Note that the commands 'lp', and 'perl' are first in 36# the list, violating alphabetical order. This is because they are very 37# long-running and should be given the most wall-clock time for a 38# parallel build. 39# 40# Commands in the FIRST_SUBDIRS list are built before starting the build 41# of other commands. Currently this includes only 'isaexec' and 42# 'platexec'. This is necessary because $(ROOT)/usr/lib/isaexec or 43# $(ROOT)/usr/lib/platexec must exist when some other commands are built 44# because their 'make install' creates a hard link to one of them. 45# 46# Commands are listed one per line so that TeamWare can auto-merge most 47# changes. 48# 49 50FIRST_SUBDIRS= \ 51 isaexec \ 52 platexec 53 54COMMON_SUBDIRS= \ 55 allocate \ 56 availdevs \ 57 lp \ 58 perl \ 59 Adm \ 60 abi \ 61 adbgen \ 62 acct \ 63 acctadm \ 64 arch \ 65 asa \ 66 ast \ 67 audio \ 68 auths \ 69 autopush \ 70 avs \ 71 awk \ 72 awk_xpg4 \ 73 backup \ 74 banner \ 75 bart \ 76 basename \ 77 bc \ 78 bdiff \ 79 beadm \ 80 bnu \ 81 boot \ 82 busstat \ 83 cal \ 84 calendar \ 85 captoinfo \ 86 cat \ 87 cdrw \ 88 cfgadm \ 89 checkeq \ 90 checknr \ 91 chgrp \ 92 chmod \ 93 chown \ 94 chroot \ 95 clear \ 96 clinfo \ 97 cmd-crypto \ 98 cmd-inet \ 99 col \ 100 compress \ 101 consadm \ 102 coreadm \ 103 cpio \ 104 cpc \ 105 cron \ 106 crypt \ 107 csh \ 108 csplit \ 109 ctrun \ 110 ctstat \ 111 ctwatch \ 112 datadm \ 113 date \ 114 dc \ 115 dd \ 116 deroff \ 117 devfsadm \ 118 syseventd \ 119 devctl \ 120 devinfo \ 121 devmgmt \ 122 devprop \ 123 dfs.cmds \ 124 diff \ 125 diff3 \ 126 diffmk \ 127 dircmp \ 128 dirname \ 129 dis \ 130 diskmgtd \ 131 dispadmin \ 132 dladm \ 133 dlstat \ 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 fcoesvc \ 156 fdetach \ 157 fdformat \ 158 fdisk \ 159 ficl \ 160 filesync \ 161 fgrep \ 162 file \ 163 find \ 164 flowadm \ 165 flowstat \ 166 fm \ 167 fmt \ 168 fmthard \ 169 fmtmsg \ 170 fold \ 171 format \ 172 fs.d \ 173 fstyp \ 174 fuser \ 175 fwflash \ 176 gcore \ 177 gencat \ 178 geniconvtbl \ 179 genmsg \ 180 getconf \ 181 getdevpolicy \ 182 getent \ 183 getfacl \ 184 getmajor \ 185 getopt \ 186 gettext \ 187 gettxt \ 188 grep \ 189 grep_xpg4 \ 190 groups \ 191 growfs \ 192 grpck \ 193 gss \ 194 hal \ 195 halt \ 196 head \ 197 hostid \ 198 hostname \ 199 hotplug \ 200 hotplugd \ 201 hwdata \ 202 ibd_upgrade \ 203 iconv \ 204 id \ 205 idmap \ 206 infocmp \ 207 init \ 208 initpkg \ 209 install.d \ 210 intrd \ 211 intrstat \ 212 ipcrm \ 213 ipcs \ 214 ipdadm \ 215 ipf \ 216 isainfo \ 217 isalist \ 218 itutools \ 219 iscsiadm \ 220 iscsid \ 221 iscsitsvc \ 222 isns \ 223 itadm \ 224 kbd \ 225 keyserv \ 226 killall \ 227 krb5 \ 228 ksh \ 229 kvmstat \ 230 last \ 231 lastcomm \ 232 latencytop \ 233 ldap \ 234 ldapcachemgr \ 235 lgrpinfo \ 236 line \ 237 link \ 238 dlmgmtd \ 239 listen \ 240 loadkeys \ 241 locale \ 242 localedef \ 243 lockstat \ 244 locator \ 245 lofiadm \ 246 logadm \ 247 logger \ 248 login \ 249 logins \ 250 look \ 251 ls \ 252 luxadm \ 253 mach \ 254 mail \ 255 mailwrapper \ 256 mailx \ 257 make \ 258 makekey \ 259 man \ 260 mandoc \ 261 mdb \ 262 mesg \ 263 mkdir \ 264 mkfifo \ 265 mkfile \ 266 mkmsgs \ 267 mknod \ 268 mkpwdict \ 269 mktemp \ 270 modload \ 271 more \ 272 mpathadm \ 273 msgfmt \ 274 msgid \ 275 mt \ 276 mv \ 277 mvdir \ 278 ndmpadm \ 279 ndmpd \ 280 ndmpstat \ 281 netadm \ 282 netfiles \ 283 newform \ 284 newgrp \ 285 news \ 286 newtask \ 287 nice \ 288 nl \ 289 nlsadmin \ 290 nohup \ 291 nsadmin \ 292 nscd \ 293 oamuser \ 294 oawk \ 295 od \ 296 pack \ 297 pagesize \ 298 passmgmt \ 299 passwd \ 300 pathchk \ 301 pbind \ 302 pcidr \ 303 pcitool \ 304 pfexec \ 305 pfexecd \ 306 pginfo \ 307 pgstat \ 308 pgrep \ 309 picl \ 310 plimit \ 311 policykit \ 312 pools \ 313 power \ 314 powertop \ 315 ppgsz \ 316 pg \ 317 plockstat \ 318 pr \ 319 prctl \ 320 print \ 321 printf \ 322 priocntl \ 323 profiles \ 324 projadd \ 325 projects \ 326 prstat \ 327 prtconf \ 328 prtdiag \ 329 prtvtoc \ 330 ps \ 331 psradm \ 332 psrinfo \ 333 psrset \ 334 ptools \ 335 pwck \ 336 pwconv \ 337 pwd \ 338 pyzfs \ 339 raidctl \ 340 ramdiskadm \ 341 rcap \ 342 rcm_daemon \ 343 rctladm \ 344 refer \ 345 regcmp \ 346 renice \ 347 rexd \ 348 rm \ 349 rmdir \ 350 rmformat \ 351 rmmount \ 352 rmt \ 353 rmvolmgr \ 354 roles \ 355 rpcbind \ 356 rpcgen \ 357 rpcinfo \ 358 rpcsvc \ 359 runat \ 360 sa \ 361 saf \ 362 sasinfo \ 363 savecore \ 364 sbdadm \ 365 script \ 366 scsi \ 367 sdiff \ 368 sdpadm \ 369 sed \ 370 sendmail \ 371 setfacl \ 372 setmnt \ 373 setpgrp \ 374 setuname \ 375 sgs \ 376 sh \ 377 shcomp \ 378 smbios \ 379 smbsrv \ 380 smserverd \ 381 soelim \ 382 sort \ 383 spell \ 384 split \ 385 sqlite \ 386 srchtxt \ 387 srptadm \ 388 srptsvc \ 389 ssh \ 390 stat \ 391 stmfadm \ 392 stmfproxy \ 393 stmfsvc \ 394 stmsboot \ 395 streams \ 396 strings \ 397 su \ 398 sulogin \ 399 sunpc \ 400 svc \ 401 svr4pkg \ 402 swap \ 403 sync \ 404 sysdef \ 405 syseventadm \ 406 syslogd \ 407 tabs \ 408 tail \ 409 tar \ 410 tbl \ 411 tcopy \ 412 tcpd \ 413 terminfo \ 414 th_tools \ 415 tic \ 416 time \ 417 tip \ 418 tnf \ 419 touch \ 420 tput \ 421 tr \ 422 trapstat \ 423 troff \ 424 true \ 425 truss \ 426 tsol \ 427 tty \ 428 ttymon \ 429 tzreload \ 430 uadmin \ 431 ul \ 432 uname \ 433 units \ 434 unlink \ 435 unpack \ 436 userattr \ 437 users \ 438 utmp_update \ 439 utmpd \ 440 uuidgen \ 441 valtools \ 442 vgrind \ 443 vi \ 444 volcheck \ 445 volrmmount \ 446 vrrpadm \ 447 vscan \ 448 vt \ 449 w \ 450 wall \ 451 which \ 452 who \ 453 whodo \ 454 wracct \ 455 write \ 456 xargs \ 457 xstr \ 458 yes \ 459 ypcmd \ 460 yppasswd \ 461 zdb \ 462 zdump \ 463 zfs \ 464 zhack \ 465 zic \ 466 zinject \ 467 zlogin \ 468 zoneadm \ 469 zoneadmd \ 470 zonecfg \ 471 zonename \ 472 zpool \ 473 zlook \ 474 zonestat \ 475 zstreamdump \ 476 ztest 477 478i386_SUBDIRS= \ 479 acpi \ 480 acpihpd \ 481 addbadsec \ 482 biosdev \ 483 diskscan \ 484 lms \ 485 rtc \ 486 ucodeadm \ 487 xvm 488 489sparc_SUBDIRS= \ 490 cvcd \ 491 dcs \ 492 device_remap \ 493 drd \ 494 fruadm \ 495 ldmad \ 496 oplhpd \ 497 prtdscp \ 498 prtfru \ 499 scadm \ 500 sckmd \ 501 sf880drd \ 502 virtinfo \ 503 vntsd 504 505# 506# Commands that are messaged. Note that 'lp' comes first 507# (see previous comment about 'lp'.) 508# 509MSGSUBDIRS= \ 510 lp \ 511 abi \ 512 acctadm \ 513 allocate \ 514 asa \ 515 audio \ 516 audit \ 517 auditconfig \ 518 auditd \ 519 auditrecord \ 520 auditset \ 521 auths \ 522 autopush \ 523 avs \ 524 awk \ 525 awk_xpg4 \ 526 backup \ 527 banner \ 528 bart \ 529 basename \ 530 beadm \ 531 bnu \ 532 busstat \ 533 cal \ 534 cat \ 535 cdrw \ 536 cfgadm \ 537 checkeq \ 538 checknr \ 539 chgrp \ 540 chmod \ 541 chown \ 542 cmd-crypto \ 543 cmd-inet \ 544 col \ 545 compress \ 546 consadm \ 547 coreadm \ 548 cpio \ 549 cpc \ 550 cron \ 551 csh \ 552 csplit \ 553 ctrun \ 554 ctstat \ 555 ctwatch \ 556 datadm \ 557 date \ 558 dc \ 559 dcs \ 560 dd \ 561 deroff \ 562 devfsadm \ 563 dfs.cmds \ 564 diff \ 565 diffmk \ 566 dladm \ 567 dlstat \ 568 du \ 569 dumpcs \ 570 ed \ 571 eject \ 572 env \ 573 eqn \ 574 expand \ 575 expr \ 576 fcinfo \ 577 fgrep \ 578 file \ 579 filesync \ 580 find \ 581 flowadm \ 582 flowstat \ 583 fm \ 584 fold \ 585 fs.d \ 586 fwflash \ 587 geniconvtbl \ 588 genmsg \ 589 getconf \ 590 getent \ 591 gettext \ 592 gettxt \ 593 grep \ 594 grep_xpg4 \ 595 grpck \ 596 gss \ 597 halt \ 598 head \ 599 hostname \ 600 hotplug \ 601 iconv \ 602 id \ 603 idmap \ 604 isaexec \ 605 iscsiadm \ 606 iscsid \ 607 isns \ 608 itadm \ 609 kbd \ 610 krb5 \ 611 ksh \ 612 last \ 613 ldap \ 614 ldapcachemgr \ 615 lgrpinfo \ 616 locale \ 617 lofiadm \ 618 logadm \ 619 logger \ 620 logins \ 621 ls \ 622 luxadm \ 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