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 prtfru \ 454 scadm \ 455 sckmd \ 456 sf880drd \ 457 stmsboot \ 458 wrsmconf \ 459 wrsmstat 460 461# 462# Commands that are messaged. Note that 'lp' and 'man' come first 463# (see previous comment about 'lp' and 'man'). 464# 465MSGSUBDIRS= \ 466 lp \ 467 man \ 468 abi \ 469 acctadm \ 470 allocate \ 471 asa \ 472 audio \ 473 audit \ 474 auditd \ 475 auths \ 476 autopush \ 477 awk \ 478 awk_xpg4 \ 479 backup \ 480 banner \ 481 bart \ 482 basename \ 483 bnu \ 484 bsmconv \ 485 bsmrecord \ 486 bsmunconv \ 487 busstat \ 488 cal \ 489 cat \ 490 cdrw \ 491 cfgadm \ 492 checkeq \ 493 checknr \ 494 chgrp \ 495 chmod \ 496 chown \ 497 cksum \ 498 cmd-crypto \ 499 cmd-inet \ 500 cmp \ 501 col \ 502 comm \ 503 compress \ 504 consadm \ 505 coreadm \ 506 cpio \ 507 cpc \ 508 cron \ 509 csh \ 510 csplit \ 511 ctrun \ 512 ctstat \ 513 ctwatch \ 514 cut \ 515 datadm \ 516 date \ 517 dc \ 518 dcs \ 519 dd \ 520 deroff \ 521 devfsadm \ 522 diff \ 523 diffmk \ 524 dladm \ 525 du \ 526 dumpcs \ 527 ed \ 528 env \ 529 eqn \ 530 expand \ 531 expr \ 532 fgrep \ 533 file \ 534 filesync \ 535 find \ 536 fm \ 537 fold \ 538 fs.d \ 539 geniconvtbl \ 540 genmsg \ 541 getconf \ 542 getent \ 543 gettext \ 544 gettxt \ 545 grep \ 546 grep_xpg4 \ 547 grpck \ 548 gss \ 549 halt \ 550 head \ 551 hostname \ 552 id \ 553 isaexec \ 554 join \ 555 krb5 \ 556 kstat \ 557 last \ 558 ldap \ 559 ldapcachemgr \ 560 locale \ 561 lofiadm \ 562 logadm \ 563 logger \ 564 logins \ 565 logname \ 566 ls \ 567 lvm \ 568 mailx \ 569 mesg \ 570 mkdir \ 571 mkpwdict \ 572 mktemp \ 573 more \ 574 msgfmt \ 575 mv \ 576 newgrp \ 577 newtask \ 578 nice \ 579 nispasswd \ 580 nohup \ 581 oawk \ 582 pack \ 583 passwd \ 584 passmgmt \ 585 paste \ 586 pathchk \ 587 pfexec \ 588 pg \ 589 pgrep \ 590 picl \ 591 pools \ 592 power \ 593 pr \ 594 praudit \ 595 print \ 596 profiles \ 597 projadd \ 598 projects \ 599 prstat \ 600 prtdiag \ 601 ps \ 602 psrinfo \ 603 pwconv \ 604 pwd \ 605 raidctl \ 606 ramdiskadm \ 607 rcap \ 608 rcm_daemon \ 609 refer \ 610 regcmp \ 611 renice \ 612 roles \ 613 rm \ 614 rmdir \ 615 rmformat \ 616 scadm \ 617 script \ 618 sdiff \ 619 sgs \ 620 sh \ 621 sleep \ 622 sort \ 623 split \ 624 ssh \ 625 strings \ 626 su \ 627 sum \ 628 svc \ 629 swap \ 630 syseventadm \ 631 syseventd \ 632 tabs \ 633 tar \ 634 tbl \ 635 tee \ 636 time \ 637 tnf \ 638 touch \ 639 tput \ 640 troff \ 641 tty \ 642 ttymon \ 643 ul \ 644 uname \ 645 uniq \ 646 units \ 647 unlink \ 648 unpack \ 649 valtools \ 650 vgrind \ 651 vi \ 652 volmgt \ 653 w \ 654 wbem \ 655 wc \ 656 who \ 657 whodo \ 658 wracct \ 659 write \ 660 xargs \ 661 yppasswd \ 662 zdump \ 663 zfs \ 664 zic \ 665 zlogin \ 666 zoneadm \ 667 zoneadmd \ 668 zonecfg \ 669 zonename \ 670 zpool 671 672$(CLOSED_BUILD)MSGSUBDIRS += \ 673 $(CLOSED)/cmd/iconv \ 674 $(CLOSED)/cmd/ksh \ 675 $(CLOSED)/cmd/llc2 \ 676 $(CLOSED)/cmd/localedef \ 677 $(CLOSED)/cmd/more_xpg4 \ 678 $(CLOSED)/cmd/od \ 679 $(CLOSED)/cmd/patch \ 680 $(CLOSED)/cmd/pax \ 681 $(CLOSED)/cmd/printf \ 682 $(CLOSED)/cmd/sed \ 683 $(CLOSED)/cmd/sed_xpg4 \ 684 $(CLOSED)/cmd/tail \ 685 $(CLOSED)/cmd/tr \ 686 $(CLOSED)/cmd/tr_xpg4 687 688sparc_MSGSUBDIRS= \ 689 fruadm \ 690 prtfru \ 691 stmsboot \ 692 wrsmconf \ 693 wrsmstat 694 695# 696# commands that use dcgettext for localized time, LC_TIME 697# 698DCSUBDIRS= \ 699 cal \ 700 cfgadm \ 701 diff \ 702 ls \ 703 pr \ 704 tar \ 705 w \ 706 who \ 707 whodo \ 708 write 709 710$(CLOSED_BUILD)DCSUBDIRS += \ 711 $(CLOSED)/cmd/pax 712 713# 714# commands that belong only to the basic security module 715# 716BSMSUBDIRS= \ 717 allocate \ 718 amt \ 719 audit \ 720 audit_warn \ 721 auditconfig \ 722 auditd \ 723 auditreduce \ 724 auditstat \ 725 praudit \ 726 bsmconv \ 727 bsmrecord \ 728 bsmunconv 729 730# 731# commands not owned by the systems group 732# 733BWOSDIRS= 734 735# 736# Commands providing manifests must offer a check target. A recursive check 737# target across all commands directories is not currently provided. 738# 739MANIFEST_TOPDIRS= \ 740 auditd \ 741 bnu \ 742 consadm \ 743 coreadm \ 744 cron \ 745 cvcd \ 746 dispadmin \ 747 dumpadm \ 748 eeprom \ 749 fm \ 750 intrd \ 751 ipf \ 752 keyserv \ 753 ldapcachemgr \ 754 nscd \ 755 power \ 756 rexd \ 757 rpcbind \ 758 rpcsvc \ 759 saf \ 760 sf880drd \ 761 smserverd \ 762 syseventd \ 763 syslogd \ 764 utmpd \ 765 ypcmd \ 766 zoneadmd 767 768MANIFEST_SUBDIRS= \ 769 cmd-crypto/scripts \ 770 cmd-inet/usr.lib/in.chargend \ 771 cmd-inet/usr.lib/in.daytimed \ 772 cmd-inet/usr.lib/in.dhcpd \ 773 cmd-inet/usr.lib/in.discardd \ 774 cmd-inet/usr.lib/in.echod \ 775 cmd-inet/usr.lib/in.timed \ 776 cmd-inet/usr.lib/inetd \ 777 cmd-inet/usr.lib/slpd \ 778 cmd-inet/usr.sbin \ 779 cmd-inet/usr.sbin/in.ftpd \ 780 cmd-inet/usr.sbin/in.talkd \ 781 dcs/sparc/sun4u \ 782 fs.d/autofs \ 783 fs.d/cachefs \ 784 fs.d/nfs/svc \ 785 gss/gssd \ 786 krb5/kadmin/server \ 787 krb5/krb5kdc \ 788 krb5/kwarn \ 789 krb5/slave \ 790 lp/cmd/lpsched \ 791 lvm/rpc.metad \ 792 lvm/rpc.metamedd \ 793 lvm/rpc.metamhd \ 794 lvm/md_monitord \ 795 lvm/metassist/sysfiles \ 796 lvm/util \ 797 picl/picld \ 798 print/gateway \ 799 print/lp \ 800 rcap/rcapd \ 801 rpcsvc/rpc.bootparamd \ 802 sendmail/lib \ 803 smartcard/daemon \ 804 ssh/etc \ 805 svc/milestone \ 806 ypcmd/yppasswd \ 807 ypcmd/ypupdated \ 808 xntpd/xntpd 809 810all := TARGET = all 811install := TARGET = install 812clean := TARGET = clean 813clobber := TARGET = clobber 814lint := TARGET = lint 815check := TARGET = check 816_msg := TARGET = _msg 817_dc := TARGET = _dc 818 819.KEEP_STATE: 820 821SUBDIRS = $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS) 822 823.PARALLEL: $(BWOSDIRS) $(SUBDIRS) $(MSGSUBDIRS) $(BSMSUBDIRS) \ 824 $(MANIFEST_SUBDIRS) 825 826all install clean clobber lint: $(FIRST_SUBDIRS) .WAIT $(SUBDIRS) $(BSMSUBDIRS) 827 828check: svccfg_check .WAIT $(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) 829 830svccfg_check: 831 @$(ECHO) "building requirements for svccfg check ..."; \ 832 (cd $(SRC)/cmd/svc/svccfg && pwd && $(MAKE) $(MFLAGS) native) 833 834# 835# The .WAIT directive works around an apparent bug in parallel make. 836# Evidently make was getting the target _msg vs. _dc confused under 837# some level of parallelization, causing some of the _dc objects 838# not to be built. 839# 840_msg: $(MSGSUBDIRS) $($(MACH)_MSGSUBDIRS) .WAIT _dc 841 842_dc: $(DCSUBDIRS) 843 844$(FIRST_SUBDIRS) $(BWOSDIRS) $(SUBDIRS) $(BSMSUBDIRS) $(MANIFEST_SUBDIRS): FRC 845 @if [ -f $@/Makefile ]; then \ 846 cd $@; pwd; $(MAKE) $(TARGET); \ 847 else \ 848 true; \ 849 fi 850 851FRC: 852