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# 24# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 25# Use is subject to license terms. 26# 27# ident "%Z%%M% %I% %E% SMI" 28 29include ../Makefile.master 30 31# 32# Note that the commands 'agents', 'lp', 'perl', and 'man' 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 agents \ 53 availdevs \ 54 lp \ 55 perl \ 56 man \ 57 Adm \ 58 abi \ 59 adbgen \ 60 acct \ 61 acctadm \ 62 arch \ 63 asa \ 64 audio \ 65 auths \ 66 autopush \ 67 awk \ 68 awk_xpg4 \ 69 backup \ 70 banner \ 71 bart \ 72 basename \ 73 bc \ 74 bdiff \ 75 bfs \ 76 bnu \ 77 boot \ 78 busstat \ 79 cal \ 80 calendar \ 81 captoinfo \ 82 cat \ 83 cdrw \ 84 cfgadm \ 85 checkeq \ 86 checknr \ 87 chgrp \ 88 chmod \ 89 chown \ 90 chroot \ 91 cksum \ 92 clear \ 93 clinfo \ 94 cmd-crypto \ 95 cmd-inet \ 96 cmp \ 97 col \ 98 comm \ 99 compress \ 100 consadm \ 101 coreadm \ 102 cpio \ 103 cpc \ 104 cron \ 105 crypt \ 106 csh \ 107 csplit \ 108 ctrun \ 109 ctstat \ 110 ctwatch \ 111 cut \ 112 datadm \ 113 date \ 114 dc \ 115 dd \ 116 deroff \ 117 des \ 118 devfsadm \ 119 syseventd \ 120 devctl \ 121 devinfo \ 122 devmgmt \ 123 dfs.cmds \ 124 diff \ 125 diff3 \ 126 diffmk \ 127 dircmp \ 128 dirname \ 129 dis \ 130 diskmgtd \ 131 dispadmin \ 132 dladm \ 133 dmesg \ 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 fdetach \ 153 fdformat \ 154 fdisk \ 155 filesync \ 156 fgrep \ 157 file \ 158 find \ 159 fm \ 160 fmli \ 161 fmt \ 162 fmthard \ 163 fmtmsg \ 164 fold \ 165 format \ 166 fs.d \ 167 fstyp \ 168 fuser \ 169 gcore \ 170 gencat \ 171 geniconvtbl \ 172 genmsg \ 173 getconf \ 174 getdevpolicy \ 175 getent \ 176 getfacl \ 177 getmajor \ 178 getopt \ 179 gettext \ 180 gettxt \ 181 graph \ 182 grep \ 183 grep_xpg4 \ 184 groups \ 185 grpck \ 186 gss \ 187 hal \ 188 halt \ 189 head \ 190 hostid \ 191 hostname \ 192 hwdata \ 193 id \ 194 idmap \ 195 infocmp \ 196 init \ 197 initpkg \ 198 install.d \ 199 intrd \ 200 intrstat \ 201 ipcrm \ 202 ipcs \ 203 ipf \ 204 isainfo \ 205 isalist \ 206 iscsi \ 207 java \ 208 join \ 209 kbd \ 210 keyserv \ 211 killall \ 212 krb5 \ 213 kstat \ 214 last \ 215 lastcomm \ 216 ldap \ 217 ldapcachemgr \ 218 lgrpinfo \ 219 line \ 220 link \ 221 listen \ 222 loadkeys \ 223 locale \ 224 lockstat \ 225 locator \ 226 lofiadm \ 227 logadm \ 228 logger \ 229 login \ 230 logins \ 231 logname \ 232 look \ 233 ls \ 234 lvm \ 235 mach \ 236 machid \ 237 mail \ 238 mailx \ 239 makekey \ 240 mdb \ 241 mesg \ 242 mkdir \ 243 mkfifo \ 244 mkfile \ 245 mkmsgs \ 246 mknod \ 247 mkpwdict \ 248 mktemp \ 249 modload \ 250 more \ 251 msgfmt \ 252 msgid \ 253 mt \ 254 mv \ 255 mvdir \ 256 netadm \ 257 netfiles \ 258 newform \ 259 newgrp \ 260 news \ 261 newtask \ 262 nice \ 263 nispasswd \ 264 nl \ 265 nlsadmin \ 266 nohup \ 267 nsadmin \ 268 nscd \ 269 oamuser \ 270 oawk \ 271 openssl \ 272 pack \ 273 pagesize \ 274 passmgmt \ 275 passwd \ 276 paste \ 277 pathchk \ 278 pbind \ 279 pcidr \ 280 pcmciad \ 281 pfexec \ 282 pgrep \ 283 picl \ 284 plimit \ 285 policykit \ 286 pools \ 287 power \ 288 ppgsz \ 289 pg \ 290 plockstat \ 291 pr \ 292 prctl \ 293 print \ 294 priocntl \ 295 profiles \ 296 projadd \ 297 projects \ 298 prstat \ 299 prtconf \ 300 prtdiag \ 301 prtvtoc \ 302 ps \ 303 psradm \ 304 psrinfo \ 305 psrset \ 306 ptools \ 307 pwck \ 308 pwconv \ 309 pwd \ 310 raidctl \ 311 ramdiskadm \ 312 rcap \ 313 rcm_daemon \ 314 rctladm \ 315 refer \ 316 regcmp \ 317 renice \ 318 rexd \ 319 rm \ 320 rmdir \ 321 rmformat \ 322 rmmount \ 323 rmt \ 324 rmvolmgr \ 325 roles \ 326 rpcbind \ 327 rpcgen \ 328 rpcinfo \ 329 rpcsvc \ 330 rpld \ 331 runat \ 332 sa \ 333 saf \ 334 savecore \ 335 script \ 336 sdiff \ 337 sdpadm \ 338 sendmail \ 339 setfacl \ 340 setmnt \ 341 setpgrp \ 342 setuname \ 343 sgs \ 344 sh \ 345 sleep \ 346 smbios \ 347 smserverd \ 348 soelim \ 349 sort \ 350 spell \ 351 spline \ 352 split \ 353 sqlite \ 354 srchtxt \ 355 ssh \ 356 stat \ 357 stmsboot \ 358 streams \ 359 strings \ 360 su \ 361 sulogin \ 362 sum \ 363 sunpc \ 364 svc \ 365 swap \ 366 sync \ 367 sysdef \ 368 syseventadm \ 369 syslogd \ 370 tabs \ 371 tar \ 372 tbl \ 373 tcopy \ 374 tcpd \ 375 tee \ 376 terminfo \ 377 th_tools \ 378 tic \ 379 time \ 380 tip \ 381 tnf \ 382 touch \ 383 tplot \ 384 tput \ 385 trapstat \ 386 troff \ 387 true \ 388 truss \ 389 tty \ 390 ttymon \ 391 uadmin \ 392 ul \ 393 uname \ 394 uniq \ 395 units \ 396 unlink \ 397 unpack \ 398 users \ 399 utmp_update \ 400 utmpd \ 401 valtools \ 402 vgrind \ 403 vi \ 404 volcheck \ 405 volrmmount \ 406 w \ 407 wall \ 408 wbem \ 409 wc \ 410 which \ 411 who \ 412 whodo \ 413 wracct \ 414 write \ 415 xntpd \ 416 xargs \ 417 xstr \ 418 yes \ 419 ypcmd \ 420 yppasswd \ 421 zdb \ 422 zdump \ 423 zfs \ 424 zic \ 425 zinject \ 426 zlogin \ 427 zoneadm \ 428 zoneadmd \ 429 zonecfg \ 430 zonename \ 431 zpool \ 432 ztest 433 434$(CLOSED_BUILD)COMMON_SUBDIRS += \ 435 $(CLOSED)/cmd/dodatadm \ 436 $(CLOSED)/cmd/fwflash \ 437 $(CLOSED)/cmd/iconv \ 438 $(CLOSED)/cmd/ksh \ 439 $(CLOSED)/cmd/llc2 \ 440 $(CLOSED)/cmd/localedef \ 441 $(CLOSED)/cmd/more_xpg4 \ 442 $(CLOSED)/cmd/mtst \ 443 $(CLOSED)/cmd/od \ 444 $(CLOSED)/cmd/patch \ 445 $(CLOSED)/cmd/pax \ 446 $(CLOSED)/cmd/pcitool \ 447 $(CLOSED)/cmd/printf \ 448 $(CLOSED)/cmd/sed \ 449 $(CLOSED)/cmd/sed_xpg4 \ 450 $(CLOSED)/cmd/smartcard \ 451 $(CLOSED)/cmd/tail \ 452 $(CLOSED)/cmd/tr \ 453 $(CLOSED)/cmd/tr_xpg4 454 455i386_SUBDIRS= \ 456 addbadsec \ 457 biosdev \ 458 diskscan \ 459 OWconfig \ 460 rtc \ 461 ucodeadm 462 463sparc_SUBDIRS= \ 464 cvcd \ 465 dcs \ 466 drd \ 467 fruadm \ 468 oplhpd \ 469 prtdscp \ 470 prtfru \ 471 scadm \ 472 sckmd \ 473 sf880drd \ 474 vntsd \ 475 wrsmconf \ 476 wrsmstat 477 478# 479# Commands that are messaged. Note that 'lp' and 'man' come first 480# (see previous comment about 'lp' and 'man'). 481# 482MSGSUBDIRS= \ 483 lp \ 484 man \ 485 abi \ 486 acctadm \ 487 allocate \ 488 asa \ 489 audio \ 490 audit \ 491 auditd \ 492 auths \ 493 autopush \ 494 awk \ 495 awk_xpg4 \ 496 backup \ 497 banner \ 498 bart \ 499 basename \ 500 bnu \ 501 bsmconv \ 502 bsmrecord \ 503 bsmunconv \ 504 busstat \ 505 cal \ 506 cat \ 507 cdrw \ 508 cfgadm \ 509 checkeq \ 510 checknr \ 511 chgrp \ 512 chmod \ 513 chown \ 514 cksum \ 515 cmd-crypto \ 516 cmd-inet \ 517 cmp \ 518 col \ 519 comm \ 520 compress \ 521 consadm \ 522 coreadm \ 523 cpio \ 524 cpc \ 525 cron \ 526 csh \ 527 csplit \ 528 ctrun \ 529 ctstat \ 530 ctwatch \ 531 cut \ 532 datadm \ 533 date \ 534 dc \ 535 dcs \ 536 dd \ 537 deroff \ 538 devfsadm \ 539 dfs.cmds \ 540 diff \ 541 diffmk \ 542 dladm \ 543 du \ 544 dumpcs \ 545 ed \ 546 eject \ 547 env \ 548 eqn \ 549 expand \ 550 expr \ 551 fgrep \ 552 file \ 553 filesync \ 554 find \ 555 fm \ 556 fold \ 557 fs.d \ 558 geniconvtbl \ 559 genmsg \ 560 getconf \ 561 getent \ 562 gettext \ 563 gettxt \ 564 grep \ 565 grep_xpg4 \ 566 grpck \ 567 gss \ 568 halt \ 569 head \ 570 hostname \ 571 id \ 572 idmap \ 573 isaexec \ 574 iscsi \ 575 join \ 576 kbd \ 577 krb5 \ 578 kstat \ 579 last \ 580 ldap \ 581 ldapcachemgr \ 582 lgrpinfo \ 583 locale \ 584 lofiadm \ 585 logadm \ 586 logger \ 587 logins \ 588 logname \ 589 ls \ 590 lvm \ 591 mailx \ 592 mesg \ 593 mkdir \ 594 mkpwdict \ 595 mktemp \ 596 more \ 597 msgfmt \ 598 mv \ 599 newgrp \ 600 newtask \ 601 nice \ 602 nispasswd \ 603 nohup \ 604 oawk \ 605 pack \ 606 passwd \ 607 passmgmt \ 608 paste \ 609 pathchk \ 610 pfexec \ 611 pg \ 612 pgrep \ 613 picl \ 614 pools \ 615 power \ 616 pr \ 617 praudit \ 618 print \ 619 profiles \ 620 projadd \ 621 projects \ 622 prstat \ 623 prtdiag \ 624 ps \ 625 psrinfo \ 626 ptools \ 627 pwconv \ 628 pwd \ 629 raidctl \ 630 ramdiskadm \ 631 rcap \ 632 rcm_daemon \ 633 refer \ 634 regcmp \ 635 renice \ 636 roles \ 637 rm \ 638 rmdir \ 639 rmformat \ 640 rmmount \ 641 rmvolmgr \ 642 scadm \ 643 script \ 644 sdiff \ 645 sdpadm \ 646 sgs \ 647 sh \ 648 sleep \ 649 sort \ 650 split \ 651 ssh \ 652 stat \ 653 stmsboot \ 654 strings \ 655 su \ 656 sum \ 657 svc \ 658 swap \ 659 syseventadm \ 660 syseventd \ 661 tabs \ 662 tar \ 663 tbl \ 664 tee \ 665 time \ 666 tnf \ 667 touch \ 668 tput \ 669 troff \ 670 tty \ 671 ttymon \ 672 ul \ 673 uname \ 674 uniq \ 675 units \ 676 unlink \ 677 unpack \ 678 valtools \ 679 vgrind \ 680 vi \ 681 volcheck \ 682 volrmmount \ 683 w \ 684 wbem \ 685 wc \ 686 who \ 687 whodo \ 688 wracct \ 689 write \ 690 xargs \ 691 yppasswd \ 692 zdump \ 693 zfs \ 694 zic \ 695 zlogin \ 696 zoneadm \ 697 zoneadmd \ 698 zonecfg \ 699 zonename \ 700 zpool 701 702$(CLOSED_BUILD)MSGSUBDIRS += \ 703 $(CLOSED)/cmd/fwflash \ 704 $(CLOSED)/cmd/iconv \ 705 $(CLOSED)/cmd/ksh \ 706 $(CLOSED)/cmd/llc2 \ 707 $(CLOSED)/cmd/localedef \ 708 $(CLOSED)/cmd/more_xpg4 \ 709 $(CLOSED)/cmd/od \ 710 $(CLOSED)/cmd/patch \ 711 $(CLOSED)/cmd/pax \ 712 $(CLOSED)/cmd/printf \ 713 $(CLOSED)/cmd/sed \ 714 $(CLOSED)/cmd/sed_xpg4 \ 715 $(CLOSED)/cmd/tail \ 716 $(CLOSED)/cmd/tr \ 717 $(CLOSED)/cmd/tr_xpg4 718 719sparc_MSGSUBDIRS= \ 720 fruadm \ 721 prtdscp \ 722 prtfru \ 723 vntsd \ 724 wrsmconf \ 725 wrsmstat 726 727i386_MSGSUBDIRS= \ 728 ucodeadm 729 730# 731# commands that use dcgettext for localized time, LC_TIME 732# 733DCSUBDIRS= \ 734 cal \ 735 cfgadm \ 736 diff \ 737 ls \ 738 pr \ 739 ps \ 740 tar \ 741 w \ 742 who \ 743 whodo \ 744 write 745 746$(CLOSED_BUILD)DCSUBDIRS += \ 747 $(CLOSED)/cmd/pax 748 749# 750# commands that belong only to the basic security module 751# 752BSMSUBDIRS= \ 753 allocate \ 754 amt \ 755 audit \ 756 audit_warn \ 757 auditconfig \ 758 auditd \ 759 auditreduce \ 760 auditstat \ 761 praudit \ 762 bsmconv \ 763 bsmrecord \ 764 bsmunconv 765 766# 767# commands not owned by the systems group 768# 769BWOSDIRS= 770 771# 772# Commands providing manifests must offer a check target. A recursive check 773# target across all commands directories is not currently provided. 774# 775MANIFEST_TOPDIRS= \ 776 auditd \ 777 bnu \ 778 consadm \ 779 coreadm \ 780 cron \ 781 cvcd \ 782 dispadmin \ 783 drd \ 784 dumpadm \ 785 eeprom \ 786 fm \ 787 intrd \ 788 ipf \ 789 keyserv \ 790 ldapcachemgr \ 791 nscd \ 792 oplhpd \ 793 power \ 794 rexd \ 795 rpcbind \ 796 rpcsvc \ 797 saf \ 798 sf880drd \ 799 smserverd \ 800 syseventd \ 801 syslogd \ 802 utmpd \ 803 vntsd \ 804 ypcmd \ 805 zoneadmd 806 807MANIFEST_SUBDIRS= \ 808 boot/scripts \ 809 cmd-crypto/scripts \ 810 cmd-inet/usr.lib/in.chargend \ 811 cmd-inet/usr.lib/in.daytimed \ 812 cmd-inet/usr.lib/in.dhcpd \ 813 cmd-inet/usr.lib/in.discardd \ 814 cmd-inet/usr.lib/in.echod \ 815 cmd-inet/usr.lib/in.ndpd \ 816 cmd-inet/usr.lib/in.ripngd \ 817 cmd-inet/usr.lib/in.timed \ 818 cmd-inet/usr.lib/inetd \ 819 cmd-inet/usr.lib/slpd \ 820 cmd-inet/usr.lib/wpad \ 821 cmd-inet/usr.sbin \ 822 cmd-inet/usr.sbin/in.ftpd \ 823 cmd-inet/usr.sbin/in.rdisc \ 824 cmd-inet/usr.sbin/in.routed \ 825 cmd-inet/usr.sbin/in.talkd \ 826 cmd-inet/usr.sbin/routeadm \ 827 dcs/sparc/sun4u \ 828 fs.d/autofs \ 829 fs.d/cachefs \ 830 fs.d/nfs/svc \ 831 gss/gssd \ 832 idmap/idmapd \ 833 krb5/kadmin/server \ 834 krb5/krb5kdc \ 835 krb5/kwarn \ 836 krb5/slave \ 837 lp/cmd/lpsched \ 838 lvm/rpc.metad \ 839 lvm/rpc.metamedd \ 840 lvm/rpc.metamhd \ 841 lvm/md_monitord \ 842 lvm/metassist/sysfiles \ 843 lvm/util \ 844 picl/picld \ 845 print/gateway \ 846 print/lp \ 847 rcap/rcapd \ 848 rpcsvc/rpc.bootparamd \ 849 sendmail/lib \ 850 smartcard/daemon \ 851 ssh/etc \ 852 svc/milestone \ 853 ypcmd/yppasswd \ 854 ypcmd/ypupdated \ 855 xntpd/xntpd 856 857all := TARGET = all 858install := TARGET = install 859clean := TARGET = clean 860clobber := TARGET = clobber 861lint := TARGET = lint 862check := TARGET = check 863_msg := TARGET = _msg 864_dc := TARGET = _dc 865 866.KEEP_STATE: 867 868SUBDIRS = $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS) 869 870.PARALLEL: $(BWOSDIRS) $(SUBDIRS) $(MSGSUBDIRS) $(BSMSUBDIRS) \ 871 $(MANIFEST_SUBDIRS) 872 873all install clean clobber lint: $(FIRST_SUBDIRS) .WAIT $(SUBDIRS) $(BSMSUBDIRS) 874 875check: svccfg_check .WAIT $(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) 876 877svccfg_check: 878 @$(ECHO) "building requirements for svccfg check ..."; \ 879 (cd $(SRC)/cmd/svc/svccfg && pwd && $(MAKE) $(MFLAGS) native) 880 881# 882# The .WAIT directive works around an apparent bug in parallel make. 883# Evidently make was getting the target _msg vs. _dc confused under 884# some level of parallelization, causing some of the _dc objects 885# not to be built. 886# 887_msg: $(MSGSUBDIRS) $($(MACH)_MSGSUBDIRS) .WAIT _dc 888 889_dc: $(DCSUBDIRS) 890 891# 892# Dependencies 893# 894fs.d: fstyp 895 896$(FIRST_SUBDIRS) $(BWOSDIRS) $(SUBDIRS) $(BSMSUBDIRS) $(MANIFEST_SUBDIRS): FRC 897 @if [ -f $@/Makefile ]; then \ 898 cd $@; pwd; $(MAKE) $(TARGET); \ 899 else \ 900 true; \ 901 fi 902 903FRC: 904