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