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