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