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