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