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