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