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