xref: /freebsd/usr.sbin/Makefile (revision 6318052d9e161cbc69e4085125ef824d94de16ef)
1886e832bSGarrett Wollman#	From: @(#)Makefile	5.20 (Berkeley) 6/12/93
297d92980SPeter Wemm# $FreeBSD$
3dea673e9SRodney W. Grimes
4e1fe3dbaSRuslan Ermilov.include <bsd.own.mk>
5e1fe3dbaSRuslan Ermilov
678eb91b4SDavid Greenman# XXX MISSING:		mkproto
7690f477dSSam LefflerSUBDIR=	${_ac} \
8690f477dSSam Leffler	${_accton} \
9d10a8d6cSRuslan Ermilov	${_acpi} \
100451ac36SGary Palmer	adduser \
11690f477dSSam Leffler	${_amd} \
12690f477dSSam Leffler	${_ancontrol} \
13d10a8d6cSRuslan Ermilov	${_apm} \
14d10a8d6cSRuslan Ermilov	${_apmd} \
150451ac36SGary Palmer	arp \
16c0f20e27SRuslan Ermilov	${_asf} \
17c0f20e27SRuslan Ermilov	${_atm} \
186470320fSRobert Watson	${_audit} \
196470320fSRobert Watson	${_auditd} \
206470320fSRobert Watson	${_auditreduce} \
218d69c48bSMax Laier	${_authpf} \
22d10a8d6cSRuslan Ermilov	${_bluetooth} \
23d10a8d6cSRuslan Ermilov	${_boot0cfg} \
24d10a8d6cSRuslan Ermilov	${_boot98cfg} \
250451ac36SGary Palmer	bootparamd \
26690f477dSSam Leffler	${_bsnmpd} \
27d10a8d6cSRuslan Ermilov	${_btxld} \
286d73a68aSSøren Schmidt	burncd \
290451ac36SGary Palmer	cdcontrol \
300451ac36SGary Palmer	chkgrp \
310451ac36SGary Palmer	chown \
320451ac36SGary Palmer	chroot \
330451ac36SGary Palmer	ckdist \
34dfdcada3SDoug Rabson	clear_locks \
35690f477dSSam Leffler	${_config} \
36e085f869SStanislav Sedov	${_cpucontrol} \
37a37f9716SJohn Baldwin	crashinfo \
380451ac36SGary Palmer	cron \
39690f477dSSam Leffler	${_crunch} \
40690f477dSSam Leffler	${_ctm} \
41bd06a3ecSMike Barcroft	daemon \
42869093b1SHidetoshi Shimokawa	dconschat \
430fb0f418SMike Smith	devinfo \
44ad01e0c8SBrian Somers	digictl \
45a362eb63SPoul-Henning Kamp	diskinfo \
466318052dSDoug Barton	${_dnssec-dsfromkey} \
476318052dSDoug Barton	${_dnssec-keyfromlabel} \
48cd3ee173SDag-Erling Smørgrav	${_dnssec-keygen} \
49cd3ee173SDag-Erling Smørgrav	${_dnssec-signzone} \
500738c00eSWarner Losh	dumpcis \
51d10a8d6cSRuslan Ermilov	${_editmap} \
52690f477dSSam Leffler	${_edquota} \
53156e1decSMarius Strobl	${_eeprom} \
54caefa400SPoul-Henning Kamp	extattr \
559754f5b6SRobert Watson	extattrctl \
56c42d8ce5SYaroslav Tykhiy	${_faithd} \
57690f477dSSam Leffler	${_fdcontrol} \
58690f477dSSam Leffler	${_fdformat} \
59690f477dSSam Leffler	${_fdread} \
60690f477dSSam Leffler	${_fdwrite} \
617825a6bdSPoul-Henning Kamp	fifolog \
62690f477dSSam Leffler	${_flowctl} \
63690f477dSSam Leffler	${_freebsd-update} \
6460ee3847SMax Laier	${_ftp-proxy} \
65a7a73b95SHidetoshi Shimokawa	fwcontrol \
665b38a427SRobert Watson	getfmac \
675b38a427SRobert Watson	getpmac \
6854a8adabSPoul-Henning Kamp	gstat \
69a9148abdSDoug Rabson	${_gssd} \
70477f656bSRafal Jaworowski	i2c \
71123689d3SYoshinobu Inoue	ifmcstat \
720451ac36SGary Palmer	inetd \
735c9036d5SDima Ruban	iostat \
74ad4c6857SYaroslav Tykhiy	${_ip6addrctl} \
75690f477dSSam Leffler	${_ipfwpcap} \
76cea557adSRuslan Ermilov	${_IPXrouted} \
77690f477dSSam Leffler	${_jail} \
78690f477dSSam Leffler	${_jexec} \
79690f477dSSam Leffler	${_jls} \
80690f477dSSam Leffler	${_kbdcontrol} \
81690f477dSSam Leffler	${_kbdmap} \
82d10a8d6cSRuslan Ermilov	${_keyserv} \
83d10a8d6cSRuslan Ermilov	${_kgmon} \
84d10a8d6cSRuslan Ermilov	${_kgzip} \
859c6f9240SPeter Wemm	kldxref \
86b3b01ff3SRuslan Ermilov	lastlogin \
87690f477dSSam Leffler	${_lmcconfig} \
88d10a8d6cSRuslan Ermilov	${_lpr} \
89d10a8d6cSRuslan Ermilov	${_lptcontrol} \
90d10a8d6cSRuslan Ermilov	${_mailstats} \
91cccce27aSPeter Wemm	mailwrapper \
92efc06131SSam Leffler	makefs \
93d10a8d6cSRuslan Ermilov	${_makemap} \
940451ac36SGary Palmer	manctl \
950adc9d60SMike Smith	memcontrol \
9624ff9bb5SBill Fumerola	mergemaster \
97c7805c63SDoug Rabson	mixer \
98d10a8d6cSRuslan Ermilov	${_mld6query} \
99f6f23e2cSMike Smith	mlxcontrol \
1008f40768aSGordon Tetlow	mountd \
101d10a8d6cSRuslan Ermilov	${_mount_nwfs} \
102d10a8d6cSRuslan Ermilov	mount_portalfs \
103d10a8d6cSRuslan Ermilov	${_mount_smbfs} \
104690f477dSSam Leffler	${_moused} \
105d10a8d6cSRuslan Ermilov	${_mptable} \
1060451ac36SGary Palmer	mtest \
1070451ac36SGary Palmer	mtree \
108d10a8d6cSRuslan Ermilov	${_named} \
109cd3ee173SDag-Erling Smørgrav	${_named-checkconf} \
110cd3ee173SDag-Erling Smørgrav	${_named-checkzone} \
111161a5ba8SRuslan Ermilov	${_named.reload} \
112d10a8d6cSRuslan Ermilov	${_ndiscvt} \
113bc34ace3SYaroslav Tykhiy	${_ndp} \
1140451ac36SGary Palmer	newsyslog \
11503914b0bSRick Macklem	nfscbd \
1168f40768aSGordon Tetlow	nfsd \
11703914b0bSRick Macklem	nfsdumpstate \
11803914b0bSRick Macklem	nfsrevoke \
11903914b0bSRick Macklem	nfsuserd \
120690f477dSSam Leffler	${_ngctl} \
121690f477dSSam Leffler	${_nghook} \
1225de697a6SColin Percival	nologin \
123c97fe77dSMichael Bushkov	${_nscd} \
124690f477dSSam Leffler	${_ntp} \
125e5d34218SMaxim Sobolev	${_nvram} \
126d10a8d6cSRuslan Ermilov	${_ofwdump} \
1270451ac36SGary Palmer	pciconf \
1280451ac36SGary Palmer	periodic \
129690f477dSSam Leffler	${_pkg_install} \
1301b4822a4SAttilio Rao	${_pmcannotate} \
131690f477dSSam Leffler	${_pmccontrol} \
132690f477dSSam Leffler	${_pmcstat} \
133d10a8d6cSRuslan Ermilov	${_pnpinfo} \
134690f477dSSam Leffler	${_portsnap} \
135c3c5f9cdSNate Lawson	powerd \
136690f477dSSam Leffler	${_ppp} \
137d10a8d6cSRuslan Ermilov	${_pppctl} \
138d10a8d6cSRuslan Ermilov	${_praliases} \
1396470320fSRobert Watson	${_praudit} \
1400451ac36SGary Palmer	procctl \
1410451ac36SGary Palmer	pstat \
1420451ac36SGary Palmer	pw \
1430451ac36SGary Palmer	pwd_mkdb \
1440451ac36SGary Palmer	quot \
145690f477dSSam Leffler	${_quotaon} \
1460451ac36SGary Palmer	rarpd \
147690f477dSSam Leffler	${_repquota} \
148d10a8d6cSRuslan Ermilov	${_rip6query} \
1490451ac36SGary Palmer	rmt \
150cd3ee173SDag-Erling Smørgrav	${_rndc} \
151cd3ee173SDag-Erling Smørgrav	${_rndc-confgen} \
152d10a8d6cSRuslan Ermilov	${_route6d} \
1538360efbdSAlfred Perlstein	rpcbind \
1540451ac36SGary Palmer	rpc.lockd \
1550451ac36SGary Palmer	rpc.statd \
156c69a34d4SMatthew Dillon	rpc.umntall \
1576c58990dSBjoern A. Zeeb	${_rpc.yppasswdd} \
1586c58990dSBjoern A. Zeeb	${_rpc.ypupdated} \
1596c58990dSBjoern A. Zeeb	${_rpc.ypxfrd} \
160bc34ace3SYaroslav Tykhiy	${_rrenumd} \
161bc34ace3SYaroslav Tykhiy	${_rtadvd} \
1625c9036d5SDima Ruban	rtprio \
163bc34ace3SYaroslav Tykhiy	${_rtsold} \
164690f477dSSam Leffler	${_rwhod} \
165690f477dSSam Leffler	${_sa} \
16642f17e8cSMarcel Moolenaar	${_sade} \
167d10a8d6cSRuslan Ermilov	${_sendmail} \
168108e8dd9SJulian Elischer	setfib \
1695b38a427SRobert Watson	setfmac \
1705b38a427SRobert Watson	setpmac \
171d10a8d6cSRuslan Ermilov	${_sicontrol} \
17280cdf39aSJoerg Wunsch	smbmsg \
1738f61cf9cSMark Santcroos	snapinfo \
174d10a8d6cSRuslan Ermilov	${_spkrtest} \
1750451ac36SGary Palmer	spray \
1760bc81187SDavid E. O'Brien	${_sysinstall} \
1770451ac36SGary Palmer	syslogd \
1788d4b20e3SMark Murray	tcpdchk \
1798d4b20e3SMark Murray	tcpdmatch \
180212a79b0SMaxim Konovalov	tcpdrop \
1810acc1823SDavid E. O'Brien	tcpdump \
1820451ac36SGary Palmer	timed \
1830451ac36SGary Palmer	traceroute \
184d10a8d6cSRuslan Ermilov	${_traceroute6} \
1850451ac36SGary Palmer	trpt \
1860451ac36SGary Palmer	tzsetup \
187f561843cSWeongyo Jeong	${_uathload} \
18834d26f04SRobert Watson	ugidfw \
189d10a8d6cSRuslan Ermilov	${_usbdevs} \
1906f0e1ffdSAlfred Perlstein	${_usbconfig} \
191690f477dSSam Leffler	${_vidcontrol} \
1920451ac36SGary Palmer	vipw \
1930451ac36SGary Palmer	watch \
194370c3cb5SSean Kelly	watchdogd \
195690f477dSSam Leffler	${_wlandebug} \
196d10a8d6cSRuslan Ermilov	${_wlconfig} \
197690f477dSSam Leffler	${_wpa} \
1986c58990dSBjoern A. Zeeb	${_ypbind} \
1996c58990dSBjoern A. Zeeb	${_yp_mkdb} \
2006c58990dSBjoern A. Zeeb	${_yppoll} \
2016c58990dSBjoern A. Zeeb	${_yppush} \
2026c58990dSBjoern A. Zeeb	${_ypserv} \
2036c58990dSBjoern A. Zeeb	${_ypset} \
204d10a8d6cSRuslan Ermilov	zic \
205d10a8d6cSRuslan Ermilov	${_zzz}
206d10a8d6cSRuslan Ermilov
207690f477dSSam Leffler# NB: keep these sorted by MK_* knobs
208690f477dSSam Leffler
209690f477dSSam Leffler.if ${MK_ACCT} != "no"
210690f477dSSam Leffler_ac=		ac
211690f477dSSam Leffler_accton=	accton
212690f477dSSam Leffler_sa=		sa
213690f477dSSam Leffler.endif
214690f477dSSam Leffler
215690f477dSSam Leffler.if ${MK_AMD} != "no"
216690f477dSSam Leffler_amd=		amd
217d10a8d6cSRuslan Ermilov.endif
2185021f740SPeter Wemm
219e1fe3dbaSRuslan Ermilov.if ${MK_AUDIT} != "no"
2206470320fSRobert Watson_audit=		audit
2216470320fSRobert Watson_auditd=	auditd
2226470320fSRobert Watson_auditreduce=	auditreduce
2236470320fSRobert Watson_praudit=	praudit
2246470320fSRobert Watson.endif
2256470320fSRobert Watson
226690f477dSSam Leffler.if ${MK_AUTHPF} != "no"
227690f477dSSam Leffler_authpf=	authpf
228690f477dSSam Leffler.endif
229690f477dSSam Leffler
230e1fe3dbaSRuslan Ermilov.if ${MK_BIND_DNSSEC} != "no" && ${MK_OPENSSL} != "no"
2316318052dSDoug Barton_dnssec-dsfromkey=	dnssec-dsfromkey
2326318052dSDoug Barton_dnssec-keyfromlabel=	dnssec-keyfromlabel
23311d9d041SDag-Erling Smørgrav_dnssec-keygen=		dnssec-keygen
23411d9d041SDag-Erling Smørgrav_dnssec-signzone=	dnssec-signzone
23511d9d041SDag-Erling Smørgrav.endif
236e1fe3dbaSRuslan Ermilov.if ${MK_BIND_NAMED} != "no"
237d10a8d6cSRuslan Ermilov_named=			named
238cd3ee173SDag-Erling Smørgrav_named-checkconf=	named-checkconf
239cd3ee173SDag-Erling Smørgrav_named-checkzone=	named-checkzone
240161a5ba8SRuslan Ermilov_named.reload=		named.reload
241cd3ee173SDag-Erling Smørgrav_rndc=			rndc
242cd3ee173SDag-Erling Smørgrav_rndc-confgen=		rndc-confgen
243d10a8d6cSRuslan Ermilov.endif
244d10a8d6cSRuslan Ermilov
245e1fe3dbaSRuslan Ermilov.if ${MK_BLUETOOTH} != "no"
24623d1e148SMaksim Yevmenkin_bluetooth=	bluetooth
24723d1e148SMaksim Yevmenkin.endif
24823d1e148SMaksim Yevmenkin
249690f477dSSam Leffler.if ${MK_BSNMP} != "no"
250690f477dSSam Leffler_bsnmpd=	bsnmpd
251d10a8d6cSRuslan Ermilov.endif
252d10a8d6cSRuslan Ermilov
253690f477dSSam Leffler.if ${MK_CTM} != "no"
254690f477dSSam Leffler_ctm=		ctm
255690f477dSSam Leffler.endif
256690f477dSSam Leffler
257690f477dSSam Leffler.if ${MK_FLOPPY} != "no"
258690f477dSSam Leffler_fdcontrol=	fdcontrol
259690f477dSSam Leffler_fdformat=	fdformat
260690f477dSSam Leffler_fdread=	fdread
261690f477dSSam Leffler_fdwrite=	fdwrite
262690f477dSSam Leffler.endif
263690f477dSSam Leffler
264690f477dSSam Leffler.if ${MK_FREEBSD_UPDATE} != "no"
265690f477dSSam Leffler_freebsd-update= freebsd-update
26660ee3847SMax Laier.endif
26760ee3847SMax Laier
268a9148abdSDoug Rabson.if ${MK_GSSAPI} != no
269a9148abdSDoug Rabson_gssd=		gssd
270a9148abdSDoug Rabson.endif
271a9148abdSDoug Rabson
272e1fe3dbaSRuslan Ermilov.if ${MK_INET6} != "no"
273c42d8ce5SYaroslav Tykhiy_faithd=	faithd
274ad4c6857SYaroslav Tykhiy_ip6addrctl=	ip6addrctl
275d10a8d6cSRuslan Ermilov_mld6query=	mld6query
276bc34ace3SYaroslav Tykhiy_ndp=		ndp
277d10a8d6cSRuslan Ermilov_rip6query=	rip6query
278d10a8d6cSRuslan Ermilov_route6d=	route6d
279bc34ace3SYaroslav Tykhiy_rrenumd=	rrenumd
280bc34ace3SYaroslav Tykhiy_rtadvd=	rtadvd
281bc34ace3SYaroslav Tykhiy_rtsold=	rtsold
282d10a8d6cSRuslan Ermilov_traceroute6=	traceroute6
283d10a8d6cSRuslan Ermilov.endif
284d10a8d6cSRuslan Ermilov
285690f477dSSam Leffler.if ${MK_IPFW} != "no"
286690f477dSSam Leffler_ipfwpcap=	ipfwpcap
287690f477dSSam Leffler.endif
288690f477dSSam Leffler
289cea557adSRuslan Ermilov.if ${MK_IPX} != "no"
290cea557adSRuslan Ermilov_IPXrouted=	IPXrouted
291cea557adSRuslan Ermilov.endif
292cea557adSRuslan Ermilov
293690f477dSSam Leffler.if ${MK_JAIL} != "no"
294690f477dSSam Leffler_jail=		jail
29568c870abSAntoine Brodin_jexec=		jexec
296690f477dSSam Leffler_jls=		jls
297690f477dSSam Leffler.endif
298690f477dSSam Leffler
299690f477dSSam Leffler# XXX MK_SYSCONS
300690f477dSSam Leffler# XXX is moused w/ usb useful?
301690f477dSSam Leffler.if ${MK_LEGACY_CONSOLE} != "no"
302690f477dSSam Leffler_kbdcontrol=	kbdcontrol
303690f477dSSam Leffler_kbdmap=	kbdmap
304690f477dSSam Leffler_moused=	moused
305690f477dSSam Leffler_vidcontrol=	vidcontrol
306690f477dSSam Leffler.endif
307690f477dSSam Leffler
3081272ddb2SBjoern A. Zeeb.if ${MK_LIBTHR} != "no" || ${MK_LIBPTHREAD} != "no"
309690f477dSSam Leffler.if ${MK_PPP} != "no"
310690f477dSSam Leffler_pppctl=	pppctl
311690f477dSSam Leffler.endif
312690f477dSSam Leffler.if ${MK_NS_CACHING} != "no"
313690f477dSSam Leffler_nscd=		nscd
314690f477dSSam Leffler.endif
315690f477dSSam Leffler.endif
316690f477dSSam Leffler
317690f477dSSam Leffler.if ${MK_LPR} != "no"
318690f477dSSam Leffler_lpr=		lpr
319690f477dSSam Leffler.endif
320690f477dSSam Leffler
321690f477dSSam Leffler.if ${MK_NETGRAPH} != "no"
322690f477dSSam Leffler_flowctl=	flowctl
323690f477dSSam Leffler_lmcconfig=	lmcconfig
324690f477dSSam Leffler_ngctl=		ngctl
325690f477dSSam Leffler_nghook=	nghook
326690f477dSSam Leffler.endif
327690f477dSSam Leffler
328e1fe3dbaSRuslan Ermilov.if ${MK_NIS} != "no"
3296c58990dSBjoern A. Zeeb_rpc.yppasswdd=	rpc.yppasswdd
3306c58990dSBjoern A. Zeeb_rpc.ypupdated=	rpc.ypupdated
3316c58990dSBjoern A. Zeeb_rpc.ypxfrd=	rpc.ypxfrd
3326c58990dSBjoern A. Zeeb_ypbind=	ypbind
3336c58990dSBjoern A. Zeeb_yp_mkdb=	yp_mkdb
3346c58990dSBjoern A. Zeeb_yppoll=	yppoll
3356c58990dSBjoern A. Zeeb_yppush=	yppush
3366c58990dSBjoern A. Zeeb_ypserv=	ypserv
3376c58990dSBjoern A. Zeeb_ypset=		ypset
3386c58990dSBjoern A. Zeeb.endif
3396c58990dSBjoern A. Zeeb
340690f477dSSam Leffler.if ${MK_NTP} != "no"
341690f477dSSam Leffler_ntp=		ntp
3428d69c48bSMax Laier.endif
3438d69c48bSMax Laier
344690f477dSSam Leffler.if ${MK_OPENSSL} != "no"
345690f477dSSam Leffler_keyserv=	keyserv
346152f2a4aSRuslan Ermilov.endif
347152f2a4aSRuslan Ermilov
348690f477dSSam Leffler.if ${MK_PF} != "no"
349690f477dSSam Leffler_ftp-proxy=	ftp-proxy
3508c0e8d96STim Vanderhoek.endif
3518c0e8d96STim Vanderhoek
352690f477dSSam Leffler.if ${MK_PKGTOOLS} != "no"
353690f477dSSam Leffler_pkg_install=	pkg_install
3548af480aeSRuslan Ermilov.endif
355690f477dSSam Leffler
356690f477dSSam Leffler# XXX MK_TOOLCHAIN?
357690f477dSSam Leffler.if ${MK_PMC} != "no"
3581b4822a4SAttilio Rao_pmcannotate=	pmcannotate
359690f477dSSam Leffler_pmccontrol=	pmccontrol
360690f477dSSam Leffler_pmcstat=	pmcstat
361690f477dSSam Leffler.endif
362690f477dSSam Leffler
363690f477dSSam Leffler.if ${MK_PORTSNAP} != "no"
364690f477dSSam Leffler_portsnap=	portsnap
365690f477dSSam Leffler.endif
366690f477dSSam Leffler
367690f477dSSam Leffler.if ${MK_PPP} != "no"
368690f477dSSam Leffler_ppp=		ppp
369690f477dSSam Leffler#_pppctl handled below
370690f477dSSam Leffler.endif
371690f477dSSam Leffler
372690f477dSSam Leffler.if ${MK_QUOTAS} != "no"
373690f477dSSam Leffler_edquota=	edquota
374690f477dSSam Leffler_quotaon=	quotaon
375690f477dSSam Leffler_repquota=	repquota
376690f477dSSam Leffler.endif
377690f477dSSam Leffler
378690f477dSSam Leffler.if ${MK_RCMDS} != "no"
379690f477dSSam Leffler_rwhod=		rwhod
3808af480aeSRuslan Ermilov.endif
3818af480aeSRuslan Ermilov
382e1fe3dbaSRuslan Ermilov.if ${MK_SENDMAIL} != "no"
383d10a8d6cSRuslan Ermilov_editmap=	editmap
384d10a8d6cSRuslan Ermilov_mailstats=	mailstats
385d10a8d6cSRuslan Ermilov_makemap=	makemap
386d10a8d6cSRuslan Ermilov_praliases=	praliases
387d10a8d6cSRuslan Ermilov_sendmail=	sendmail
3885a85f025SPoul-Henning Kamp.endif
3895a85f025SPoul-Henning Kamp
390690f477dSSam Leffler.if ${MK_SYSINSTALL} != "no"
3912110f388SMarius Strobl.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" || \
3922110f388SMarius Strobl    ${MACHINE_ARCH} == "sparc64"
393690f477dSSam Leffler_sade=		sade
3940d44ba5dSMarcel Moolenaar.endif
395690f477dSSam Leffler.if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "mips"
396690f477dSSam Leffler_sysinstall=	sysinstall
397690f477dSSam Leffler.endif
398690f477dSSam Leffler.endif
399690f477dSSam Leffler
400690f477dSSam Leffler.if ${MK_TOOLCHAIN} != "no"
401690f477dSSam Leffler_config=	config
402690f477dSSam Leffler_crunch=	crunch
403690f477dSSam Leffler.endif
404690f477dSSam Leffler
405e1fe3dbaSRuslan Ermilov.if ${MK_USB} != "no"
406fe41f260SWeongyo Jeong.if ${MACHINE_ARCH} != "ia64"
407f561843cSWeongyo Jeong_uathload=	uathload
408fe41f260SWeongyo Jeong.endif
4093975e3a1SAndrew Thompson#_usbdevs=	usbdevs
4106f0e1ffdSAlfred Perlstein_usbconfig=	usbconfig
4112b51223fSStefan Eßer.endif
4122b51223fSStefan Eßer
413690f477dSSam Leffler.if ${MK_WIRELESS} != "no"
414690f477dSSam Leffler_ancontrol=	ancontrol
415690f477dSSam Leffler_wlandebug=	wlandebug
416690f477dSSam Leffler_wpa=		wpa
417690f477dSSam Leffler.endif
418690f477dSSam Leffler
41957628e38SOlivier Houchard.if ${MACHINE_ARCH} == "arm"
42057628e38SOlivier Houchard_kgmon=		kgmon
42157628e38SOlivier Houchard.endif
42257628e38SOlivier Houchard
4231a1536c1SJohn Birrell.if ${MACHINE_ARCH} == "i386"
424690f477dSSam Leffler.if ${MK_APM} != "no"
425d10a8d6cSRuslan Ermilov_apm=		apm
426d10a8d6cSRuslan Ermilov_apmd=		apmd
427690f477dSSam Leffler.endif
428d10a8d6cSRuslan Ermilov_asf=		asf
429690f477dSSam Leffler.if ${MK_TOOLCHAIN} != "no"
430d10a8d6cSRuslan Ermilov_btxld=		btxld
431690f477dSSam Leffler.endif
432e085f869SStanislav Sedov_cpucontrol=	cpucontrol
433d10a8d6cSRuslan Ermilov_kgmon=		kgmon
434d10a8d6cSRuslan Ermilov_kgzip=		kgzip
435d10a8d6cSRuslan Ermilov_lptcontrol=	lptcontrol
436cea557adSRuslan Ermilov.if ${MK_NCP} != "no"
437d10a8d6cSRuslan Ermilov_mount_nwfs=	mount_nwfs
438cea557adSRuslan Ermilov.endif
439d10a8d6cSRuslan Ermilov_mount_smbfs=	mount_smbfs
440d10a8d6cSRuslan Ermilov_mptable=	mptable
441690f477dSSam Leffler.if ${MK_NDIS} != "no"
442d10a8d6cSRuslan Ermilov_ndiscvt=	ndiscvt
443690f477dSSam Leffler.endif
444d10a8d6cSRuslan Ermilov_pnpinfo=	pnpinfo
44579e295e8SPoul-Henning Kamp_sicontrol=	sicontrol
446d10a8d6cSRuslan Ermilov_spkrtest=	spkrtest
447d10a8d6cSRuslan Ermilov_zzz=		zzz
448f8eecc08SWarner Losh.if ${MACHINE} == "i386"
449e1fe3dbaSRuslan Ermilov.if ${MK_ACPI} != "no"
450f8eecc08SWarner Losh_acpi=		acpi
451f8eecc08SWarner Losh.endif
452f8eecc08SWarner Losh_boot0cfg=	boot0cfg
453690f477dSSam Leffler.if ${MK_WIRELESS} != "no"
454f8eecc08SWarner Losh_wlconfig=	wlconfig
455690f477dSSam Leffler.endif
456f8eecc08SWarner Losh.elif ${MACHINE} == "pc98"
457f8eecc08SWarner Losh_boot98cfg=	boot98cfg
458f8eecc08SWarner Losh.endif
459f3bb47ccSRuslan Ermilov.endif
4603bc2f9a8SPoul-Henning Kamp
46119f2b0e8SPeter Wemm# kgzip: builds, but missing support files
46219f2b0e8SPeter Wemm# mptable: broken (not 64 bit clean)
46319f2b0e8SPeter Wemm# pnpinfo: crashes (not really useful anyway)
464a6f4ec06SPeter Wemm.if ${MACHINE_ARCH} == "amd64"
465e1fe3dbaSRuslan Ermilov.if ${MK_ACPI} != "no"
466d10a8d6cSRuslan Ermilov_acpi=		acpi
467d10a8d6cSRuslan Ermilov.endif
468d10a8d6cSRuslan Ermilov_asf=		asf
469d10a8d6cSRuslan Ermilov_boot0cfg=	boot0cfg
470690f477dSSam Leffler.if ${MK_TOOLCHAIN} != "no"
471d10a8d6cSRuslan Ermilov_btxld=		btxld
472690f477dSSam Leffler.endif
473e085f869SStanislav Sedov_cpucontrol=	cpucontrol
474be8282baSBruce Evans_kgmon=		kgmon
475d10a8d6cSRuslan Ermilov_lptcontrol=	lptcontrol
476cea557adSRuslan Ermilov.if ${MK_NCP} != "no"
477d10a8d6cSRuslan Ermilov_mount_nwfs=	mount_nwfs
478cea557adSRuslan Ermilov.endif
479d10a8d6cSRuslan Ermilov_mount_smbfs=	mount_smbfs
480d10a8d6cSRuslan Ermilov_mptable=	mptable
481690f477dSSam Leffler.if ${MK_NDIS} != "no"
4824e012474SBill Paul_ndiscvt=	ndiscvt
483690f477dSSam Leffler.endif
48479e295e8SPoul-Henning Kamp_sicontrol=	sicontrol
485d10a8d6cSRuslan Ermilov_spkrtest=	spkrtest
486d10a8d6cSRuslan Ermilov_zzz=		zzz
487a6f4ec06SPeter Wemm.endif
488a6f4ec06SPeter Wemm
489d10a8d6cSRuslan Ermilov.if ${MACHINE_ARCH} == "ia64"
490e1fe3dbaSRuslan Ermilov.if ${MK_ACPI} != "no"
491d10a8d6cSRuslan Ermilov_acpi=		acpi
492c7961209SKATO Takenori.endif
493fb35b471SMarcel Moolenaar_kgmon=		kgmon
494a1800335SMarcel Moolenaar_mount_smbfs=	mount_smbfs
495d10a8d6cSRuslan Ermilov_zzz=		zzz
4966a70fca0SKATO Takenori.endif
497c7961209SKATO Takenori
49859fa7082SR. Imura.if ${MACHINE_ARCH} == "powerpc"
49959fa7082SR. Imura_mount_smbfs=	mount_smbfs
500e5d34218SMaxim Sobolev_nvram=		nvram
501104954feSPeter Grehan_ofwdump=	ofwdump
50259fa7082SR. Imura.endif
50359fa7082SR. Imura
5046f6ede92SThomas Moestl.if ${MACHINE_ARCH} == "sparc64"
505156e1decSMarius Strobl_eeprom=	eeprom
506d10a8d6cSRuslan Ermilov_ofwdump=	ofwdump
507a8ec1b48SMaxim Sobolev.endif
508a8ec1b48SMaxim Sobolev
509dea673e9SRodney W. Grimes.include <bsd.subdir.mk>
510