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