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