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