xref: /onnv-gate/usr/src/cmd/Makefile (revision 13124:8f28cf08bb11)
112239SPaul.Cheng@Sun.COM#
212239SPaul.Cheng@Sun.COM# CDDL HEADER START
312239SPaul.Cheng@Sun.COM#
412239SPaul.Cheng@Sun.COM# The contents of this file are subject to the terms of the
512239SPaul.Cheng@Sun.COM# Common Development and Distribution License (the "License").
612239SPaul.Cheng@Sun.COM# You may not use this file except in compliance with the License.
712239SPaul.Cheng@Sun.COM#
812239SPaul.Cheng@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
912239SPaul.Cheng@Sun.COM# or http://www.opensolaris.org/os/licensing.
1012239SPaul.Cheng@Sun.COM# See the License for the specific language governing permissions
1112239SPaul.Cheng@Sun.COM# and limitations under the License.
1212239SPaul.Cheng@Sun.COM#
1312239SPaul.Cheng@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each
1412239SPaul.Cheng@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1512239SPaul.Cheng@Sun.COM# If applicable, add the following below this CDDL HEADER, with the
1612239SPaul.Cheng@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying
1712239SPaul.Cheng@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner]
1812239SPaul.Cheng@Sun.COM#
1912239SPaul.Cheng@Sun.COM# CDDL HEADER END
2012239SPaul.Cheng@Sun.COM#
2112239SPaul.Cheng@Sun.COM
2212075SSusan.Gleeson@Sun.COM# Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
230Sstevel@tonic-gate
240Sstevel@tonic-gateinclude ../Makefile.master
250Sstevel@tonic-gate
260Sstevel@tonic-gate#
270Sstevel@tonic-gate#	Note that the commands 'agents', 'lp', 'perl', and 'man' are first in
280Sstevel@tonic-gate#	the list, violating alphabetical order.  This is because they are very
290Sstevel@tonic-gate#	long-running and should be given the most wall-clock time for a
300Sstevel@tonic-gate#	parallel build.
310Sstevel@tonic-gate#
320Sstevel@tonic-gate#	Commands in the FIRST_SUBDIRS list are built before starting the build
330Sstevel@tonic-gate#	of other commands.  Currently this includes only 'isaexec' and
340Sstevel@tonic-gate#	'platexec'.  This is necessary because $(ROOT)/usr/lib/isaexec or
350Sstevel@tonic-gate#	$(ROOT)/usr/lib/platexec must exist when some other commands are built
360Sstevel@tonic-gate#	because their 'make install' creates a hard link to one of them.
370Sstevel@tonic-gate#
380Sstevel@tonic-gate#	Commands are listed one per line so that TeamWare can auto-merge most
390Sstevel@tonic-gate#	changes.
400Sstevel@tonic-gate#
410Sstevel@tonic-gate
420Sstevel@tonic-gateFIRST_SUBDIRS=		\
430Sstevel@tonic-gate	isaexec		\
440Sstevel@tonic-gate	platexec
450Sstevel@tonic-gate
460Sstevel@tonic-gateCOMMON_SUBDIRS=		\
470Sstevel@tonic-gate	agents		\
4813059SThuy.Fettig@oracle.COM	allocate	\
49789Sahrens	availdevs	\
500Sstevel@tonic-gate	lp		\
510Sstevel@tonic-gate	perl		\
520Sstevel@tonic-gate	man		\
530Sstevel@tonic-gate	Adm		\
540Sstevel@tonic-gate	abi		\
550Sstevel@tonic-gate	adbgen		\
560Sstevel@tonic-gate	acct		\
570Sstevel@tonic-gate	acctadm		\
580Sstevel@tonic-gate	arch		\
590Sstevel@tonic-gate	asa		\
604887Schin	ast		\
610Sstevel@tonic-gate	audio		\
620Sstevel@tonic-gate	auths		\
630Sstevel@tonic-gate	autopush	\
647836SJohn.Forte@Sun.COM	avs		\
650Sstevel@tonic-gate	awk		\
660Sstevel@tonic-gate	awk_xpg4	\
670Sstevel@tonic-gate	backup		\
680Sstevel@tonic-gate	banner		\
690Sstevel@tonic-gate	bart		\
700Sstevel@tonic-gate	basename	\
710Sstevel@tonic-gate	bc		\
720Sstevel@tonic-gate	bdiff		\
7313059SThuy.Fettig@oracle.COM	beadm		\
740Sstevel@tonic-gate	bfs		\
750Sstevel@tonic-gate	bnu		\
760Sstevel@tonic-gate	boot		\
770Sstevel@tonic-gate	busstat		\
780Sstevel@tonic-gate	cal		\
790Sstevel@tonic-gate	calendar	\
800Sstevel@tonic-gate	captoinfo	\
810Sstevel@tonic-gate	cat		\
820Sstevel@tonic-gate	cdrw		\
830Sstevel@tonic-gate	cfgadm		\
840Sstevel@tonic-gate	checkeq		\
850Sstevel@tonic-gate	checknr		\
860Sstevel@tonic-gate	chgrp		\
870Sstevel@tonic-gate	chmod		\
880Sstevel@tonic-gate	chown		\
890Sstevel@tonic-gate	chroot		\
900Sstevel@tonic-gate	clear		\
910Sstevel@tonic-gate	clinfo		\
920Sstevel@tonic-gate	cmd-crypto	\
930Sstevel@tonic-gate	cmd-inet	\
940Sstevel@tonic-gate	col		\
950Sstevel@tonic-gate	compress	\
960Sstevel@tonic-gate	consadm		\
970Sstevel@tonic-gate	coreadm		\
980Sstevel@tonic-gate	cpio		\
990Sstevel@tonic-gate	cpc		\
1000Sstevel@tonic-gate	cron		\
1010Sstevel@tonic-gate	crypt		\
1020Sstevel@tonic-gate	csh		\
1030Sstevel@tonic-gate	csplit		\
1040Sstevel@tonic-gate	ctrun		\
1050Sstevel@tonic-gate	ctstat		\
1060Sstevel@tonic-gate	ctwatch		\
1070Sstevel@tonic-gate	datadm		\
1080Sstevel@tonic-gate	date		\
1090Sstevel@tonic-gate	dc		\
1100Sstevel@tonic-gate	dd		\
1110Sstevel@tonic-gate	deroff		\
1120Sstevel@tonic-gate	des		\
1130Sstevel@tonic-gate	devfsadm	\
1140Sstevel@tonic-gate	syseventd	\
1150Sstevel@tonic-gate	devctl		\
1160Sstevel@tonic-gate	devinfo		\
1170Sstevel@tonic-gate	devmgmt		\
1185084Sjohnlev	devprop		\
1190Sstevel@tonic-gate	dfs.cmds	\
1200Sstevel@tonic-gate	diff		\
1210Sstevel@tonic-gate	diff3		\
1220Sstevel@tonic-gate	diffmk		\
1230Sstevel@tonic-gate	dircmp		\
1240Sstevel@tonic-gate	dirname		\
1251545Seschrock	dis		\
1260Sstevel@tonic-gate	diskmgtd	\
1270Sstevel@tonic-gate	dispadmin	\
1280Sstevel@tonic-gate	dladm		\
12911878SVenu.Iyer@Sun.COM	dlstat		\
1300Sstevel@tonic-gate	dmesg		\
1319567SBill.Taylor@Sun.COM	dodatadm	\
1320Sstevel@tonic-gate	dtrace		\
1330Sstevel@tonic-gate	du		\
1340Sstevel@tonic-gate	dumpadm		\
1350Sstevel@tonic-gate	dumpcs		\
1360Sstevel@tonic-gate	echo		\
1370Sstevel@tonic-gate	ed		\
1380Sstevel@tonic-gate	eeprom		\
1390Sstevel@tonic-gate	egrep		\
1402912Sartem	eject		\
14185Scth	emul64ioctl	\
1420Sstevel@tonic-gate	enhance		\
1430Sstevel@tonic-gate	env		\
1440Sstevel@tonic-gate	eqn		\
1450Sstevel@tonic-gate	expand		\
1460Sstevel@tonic-gate	expr		\
1470Sstevel@tonic-gate	exstr		\
1480Sstevel@tonic-gate	factor		\
1490Sstevel@tonic-gate	false		\
1507836SJohn.Forte@Sun.COM	fcinfo		\
1519895SKevin.Yu@Sun.COM	fcoesvc		\
1520Sstevel@tonic-gate	fdetach		\
1530Sstevel@tonic-gate	fdformat	\
1540Sstevel@tonic-gate	fdisk		\
1550Sstevel@tonic-gate	filesync	\
1560Sstevel@tonic-gate	fgrep		\
1570Sstevel@tonic-gate	file		\
1585184Sek110237	filebench	\
1590Sstevel@tonic-gate	find		\
1608275SEric Cheng	flowadm		\
16111878SVenu.Iyer@Sun.COM	flowstat	\
1620Sstevel@tonic-gate	fm		\
1630Sstevel@tonic-gate	fmt		\
1640Sstevel@tonic-gate	fmthard		\
1650Sstevel@tonic-gate	fmtmsg		\
1660Sstevel@tonic-gate	fold		\
1670Sstevel@tonic-gate	format		\
1682356Sartem	fs.d		\
1692212Sartem	fstyp		\
1700Sstevel@tonic-gate	fuser		\
1716489Sjmcp	fwflash		\
1720Sstevel@tonic-gate	gcore		\
1730Sstevel@tonic-gate	gencat		\
1740Sstevel@tonic-gate	geniconvtbl	\
1750Sstevel@tonic-gate	genmsg		\
1760Sstevel@tonic-gate	getconf		\
1770Sstevel@tonic-gate	getdevpolicy	\
1780Sstevel@tonic-gate	getent		\
1790Sstevel@tonic-gate	getfacl		\
1800Sstevel@tonic-gate	getmajor	\
1810Sstevel@tonic-gate	getopt		\
1820Sstevel@tonic-gate	gettext		\
1830Sstevel@tonic-gate	gettxt		\
1840Sstevel@tonic-gate	grep		\
1850Sstevel@tonic-gate	grep_xpg4	\
1860Sstevel@tonic-gate	groups		\
1870Sstevel@tonic-gate	grpck		\
1880Sstevel@tonic-gate	gss		\
1892912Sartem	hal		\
1900Sstevel@tonic-gate	halt		\
1910Sstevel@tonic-gate	head		\
1920Sstevel@tonic-gate	hostid		\
1930Sstevel@tonic-gate	hostname	\
19410923SEvan.Yan@Sun.COM	hotplug		\
19510923SEvan.Yan@Sun.COM	hotplugd	\
1962912Sartem	hwdata		\
19712163SRamaswamy.Tummala@Sun.COM	ibd_upgrade	\
1980Sstevel@tonic-gate	id		\
1994520Snw141292	idmap		\
2000Sstevel@tonic-gate	infocmp		\
2010Sstevel@tonic-gate	init		\
2020Sstevel@tonic-gate	initpkg		\
2030Sstevel@tonic-gate	install.d	\
204172Sesolom	intrd		\
2050Sstevel@tonic-gate	intrstat	\
2060Sstevel@tonic-gate	ipcrm		\
2070Sstevel@tonic-gate	ipcs		\
2080Sstevel@tonic-gate	ipf		\
2090Sstevel@tonic-gate	isainfo		\
2100Sstevel@tonic-gate	isalist		\
2117621SJames.McPherson@Sun.COM	itutools	\
2127836SJohn.Forte@Sun.COM	iscsiadm	\
2137836SJohn.Forte@Sun.COM	iscsid		\
2147978SPeter.Dunlap@Sun.COM	iscsitsvc	\
2157836SJohn.Forte@Sun.COM	isns		\
2167978SPeter.Dunlap@Sun.COM	itadm		\
2170Sstevel@tonic-gate	java		\
2180Sstevel@tonic-gate	kbd		\
2190Sstevel@tonic-gate	keyserv		\
2200Sstevel@tonic-gate	killall		\
2210Sstevel@tonic-gate	krb5		\
2224887Schin	ksh		\
2230Sstevel@tonic-gate	kstat		\
2240Sstevel@tonic-gate	last		\
2250Sstevel@tonic-gate	lastcomm	\
22610673SKrishnendu.Sadhukhan@Sun.COM	latencytop	\
2270Sstevel@tonic-gate	ldap		\
2280Sstevel@tonic-gate	ldapcachemgr	\
2292685Sakolb	lgrpinfo	\
2300Sstevel@tonic-gate	line		\
2310Sstevel@tonic-gate	link		\
2325895Syz147064	dlmgmtd		\
2330Sstevel@tonic-gate	listen		\
2340Sstevel@tonic-gate	loadkeys	\
2350Sstevel@tonic-gate	locale		\
2360Sstevel@tonic-gate	lockstat	\
2370Sstevel@tonic-gate	locator		\
2380Sstevel@tonic-gate	lofiadm		\
2390Sstevel@tonic-gate	logadm		\
2400Sstevel@tonic-gate	logger		\
2410Sstevel@tonic-gate	login		\
2420Sstevel@tonic-gate	logins		\
2430Sstevel@tonic-gate	look		\
2440Sstevel@tonic-gate	ls		\
2457836SJohn.Forte@Sun.COM	luxadm		\
2460Sstevel@tonic-gate	lvm		\
2470Sstevel@tonic-gate	mach		\
2480Sstevel@tonic-gate	machid		\
2490Sstevel@tonic-gate	mail		\
2500Sstevel@tonic-gate	mailx		\
2510Sstevel@tonic-gate	makekey		\
2520Sstevel@tonic-gate	mdb		\
2530Sstevel@tonic-gate	mesg		\
2540Sstevel@tonic-gate	mkdir		\
2550Sstevel@tonic-gate	mkfifo		\
2560Sstevel@tonic-gate	mkfile		\
2570Sstevel@tonic-gate	mkmsgs		\
2580Sstevel@tonic-gate	mknod		\
2590Sstevel@tonic-gate	mkpwdict	\
2600Sstevel@tonic-gate	mktemp		\
2610Sstevel@tonic-gate	modload		\
2620Sstevel@tonic-gate	more		\
2637836SJohn.Forte@Sun.COM	mpathadm	\
2640Sstevel@tonic-gate	msgfmt		\
2650Sstevel@tonic-gate	msgid		\
2660Sstevel@tonic-gate	mt		\
2670Sstevel@tonic-gate	mv		\
2680Sstevel@tonic-gate	mvdir		\
2697917SReza.Sabdar@Sun.COM	ndmpadm		\
2707917SReza.Sabdar@Sun.COM	ndmpd		\
2717917SReza.Sabdar@Sun.COM	ndmpstat	\
2720Sstevel@tonic-gate	netadm		\
2730Sstevel@tonic-gate	netfiles	\
2740Sstevel@tonic-gate	newform		\
2750Sstevel@tonic-gate	newgrp		\
2760Sstevel@tonic-gate	news		\
2770Sstevel@tonic-gate	newtask		\
2780Sstevel@tonic-gate	nice		\
2790Sstevel@tonic-gate	nl		\
2800Sstevel@tonic-gate	nlsadmin	\
2810Sstevel@tonic-gate	nohup		\
2820Sstevel@tonic-gate	nsadmin		\
2830Sstevel@tonic-gate	nscd		\
2840Sstevel@tonic-gate	oamuser		\
2850Sstevel@tonic-gate	oawk		\
2860Sstevel@tonic-gate	pack		\
2870Sstevel@tonic-gate	pagesize	\
2880Sstevel@tonic-gate	passmgmt	\
2890Sstevel@tonic-gate	passwd		\
2900Sstevel@tonic-gate	pathchk		\
2910Sstevel@tonic-gate	pbind		\
292881Sjohnny	pcidr		\
2939537SErwin.Tsaur@Sun.COM	pcitool		\
2940Sstevel@tonic-gate	pfexec		\
29512273SCasper.Dik@Sun.COM	pfexecd		\
296*13124SAlexander.Kolbasov@Sun.COM	pginfo		\
297*13124SAlexander.Kolbasov@Sun.COM	pgstat		\
2980Sstevel@tonic-gate	pgrep		\
2990Sstevel@tonic-gate	picl		\
3000Sstevel@tonic-gate	plimit		\
3012912Sartem	policykit	\
3020Sstevel@tonic-gate	pools		\
3030Sstevel@tonic-gate	power		\
3047664SRafael.Vanoni@Sun.COM	powertop	\
3050Sstevel@tonic-gate	ppgsz		\
3060Sstevel@tonic-gate	pg		\
3070Sstevel@tonic-gate	plockstat	\
3080Sstevel@tonic-gate	pr		\
3090Sstevel@tonic-gate	prctl		\
3100Sstevel@tonic-gate	print		\
3110Sstevel@tonic-gate	priocntl	\
3120Sstevel@tonic-gate	profiles	\
3130Sstevel@tonic-gate	projadd		\
3140Sstevel@tonic-gate	projects	\
3150Sstevel@tonic-gate	prstat		\
3160Sstevel@tonic-gate	prtconf		\
3170Sstevel@tonic-gate	prtdiag		\
3180Sstevel@tonic-gate	prtvtoc		\
3190Sstevel@tonic-gate	ps		\
3200Sstevel@tonic-gate	psradm		\
3210Sstevel@tonic-gate	psrinfo		\
3220Sstevel@tonic-gate	psrset		\
3230Sstevel@tonic-gate	ptools		\
3240Sstevel@tonic-gate	pwck		\
3250Sstevel@tonic-gate	pwconv		\
3260Sstevel@tonic-gate	pwd		\
3279396SMatthew.Ahrens@Sun.COM	pyzfs		\
3280Sstevel@tonic-gate	raidctl		\
3290Sstevel@tonic-gate	ramdiskadm	\
3300Sstevel@tonic-gate	rcap		\
3310Sstevel@tonic-gate	rcm_daemon	\
3320Sstevel@tonic-gate	rctladm		\
3330Sstevel@tonic-gate	refer		\
3340Sstevel@tonic-gate	regcmp		\
3350Sstevel@tonic-gate	renice		\
3360Sstevel@tonic-gate	rexd		\
3370Sstevel@tonic-gate	rm		\
3380Sstevel@tonic-gate	rmdir		\
3390Sstevel@tonic-gate	rmformat	\
3402912Sartem	rmmount		\
3410Sstevel@tonic-gate	rmt		\
3422912Sartem	rmvolmgr	\
3430Sstevel@tonic-gate	roles		\
3440Sstevel@tonic-gate	rpcbind		\
3450Sstevel@tonic-gate	rpcgen		\
3460Sstevel@tonic-gate	rpcinfo		\
3470Sstevel@tonic-gate	rpcsvc		\
3480Sstevel@tonic-gate	runat		\
3490Sstevel@tonic-gate	sa		\
3500Sstevel@tonic-gate	saf		\
35110652SHyon.Kim@Sun.COM	sasinfo		\
3520Sstevel@tonic-gate	savecore	\
3537836SJohn.Forte@Sun.COM	sbdadm		\
3540Sstevel@tonic-gate	script		\
3556316Seschrock	scsi		\
3560Sstevel@tonic-gate	sdiff		\
3573422Snh145002	sdpadm		\
3580Sstevel@tonic-gate	sendmail	\
3590Sstevel@tonic-gate	setfacl		\
3600Sstevel@tonic-gate	setmnt		\
3610Sstevel@tonic-gate	setpgrp		\
3620Sstevel@tonic-gate	setuname	\
3630Sstevel@tonic-gate	sgs		\
3640Sstevel@tonic-gate	sh		\
3658462SApril.Chin@Sun.COM	shcomp		\
366437Smws	smbios		\
3675331Samw	smbsrv		\
3680Sstevel@tonic-gate	smserverd	\
3690Sstevel@tonic-gate	soelim		\
3700Sstevel@tonic-gate	sort		\
3710Sstevel@tonic-gate	spell		\
3720Sstevel@tonic-gate	split		\
3734520Snw141292	sqlite		\
3740Sstevel@tonic-gate	srchtxt		\
37512075SSusan.Gleeson@Sun.COM	srptadm		\
3769684SSusan.Gleeson@Sun.COM	srptsvc		\
3770Sstevel@tonic-gate	ssh		\
3780Sstevel@tonic-gate	stat		\
3797836SJohn.Forte@Sun.COM	stmfadm		\
38010725SJohn.Forte@Sun.COM	stmfproxy	\
3817836SJohn.Forte@Sun.COM	stmfsvc		\
3823385Sqh201292	stmsboot	\
3830Sstevel@tonic-gate	streams		\
3840Sstevel@tonic-gate	strings		\
3850Sstevel@tonic-gate	su		\
3860Sstevel@tonic-gate	sulogin		\
3870Sstevel@tonic-gate	sunpc		\
3880Sstevel@tonic-gate	svc		\
3899781SMoriah.Waterland@Sun.COM	svr4pkg		\
3900Sstevel@tonic-gate	swap		\
3910Sstevel@tonic-gate	sync		\
3920Sstevel@tonic-gate	sysdef		\
3930Sstevel@tonic-gate	syseventadm	\
3940Sstevel@tonic-gate	syslogd		\
3950Sstevel@tonic-gate	tabs		\
3960Sstevel@tonic-gate	tar		\
3970Sstevel@tonic-gate	tbl		\
3980Sstevel@tonic-gate	tcopy		\
3990Sstevel@tonic-gate	tcpd		\
4000Sstevel@tonic-gate	terminfo	\
4010Sstevel@tonic-gate	th_tools	\
4020Sstevel@tonic-gate	tic		\
4030Sstevel@tonic-gate	time		\
4040Sstevel@tonic-gate	tip		\
4050Sstevel@tonic-gate	tnf		\
4060Sstevel@tonic-gate	touch		\
4070Sstevel@tonic-gate	tplot		\
4080Sstevel@tonic-gate	tput		\
4090Sstevel@tonic-gate	trapstat	\
4100Sstevel@tonic-gate	troff		\
4110Sstevel@tonic-gate	true		\
4120Sstevel@tonic-gate	truss		\
4134746Srica	tsol		\
4140Sstevel@tonic-gate	tty		\
4150Sstevel@tonic-gate	ttymon		\
41611115SNobutomo.Nakano@Sun.COM	tzreload	\
4170Sstevel@tonic-gate	uadmin		\
4180Sstevel@tonic-gate	ul		\
4190Sstevel@tonic-gate	uname		\
4200Sstevel@tonic-gate	units		\
4210Sstevel@tonic-gate	unlink		\
4220Sstevel@tonic-gate	unpack		\
42312833Sgary.winiger@oracle.com	userattr	\
4240Sstevel@tonic-gate	users		\
4250Sstevel@tonic-gate	utmp_update	\
4260Sstevel@tonic-gate	utmpd		\
4270Sstevel@tonic-gate	valtools	\
4280Sstevel@tonic-gate	vgrind		\
4290Sstevel@tonic-gate	vi		\
4302912Sartem	volcheck	\
4312912Sartem	volrmmount	\
43211076SCathy.Zhou@Sun.COM	vrrpadm		\
4335440Sjm199354	vscan		\
4347688SAaron.Zang@Sun.COM	vt		\
4350Sstevel@tonic-gate	w		\
4360Sstevel@tonic-gate	wall		\
4370Sstevel@tonic-gate	wbem		\
4380Sstevel@tonic-gate	which		\
4390Sstevel@tonic-gate	who		\
4400Sstevel@tonic-gate	whodo		\
4410Sstevel@tonic-gate	wracct		\
4420Sstevel@tonic-gate	write		\
4439430SRaymond.Chen@Sun.COM	wusbadm		\
4440Sstevel@tonic-gate	xargs		\
4450Sstevel@tonic-gate	xstr		\
4460Sstevel@tonic-gate	yes		\
4470Sstevel@tonic-gate	ypcmd		\
4480Sstevel@tonic-gate	yppasswd	\
449789Sahrens	zdb		\
4500Sstevel@tonic-gate	zdump		\
451789Sahrens	zfs		\
4520Sstevel@tonic-gate	zic		\
4531544Seschrock	zinject		\
4540Sstevel@tonic-gate	zlogin		\
4550Sstevel@tonic-gate	zoneadm		\
4560Sstevel@tonic-gate	zoneadmd	\
4570Sstevel@tonic-gate	zonecfg		\
458789Sahrens	zonename	\
459789Sahrens	zpool		\
4609749STim.Haley@Sun.COM	zlook		\
46113122SStephen.Lawrence@oracle.COM	zonestat	\
46210602SLori.Alt@Sun.COM	zstreamdump	\
463789Sahrens	ztest
4640Sstevel@tonic-gate
4651167Skupfer$(CLOSED_BUILD)COMMON_SUBDIRS += \
4661167Skupfer	$(CLOSED)/cmd/iconv	\
4671167Skupfer	$(CLOSED)/cmd/ksh	\
4681167Skupfer	$(CLOSED)/cmd/llc2	\
4691167Skupfer	$(CLOSED)/cmd/localedef	\
4701167Skupfer	$(CLOSED)/cmd/more_xpg4	\
4711414Scindi	$(CLOSED)/cmd/mtst	\
4721167Skupfer	$(CLOSED)/cmd/od	\
4731167Skupfer	$(CLOSED)/cmd/patch	\
4741167Skupfer	$(CLOSED)/cmd/pax	\
4751167Skupfer	$(CLOSED)/cmd/printf	\
4761167Skupfer	$(CLOSED)/cmd/sed	\
4771167Skupfer	$(CLOSED)/cmd/sed_xpg4	\
47812490SDarren.Moffat@Sun.COM	$(CLOSED)/cmd/tail	\
4791167Skupfer	$(CLOSED)/cmd/tr_xpg4
4801167Skupfer
4810Sstevel@tonic-gatei386_SUBDIRS=		\
48212004Sjiang.liu@intel.com	acpihpd		\
4830Sstevel@tonic-gate	addbadsec	\
4840Sstevel@tonic-gate	biosdev		\
4850Sstevel@tonic-gate	diskscan	\
4869203SMark.Logan@Sun.COM	lms		\
4879663SMark.Logan@Sun.COM	ntfsprogs	\
4889663SMark.Logan@Sun.COM	parted		\
4894581Ssherrym	rtc		\
4907423SRussell.Blaine@Sun.COM	ucodeadm	\
4917423SRussell.Blaine@Sun.COM	xvm
4920Sstevel@tonic-gate
4930Sstevel@tonic-gatesparc_SUBDIRS=		\
4940Sstevel@tonic-gate	cvcd		\
4950Sstevel@tonic-gate	dcs		\
4968458SSree.Vemuri@Sun.COM	device_remap	\
4972309Srsmaeda	drd		\
4986429Svs195195	fps		\
4990Sstevel@tonic-gate	fruadm		\
50010480SAlexandre.Chartre@Sun.COM	ldmad		\
5012034Sdnielsen	oplhpd		\
5021772Sjl139090	prtdscp		\
5030Sstevel@tonic-gate	prtfru		\
5041708Sstevel	scadm		\
5050Sstevel@tonic-gate	sckmd		\
5060Sstevel@tonic-gate	sf880drd	\
50711833SMichael.Christensen@Sun.COM	virtinfo	\
5084761Skm84432	vntsd
5090Sstevel@tonic-gate
5100Sstevel@tonic-gate#
5110Sstevel@tonic-gate# Commands that are messaged.  Note that 'lp' and 'man' come first
5120Sstevel@tonic-gate# (see previous comment about 'lp' and 'man').
5130Sstevel@tonic-gate#
5140Sstevel@tonic-gateMSGSUBDIRS=		\
5150Sstevel@tonic-gate	lp		\
5160Sstevel@tonic-gate	man		\
5170Sstevel@tonic-gate	abi		\
5180Sstevel@tonic-gate	acctadm		\
5190Sstevel@tonic-gate	allocate	\
5200Sstevel@tonic-gate	asa		\
5210Sstevel@tonic-gate	audio		\
5220Sstevel@tonic-gate	audit		\
52312918SJan.Friedel@Sun.COM	auditconfig	\
5240Sstevel@tonic-gate	auditd		\
5259592Sgww@eng.sun.com	auditrecord	\
52612918SJan.Friedel@Sun.COM	auditset	\
5270Sstevel@tonic-gate	auths		\
5280Sstevel@tonic-gate	autopush	\
5297836SJohn.Forte@Sun.COM	avs		\
5300Sstevel@tonic-gate	awk		\
5310Sstevel@tonic-gate	awk_xpg4	\
5320Sstevel@tonic-gate	backup		\
5330Sstevel@tonic-gate	banner		\
5340Sstevel@tonic-gate	bart		\
5350Sstevel@tonic-gate	basename	\
53613059SThuy.Fettig@oracle.COM	beadm		\
5370Sstevel@tonic-gate	bnu		\
5380Sstevel@tonic-gate	busstat		\
5390Sstevel@tonic-gate	cal		\
5400Sstevel@tonic-gate	cat		\
5410Sstevel@tonic-gate	cdrw		\
5420Sstevel@tonic-gate	cfgadm		\
5430Sstevel@tonic-gate	checkeq		\
5440Sstevel@tonic-gate	checknr		\
5450Sstevel@tonic-gate	chgrp		\
5460Sstevel@tonic-gate	chmod		\
5470Sstevel@tonic-gate	chown		\
5480Sstevel@tonic-gate	cmd-crypto	\
5490Sstevel@tonic-gate	cmd-inet	\
5500Sstevel@tonic-gate	col		\
5510Sstevel@tonic-gate	compress	\
5520Sstevel@tonic-gate	consadm		\
5530Sstevel@tonic-gate	coreadm		\
5540Sstevel@tonic-gate	cpio		\
5550Sstevel@tonic-gate	cpc		\
5560Sstevel@tonic-gate	cron		\
5570Sstevel@tonic-gate	csh		\
5580Sstevel@tonic-gate	csplit		\
5590Sstevel@tonic-gate	ctrun		\
5600Sstevel@tonic-gate	ctstat		\
5610Sstevel@tonic-gate	ctwatch		\
5620Sstevel@tonic-gate	datadm		\
5630Sstevel@tonic-gate	date		\
5640Sstevel@tonic-gate	dc		\
5650Sstevel@tonic-gate	dcs		\
5660Sstevel@tonic-gate	dd		\
5670Sstevel@tonic-gate	deroff		\
5680Sstevel@tonic-gate	devfsadm	\
5693034Sdougm	dfs.cmds	\
5700Sstevel@tonic-gate	diff		\
5710Sstevel@tonic-gate	diffmk		\
5720Sstevel@tonic-gate	dladm		\
57311878SVenu.Iyer@Sun.COM	dlstat		\
5740Sstevel@tonic-gate	du		\
5750Sstevel@tonic-gate	dumpcs		\
5760Sstevel@tonic-gate	ed		\
5772912Sartem	eject		\
5780Sstevel@tonic-gate	env		\
5790Sstevel@tonic-gate	eqn		\
5800Sstevel@tonic-gate	expand		\
5810Sstevel@tonic-gate	expr		\
5827836SJohn.Forte@Sun.COM	fcinfo		\
5830Sstevel@tonic-gate	fgrep		\
5840Sstevel@tonic-gate	file		\
5850Sstevel@tonic-gate	filesync	\
5860Sstevel@tonic-gate	find		\
5878275SEric Cheng	flowadm		\
58811878SVenu.Iyer@Sun.COM	flowstat	\
5890Sstevel@tonic-gate	fm		\
5900Sstevel@tonic-gate	fold		\
5910Sstevel@tonic-gate	fs.d		\
5926489Sjmcp	fwflash		\
5930Sstevel@tonic-gate	geniconvtbl	\
5940Sstevel@tonic-gate	genmsg		\
5950Sstevel@tonic-gate	getconf		\
5960Sstevel@tonic-gate	getent		\
5970Sstevel@tonic-gate	gettext		\
5980Sstevel@tonic-gate	gettxt		\
5990Sstevel@tonic-gate	grep		\
6000Sstevel@tonic-gate	grep_xpg4	\
6010Sstevel@tonic-gate	grpck		\
6020Sstevel@tonic-gate	gss		\
6030Sstevel@tonic-gate	halt		\
6040Sstevel@tonic-gate	head		\
6050Sstevel@tonic-gate	hostname	\
60610923SEvan.Yan@Sun.COM	hotplug		\
6070Sstevel@tonic-gate	id		\
6084520Snw141292	idmap		\
6090Sstevel@tonic-gate	isaexec		\
6107836SJohn.Forte@Sun.COM	iscsiadm	\
6117836SJohn.Forte@Sun.COM	iscsid		\
6127836SJohn.Forte@Sun.COM	isns		\
6137978SPeter.Dunlap@Sun.COM	itadm		\
6143436Sqz150045	kbd		\
6150Sstevel@tonic-gate	krb5		\
6164887Schin	ksh		\
6170Sstevel@tonic-gate	kstat		\
6180Sstevel@tonic-gate	last		\
6190Sstevel@tonic-gate	ldap		\
6200Sstevel@tonic-gate	ldapcachemgr	\
6212685Sakolb	lgrpinfo	\
6220Sstevel@tonic-gate	locale		\
6230Sstevel@tonic-gate	lofiadm		\
6240Sstevel@tonic-gate	logadm		\
6250Sstevel@tonic-gate	logger		\
6260Sstevel@tonic-gate	logins		\
6270Sstevel@tonic-gate	ls		\
6287836SJohn.Forte@Sun.COM	luxadm		\
6290Sstevel@tonic-gate	lvm		\
6300Sstevel@tonic-gate	mailx		\
6310Sstevel@tonic-gate	mesg		\
6320Sstevel@tonic-gate	mkdir		\
6330Sstevel@tonic-gate	mkpwdict	\
6340Sstevel@tonic-gate	mktemp		\
6350Sstevel@tonic-gate	more		\
6367836SJohn.Forte@Sun.COM	mpathadm	\
6370Sstevel@tonic-gate	msgfmt		\
6380Sstevel@tonic-gate	mv		\
6397917SReza.Sabdar@Sun.COM	ndmpadm		\
6407917SReza.Sabdar@Sun.COM	ndmpstat	\
6410Sstevel@tonic-gate	newgrp		\
6420Sstevel@tonic-gate	newtask		\
6430Sstevel@tonic-gate	nice		\
6440Sstevel@tonic-gate	nohup		\
6450Sstevel@tonic-gate	oawk		\
6460Sstevel@tonic-gate	pack		\
6470Sstevel@tonic-gate	passwd		\
6480Sstevel@tonic-gate	passmgmt	\
6490Sstevel@tonic-gate	pathchk		\
6500Sstevel@tonic-gate	pfexec		\
6510Sstevel@tonic-gate	pg		\
6520Sstevel@tonic-gate	pgrep		\
6530Sstevel@tonic-gate	picl            \
6540Sstevel@tonic-gate	pools		\
6550Sstevel@tonic-gate	power		\
6560Sstevel@tonic-gate	pr		\
6570Sstevel@tonic-gate	praudit		\
6580Sstevel@tonic-gate	print		\
6590Sstevel@tonic-gate	profiles	\
6600Sstevel@tonic-gate	projadd		\
6610Sstevel@tonic-gate	projects	\
6620Sstevel@tonic-gate	prstat		\
6630Sstevel@tonic-gate	prtdiag		\
6640Sstevel@tonic-gate	ps		\
6650Sstevel@tonic-gate	psrinfo		\
6662685Sakolb	ptools		\
6670Sstevel@tonic-gate	pwconv		\
6680Sstevel@tonic-gate	pwd		\
6699396SMatthew.Ahrens@Sun.COM	pyzfs		\
6700Sstevel@tonic-gate	raidctl		\
6710Sstevel@tonic-gate	ramdiskadm	\
6720Sstevel@tonic-gate	rcap		\
6730Sstevel@tonic-gate	rcm_daemon	\
6740Sstevel@tonic-gate	refer		\
6750Sstevel@tonic-gate	regcmp		\
6760Sstevel@tonic-gate	renice		\
6770Sstevel@tonic-gate	roles		\
6780Sstevel@tonic-gate	rm		\
6790Sstevel@tonic-gate	rmdir		\
6800Sstevel@tonic-gate	rmformat	\
6812912Sartem	rmmount		\
6822912Sartem	rmvolmgr	\
68310652SHyon.Kim@Sun.COM	sasinfo		\
6847836SJohn.Forte@Sun.COM	sbdadm		\
6851708Sstevel	scadm		\
6860Sstevel@tonic-gate	script		\
6876316Seschrock	scsi		\
6880Sstevel@tonic-gate	sdiff		\
6893422Snh145002	sdpadm		\
6900Sstevel@tonic-gate	sgs		\
6910Sstevel@tonic-gate	sh		\
6928462SApril.Chin@Sun.COM	shcomp		\
69311633SJoyce.McIntosh@Sun.COM	smbsrv		\
6940Sstevel@tonic-gate	sort		\
6950Sstevel@tonic-gate	split		\
69612075SSusan.Gleeson@Sun.COM	srptadm		\
6970Sstevel@tonic-gate	ssh		\
6981967Srsb	stat		\
6997836SJohn.Forte@Sun.COM	stmfadm		\
7003385Sqh201292	stmsboot	\
7010Sstevel@tonic-gate	strings		\
7020Sstevel@tonic-gate	su		\
7030Sstevel@tonic-gate	svc		\
7049781SMoriah.Waterland@Sun.COM	svr4pkg		\
7050Sstevel@tonic-gate	swap		\
7060Sstevel@tonic-gate	syseventadm	\
7070Sstevel@tonic-gate	syseventd	\
7080Sstevel@tonic-gate	tabs		\
7090Sstevel@tonic-gate	tar		\
7100Sstevel@tonic-gate	tbl		\
7110Sstevel@tonic-gate	time		\
7120Sstevel@tonic-gate	tnf		\
7130Sstevel@tonic-gate	touch		\
7140Sstevel@tonic-gate	tput		\
7150Sstevel@tonic-gate	troff		\
7164746Srica	tsol		\
7170Sstevel@tonic-gate	tty		\
7180Sstevel@tonic-gate	ttymon		\
71911115SNobutomo.Nakano@Sun.COM	tzreload	\
7200Sstevel@tonic-gate	ul		\
7210Sstevel@tonic-gate	uname		\
7220Sstevel@tonic-gate	units		\
7230Sstevel@tonic-gate	unlink		\
7240Sstevel@tonic-gate	unpack		\
72512833Sgary.winiger@oracle.com	userattr	\
7260Sstevel@tonic-gate	valtools	\
7270Sstevel@tonic-gate	vgrind		\
7280Sstevel@tonic-gate	vi		\
7292912Sartem	volcheck	\
7302912Sartem	volrmmount	\
73111076SCathy.Zhou@Sun.COM	vrrpadm		\
73211633SJoyce.McIntosh@Sun.COM	vscan		\
7330Sstevel@tonic-gate	w		\
7340Sstevel@tonic-gate	wbem		\
7350Sstevel@tonic-gate	who		\
7360Sstevel@tonic-gate	whodo		\
7370Sstevel@tonic-gate	wracct		\
7380Sstevel@tonic-gate	write		\
7399430SRaymond.Chen@Sun.COM	wusbadm		\
7400Sstevel@tonic-gate	xargs		\
7410Sstevel@tonic-gate	yppasswd	\
7420Sstevel@tonic-gate	zdump		\
743789Sahrens	zfs		\
7440Sstevel@tonic-gate	zic		\
7450Sstevel@tonic-gate	zlogin		\
7460Sstevel@tonic-gate	zoneadm		\
7470Sstevel@tonic-gate	zoneadmd	\
7480Sstevel@tonic-gate	zonecfg		\
749789Sahrens	zonename	\
75013122SStephen.Lawrence@oracle.COM	zpool		\
75113122SStephen.Lawrence@oracle.COM	zonestat
7520Sstevel@tonic-gate
7531167Skupfer$(CLOSED_BUILD)MSGSUBDIRS += \
7541167Skupfer	$(CLOSED)/cmd/iconv	\
7551167Skupfer	$(CLOSED)/cmd/ksh	\
7561167Skupfer	$(CLOSED)/cmd/llc2	\
7571167Skupfer	$(CLOSED)/cmd/localedef	\
7581167Skupfer	$(CLOSED)/cmd/more_xpg4	\
7591167Skupfer	$(CLOSED)/cmd/od	\
7601167Skupfer	$(CLOSED)/cmd/patch	\
7611167Skupfer	$(CLOSED)/cmd/pax	\
7621167Skupfer	$(CLOSED)/cmd/printf	\
7631167Skupfer	$(CLOSED)/cmd/sed	\
7641167Skupfer	$(CLOSED)/cmd/sed_xpg4	\
7651167Skupfer	$(CLOSED)/cmd/tail	\
7661167Skupfer	$(CLOSED)/cmd/tr_xpg4
7671167Skupfer
7680Sstevel@tonic-gatesparc_MSGSUBDIRS=	\
7690Sstevel@tonic-gate	fruadm		\
7701772Sjl139090	prtdscp		\
7710Sstevel@tonic-gate	prtfru		\
77211833SMichael.Christensen@Sun.COM	virtinfo	\
7734761Skm84432	vntsd
7740Sstevel@tonic-gate
7754581Ssherrymi386_MSGSUBDIRS=	\
7764581Ssherrym	ucodeadm
7774581Ssherrym
7780Sstevel@tonic-gate#
7790Sstevel@tonic-gate# commands that use dcgettext for localized time, LC_TIME
7800Sstevel@tonic-gate#
7810Sstevel@tonic-gateDCSUBDIRS=		\
7820Sstevel@tonic-gate	cal		\
7830Sstevel@tonic-gate	cfgadm		\
7840Sstevel@tonic-gate	diff		\
7850Sstevel@tonic-gate	ls		\
7860Sstevel@tonic-gate	pr		\
7872966Ssayama	ps		\
7880Sstevel@tonic-gate	tar		\
7890Sstevel@tonic-gate	w		\
7900Sstevel@tonic-gate	who		\
7910Sstevel@tonic-gate	whodo		\
7920Sstevel@tonic-gate	write
7930Sstevel@tonic-gate
7941167Skupfer$(CLOSED_BUILD)DCSUBDIRS += \
7951167Skupfer	$(CLOSED)/cmd/pax
7961167Skupfer
7970Sstevel@tonic-gate#
79813059SThuy.Fettig@oracle.COM# commands that belong only to audit.
7990Sstevel@tonic-gate#
8009592Sgww@eng.sun.comAUDITSUBDIRS=		\
8010Sstevel@tonic-gate	amt		\
8020Sstevel@tonic-gate	audit		\
8030Sstevel@tonic-gate	audit_warn	\
8040Sstevel@tonic-gate	auditconfig	\
8050Sstevel@tonic-gate	auditd		\
8069592Sgww@eng.sun.com	auditrecord	\
8070Sstevel@tonic-gate	auditreduce	\
80812918SJan.Friedel@Sun.COM	auditset	\
8090Sstevel@tonic-gate	auditstat	\
81013059SThuy.Fettig@oracle.COM	praudit
8110Sstevel@tonic-gate
8120Sstevel@tonic-gate#
8130Sstevel@tonic-gate# commands not owned by the systems group
8140Sstevel@tonic-gate#
8150Sstevel@tonic-gateBWOSDIRS=
8160Sstevel@tonic-gate
8174926Sjhaslam
8180Sstevel@tonic-gateall :=		TARGET = all
8190Sstevel@tonic-gateinstall :=	TARGET = install
8200Sstevel@tonic-gateclean :=	TARGET = clean
8210Sstevel@tonic-gateclobber :=	TARGET = clobber
8220Sstevel@tonic-gatelint :=		TARGET = lint
8230Sstevel@tonic-gate_msg :=		TARGET = _msg
8240Sstevel@tonic-gate_dc :=		TARGET = _dc
8250Sstevel@tonic-gate
8260Sstevel@tonic-gate.KEEP_STATE:
8270Sstevel@tonic-gate
8280Sstevel@tonic-gateSUBDIRS = $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS)
8290Sstevel@tonic-gate
8309592Sgww@eng.sun.com.PARALLEL:	$(BWOSDIRS) $(SUBDIRS) $(MSGSUBDIRS) $(AUDITSUBDIRS)
8310Sstevel@tonic-gate
8329592Sgww@eng.sun.comall install clean clobber lint: $(FIRST_SUBDIRS) .WAIT $(SUBDIRS) \
8339592Sgww@eng.sun.com	$(AUDITSUBDIRS)
8340Sstevel@tonic-gate
8358613SRoger.Faulkner@Sun.COM#
8368613SRoger.Faulkner@Sun.COM# Manifests cannot be checked in parallel, because we are using
8378613SRoger.Faulkner@Sun.COM# the global repository that is in $(SRC)/cmd/svc/seed/global.db.
8388613SRoger.Faulkner@Sun.COM# For this reason, to avoid .PARALLEL and .NO_PARALLEL conflicts,
8398613SRoger.Faulkner@Sun.COM# we spawn off a sub-make to perform the non-parallel 'make check'
8408613SRoger.Faulkner@Sun.COM#
8418613SRoger.Faulkner@Sun.COMcheck:
8428613SRoger.Faulkner@Sun.COM	$(MAKE) -f Makefile.check check
8434926Sjhaslam
8440Sstevel@tonic-gate#
8450Sstevel@tonic-gate# The .WAIT directive works around an apparent bug in parallel make.
8460Sstevel@tonic-gate# Evidently make was getting the target _msg vs. _dc confused under
8470Sstevel@tonic-gate# some level of parallelization, causing some of the _dc objects
8480Sstevel@tonic-gate# not to be built.
8490Sstevel@tonic-gate#
8500Sstevel@tonic-gate_msg: $(MSGSUBDIRS) $($(MACH)_MSGSUBDIRS) .WAIT _dc
8510Sstevel@tonic-gate
8520Sstevel@tonic-gate_dc: $(DCSUBDIRS)
8530Sstevel@tonic-gate
8542356Sartem#
8552356Sartem# Dependencies
8562356Sartem#
8572356Sartemfs.d: fstyp
8588462SApril.Chin@Sun.COMksh:	shcomp isaexec
8599685SGowtham.Thommandra@Sun.COMprint:	lp
8602356Sartem
8619592Sgww@eng.sun.com$(FIRST_SUBDIRS) $(BWOSDIRS) $(SUBDIRS) $(AUDITSUBDIRS): FRC
8620Sstevel@tonic-gate	@if [ -f $@/Makefile  ]; then \
8630Sstevel@tonic-gate		cd $@; pwd; $(MAKE) $(TARGET); \
8640Sstevel@tonic-gate	else \
8650Sstevel@tonic-gate		true; \
8660Sstevel@tonic-gate	fi
8670Sstevel@tonic-gate
8680Sstevel@tonic-gateFRC:
869