remove rcmd(3socket) interfaces and rmt(1m)
[unleashed.git] / usr / src / cmd / Makefile
bloba4e96fda53d79dcf0f67343538d38230451397aa
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 ibd_upgrade \
191 iconv \
192 id \
193 idmap \
194 infocmp \
195 init \
196 initpkg \
197 intrd \
198 intrstat \
199 ipcrm \
200 ipcs \
201 ipdadm \
202 ipf \
203 isainfo \
204 isalist \
205 itutools \
206 iscsiadm \
207 iscsid \
208 iscsitsvc \
209 isns \
210 itadm \
211 kbd \
212 keyserv \
213 killall \
214 krb5 \
215 ksh \
216 kvmstat \
217 last \
218 lastcomm \
219 latencytop \
220 ldap \
221 ldapcachemgr \
222 lgrpinfo \
223 line \
224 link \
225 dlmgmtd \
226 listen \
227 loadkeys \
228 locale \
229 lockstat \
230 locator \
231 lofiadm \
232 logadm \
233 logger \
234 login \
235 logins \
236 look \
237 ls \
238 luxadm \
239 mail \
240 mailwrapper \
241 mailx \
242 make \
243 mdb \
244 mesg \
245 mkdir \
246 mkfifo \
247 mkfile \
248 mkmsgs \
249 mknod \
250 mkpwdict \
251 mktemp \
252 modload \
253 more \
254 mpathadm \
255 msgfmt \
256 msgid \
257 mt \
258 mv \
259 mvdir \
260 ndmpadm \
261 ndmpd \
262 ndmpstat \
263 netadm \
264 netfiles \
265 newform \
266 newgrp \
267 news \
268 newtask \
269 nice \
270 nl \
271 nlsadmin \
272 nohup \
273 nsadmin \
274 nscd \
275 oamuser \
276 od \
277 pack \
278 pagesize \
279 passmgmt \
280 passwd \
281 pathchk \
282 pbind \
283 pcidr \
284 pcitool \
285 pfexec \
286 pfexecd \
287 pginfo \
288 pgstat \
289 pgrep \
290 picl \
291 plimit \
292 policykit \
293 pools \
294 power \
295 powertop \
296 ppgsz \
297 pg \
298 plockstat \
299 pr \
300 prctl \
301 printenv \
302 printf \
303 priocntl \
304 profiles \
305 projadd \
306 projects \
307 prstat \
308 prtconf \
309 prtdiag \
310 prtvtoc \
311 ps \
312 psradm \
313 psrinfo \
314 psrset \
315 ptools \
316 pwck \
317 pyzfs \
318 raidctl \
319 ramdiskadm \
320 rcap \
321 rcm_daemon \
322 rctladm \
323 refer \
324 regcmp \
325 renice \
326 rm \
327 rmdir \
328 rmformat \
329 rmmount \
330 rmvolmgr \
331 roles \
332 rpcbind \
333 rpcgen \
334 rpcinfo \
335 rpcsvc \
336 runat \
337 sa \
338 saf \
339 sasinfo \
340 savecore \
341 sbdadm \
342 script \
343 scsi \
344 sdiff \
345 sdpadm \
346 setfacl \
347 setmnt \
348 setpgrp \
349 sgs \
350 shcomp \
351 smbios \
352 smbsrv \
353 smserverd \
354 soelim \
355 sort \
356 spell \
357 split \
358 sqlite \
359 srchtxt \
360 srptadm \
361 srptsvc \
362 stat \
363 stmfadm \
364 stmfproxy \
365 stmfsvc \
366 stmsboot \
367 streams \
368 strings \
369 su \
370 sulogin \
371 sunpc \
372 svc \
373 swap \
374 sync \
375 sysdef \
376 syseventadm \
377 syslogd \
378 tabs \
379 tail \
380 tar \
381 tbl \
382 tcpd \
383 terminfo \
384 th_tools \
385 tip \
386 touch \
387 tput \
388 tr \
389 trapstat \
390 troff \
391 truss \
392 tty \
393 ttymon \
394 tzreload \
395 uadmin \
396 ul \
397 units \
398 unlink \
399 unpack \
400 userattr \
401 users \
402 utmpd \
403 uuidgen \
404 valtools \
405 vgrind \
406 volcheck \
407 volrmmount \
408 vrrpadm \
409 vscan \
410 vt \
412 wall \
413 which \
414 who \
415 whodo \
416 wracct \
417 write \
418 xargs \
419 xhci \
420 xstr \
421 ypcmd \
422 yppasswd \
423 zdb \
424 zdump \
425 zfs \
426 zhack \
427 zinject \
428 zlogin \
429 zoneadm \
430 zoneadmd \
431 zonecfg \
432 zonename \
433 zpool \
434 zlook \
435 zonestat \
436 zstreamdump \
437 ztest
439 i386_SUBDIRS= \
440 acpi \
441 acpihpd \
442 addbadsec \
443 biosdev \
444 diskscan \
445 rtc \
446 ucodeadm \
448 sparc_SUBDIRS= \
449 cvcd \
450 dcs \
451 device_remap \
452 drd \
453 fruadm \
454 ldmad \
455 oplhpd \
456 prtdscp \
457 prtfru \
458 scadm \
459 sckmd \
460 sf880drd \
461 virtinfo \
462 vntsd
465 # Commands that are messaged.
467 MSGSUBDIRS= \
468 abi \
469 acctadm \
470 allocate \
471 asa \
472 audio \
473 audit \
474 auditconfig \
475 auditd \
476 auditrecord \
477 auditset \
478 auths \
479 autopush \
480 awk \
481 awk_xpg4 \
482 backup \
483 bart \
484 basename \
485 beadm \
486 bnu \
487 busstat \
488 cal \
489 cdrw \
490 cfgadm \
491 checkeq \
492 checknr \
493 chgrp \
494 chmod \
495 chown \
496 cmd-crypto \
497 cmd-inet \
498 col \
499 compress \
500 consadm \
501 coreadm \
502 cpio \
503 cpc \
504 cron \
505 csh \
506 csplit \
507 ctrun \
508 ctstat \
509 ctwatch \
510 datadm \
511 date \
512 dc \
513 dcs \
514 dd \
515 deroff \
516 devfsadm \
517 dfs.cmds \
518 diff \
519 diffmk \
520 dladm \
521 dlstat \
522 du \
523 dumpcs \
524 ed \
525 eject \
526 eqn \
527 expand \
528 expr \
529 fcinfo \
530 fgrep \
531 filesync \
532 find \
533 flowadm \
534 flowstat \
535 fm \
536 fold \
537 fs.d \
538 fwflash \
539 geniconvtbl \
540 genmsg \
541 getconf \
542 getent \
543 gettext \
544 gettxt \
545 grep \
546 grep_xpg4 \
547 grpck \
548 gss \
549 halt \
550 head \
551 hostname \
552 hotplug \
553 iconv \
554 id \
555 idmap \
556 isaexec \
557 iscsiadm \
558 iscsid \
559 isns \
560 itadm \
561 kbd \
562 krb5 \
563 ksh \
564 last \
565 ldap \
566 ldapcachemgr \
567 lgrpinfo \
568 locale \
569 lofiadm \
570 logadm \
571 logger \
572 logins \
573 ls \
574 luxadm \
575 mailx \
576 make \
577 mesg \
578 mkdir \
579 mkpwdict \
580 mktemp \
581 more \
582 mpathadm \
583 msgfmt \
584 mv \
585 ndmpadm \
586 ndmpstat \
587 newgrp \
588 newtask \
589 nice \
590 nohup \
591 pack \
592 passwd \
593 passmgmt \
594 pathchk \
595 pfexec \
596 pg \
597 pgrep \
598 picl \
599 pools \
600 power \
601 pr \
602 praudit \
603 profiles \
604 projadd \
605 projects \
606 prstat \
607 prtdiag \
608 ps \
609 psrinfo \
610 ptools \
611 raidctl \
612 ramdiskadm \
613 rcap \
614 rcm_daemon \
615 refer \
616 regcmp \
617 renice \
618 roles \
619 rm \
620 rmdir \
621 rmformat \
622 rmmount \
623 rmvolmgr \
624 sasinfo \
625 sbdadm \
626 scadm \
627 script \
628 scsi \
629 sdiff \
630 sdpadm \
631 sgs \
632 shcomp \
633 smbsrv \
634 sort \
635 split \
636 srptadm \
637 stat \
638 stmfadm \
639 stmsboot \
640 strings \
641 su \
642 svc \
643 swap \
644 syseventadm \
645 syseventd \
646 tabs \
647 tar \
648 tbl \
649 touch \
650 tput \
651 troff \
652 tty \
653 ttymon \
654 tzreload \
655 ul \
656 units \
657 unlink \
658 unpack \
659 userattr \
660 valtools \
661 vgrind \
662 volcheck \
663 volrmmount \
664 vrrpadm \
665 vscan \
667 who \
668 whodo \
669 wracct \
670 write \
671 xargs \
672 yppasswd \
673 zdump \
674 zfs \
675 zlogin \
676 zoneadm \
677 zoneadmd \
678 zonecfg \
679 zonename \
680 zpool \
681 zonestat
683 sparc_MSGSUBDIRS= \
684 fruadm \
685 prtdscp \
686 prtfru \
687 virtinfo \
688 vntsd
690 i386_MSGSUBDIRS= \
691 ucodeadm
694 # commands that use dcgettext for localized time, LC_TIME
696 DCSUBDIRS= \
697 cal \
698 cfgadm \
699 diff \
700 ls \
701 pr \
702 ps \
703 tar \
705 who \
706 whodo \
707 write
710 # commands that belong only to audit.
712 AUDITSUBDIRS= \
713 amt \
714 audit \
715 audit_warn \
716 auditconfig \
717 auditd \
718 auditrecord \
719 auditreduce \
720 auditset \
721 auditstat \
722 praudit
725 # commands not owned by the systems group
727 BWOSDIRS=
730 all := TARGET = all
731 install := TARGET = install
732 clean := TARGET = clean
733 clobber := TARGET = clobber
734 _msg := TARGET = _msg
735 _dc := TARGET = _dc
737 .KEEP_STATE:
739 SUBDIRS = $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS)
741 .PARALLEL: $(BWOSDIRS) $(SUBDIRS) $(MSGSUBDIRS) $(AUDITSUBDIRS)
743 all install clean clobber: $(FIRST_SUBDIRS) .WAIT $(SUBDIRS) \
744 $(AUDITSUBDIRS)
747 # Manifests cannot be checked in parallel, because we are using
748 # the global repository that is in $(SRC)/cmd/svc/seed/global.db.
749 # For this reason, to avoid .PARALLEL and .NO_PARALLEL conflicts,
750 # we spawn off a sub-make to perform the non-parallel 'make check'
752 check:
753 $(MAKE) -f Makefile.check check
756 # The .WAIT directive works around an apparent bug in parallel make.
757 # Evidently make was getting the target _msg vs. _dc confused under
758 # some level of parallelization, causing some of the _dc objects
759 # not to be built.
761 _msg: $(MSGSUBDIRS) $($(MACH)_MSGSUBDIRS) .WAIT _dc
763 _dc: $(DCSUBDIRS)
766 # Dependencies
768 fs.d: fstyp
769 ksh: shcomp isaexec
770 mdb: terminfo
771 fmt: mailx
773 $(FIRST_SUBDIRS) $(BWOSDIRS) $(SUBDIRS) $(AUDITSUBDIRS): FRC
774 @if [ -f $@/Makefile ]; then \
775 cd $@; pwd; $(MAKE) $(TARGET); \
776 else \
777 true; \
779 FRC: