Makefile revision 1.172
1#	$NetBSD: Makefile,v 1.172 2016/08/06 12:44:03 christos Exp $
2
3.include <bsd.own.mk>
4
5# For all platforms
6
7SUBDIR=		accf_dataready
8SUBDIR+=	accf_httpready
9SUBDIR+=	adosfs
10SUBDIR+=	aio
11SUBDIR+=	blowfish
12SUBDIR+=	bpf
13SUBDIR+=	bpf_filter
14SUBDIR+=	camellia
15SUBDIR+=	cast128
16SUBDIR+=	ccd
17SUBDIR+=	cd9660
18SUBDIR+=	cgd
19SUBDIR+=	chfs
20SUBDIR+=	clockctl
21SUBDIR+=	crypto
22SUBDIR+=	coda
23SUBDIR+=	coda5
24SUBDIR+=	compat
25SUBDIR+=	compat_ossaudio
26SUBDIR+=	coredump
27SUBDIR+=	dbcool
28SUBDIR+=	des
29SUBDIR+=	dk_subr
30SUBDIR+=	drvctl
31SUBDIR+=	efs
32SUBDIR+=	ext2fs
33SUBDIR+=	exec_script
34SUBDIR+=	fdesc
35SUBDIR+=	ffs
36SUBDIR+=	filecore
37SUBDIR+=	filemon
38SUBDIR+=	flash
39SUBDIR+=	fss
40SUBDIR+=	gpio
41SUBDIR+=	gpioiic
42SUBDIR+=	gpioow
43SUBDIR+=	gpiosim
44SUBDIR+=	hfs
45SUBDIR+=	hythygtemp
46SUBDIR+=	i2cexec
47SUBDIR+=	i2c_bitbang
48SUBDIR+=	if_axe
49SUBDIR+=	if_axen
50SUBDIR+=	if_npflog
51SUBDIR+=	if_ppp
52SUBDIR+=	if_sl
53SUBDIR+=	if_smsc
54SUBDIR+=	if_strip
55SUBDIR+=	iic
56SUBDIR+=	ipl
57SUBDIR+=	kernfs
58SUBDIR+=	layerfs
59SUBDIR+=	lfs
60SUBDIR+=	lua
61SUBDIR+=	luasystm
62SUBDIR+=	luapmf
63SUBDIR+=	mfs
64SUBDIR+=	miiverbose
65SUBDIR+=	miniroot
66SUBDIR+=	mqueue
67SUBDIR+=	msdos
68SUBDIR+=	nand
69SUBDIR+=	nandemulator
70SUBDIR+=	nfs
71SUBDIR+=	nfsserver
72SUBDIR+=	nilfs
73SUBDIR+=	npf
74SUBDIR+=	npf_alg_icmp
75SUBDIR+=	npf_ext_log
76SUBDIR+=	npf_ext_normalize
77SUBDIR+=	npf_ext_rndblock
78SUBDIR+=	ntfs
79SUBDIR+=	null
80SUBDIR+=	onewire
81SUBDIR+=	opencrypto
82SUBDIR+=	overlay
83SUBDIR+=	pciverbose
84SUBDIR+=	pf
85SUBDIR+=	ppp_bsdcomp
86SUBDIR+=	ppp_deflate
87SUBDIR+=	procfs
88SUBDIR+=	ptyfs
89SUBDIR+=	puffs
90SUBDIR+=	putter
91SUBDIR+=	raid
92SUBDIR+=	scsiverbose
93SUBDIR+=	sdtemp
94SUBDIR+=	secmodel_bsd44
95SUBDIR+=	secmodel_extensions
96SUBDIR+=	secmodel_overlay
97SUBDIR+=	securelevel
98SUBDIR+=	skipjack
99SUBDIR+=	slcompress
100SUBDIR+=	smbfs
101SUBDIR+=	spdmem
102SUBDIR+=	sysmon
103SUBDIR+=	sysmon_envsys
104SUBDIR+=	sysmon_power
105SUBDIR+=	sysmon_taskq
106SUBDIR+=	sysmon_wdog
107SUBDIR+=	sysvbfs
108SUBDIR+=	sysv_ipc
109SUBDIR+=	suser
110SUBDIR+=	swcrypto
111SUBDIR+=	swsensor
112SUBDIR+=	swwdog
113SUBDIR+=	tmpfs
114SUBDIR+=	uatp
115SUBDIR+=	udf
116SUBDIR+=	umap
117SUBDIR+=	union
118SUBDIR+=	usbverbose
119SUBDIR+=	vcoda
120SUBDIR+=	v7fs
121SUBDIR+=	vnd
122SUBDIR+=	wapbl
123SUBDIR+=	zlib
124SUBDIR+=	tprof
125.if (defined(NOTYET))
126SUBDIR+=	hifn		# Builds on architectures with PCI bus
127SUBDIR+=	unionfs
128.endif
129.if ${MKBINUTILS} != "no"
130SUBDIR+=	xldscripts
131.endif
132
133# Machine dependent section
134.if ${MACHINE_ARCH} == "i386" || \
135    ${MACHINE_CPU} == "m68k"
136SUBDIR+=	exec_aout
137.endif
138
139.if ${MACHINE_ARCH} != "alpha" && \
140    ${MACHINE_CPU} != "aarch64" && \
141    ${MACHINE_ARCH} != "ia64"
142SUBDIR+=	exec_elf32
143.endif
144
145.if ${MACHINE_CPU} == "aarch64" || \
146    ${MACHINE_ARCH} == "alpha" || \
147    ${MACHINE_ARCH} == "ia64" || \
148    ${MACHINE_ARCH} == "sparc64" || \
149    ${MACHINE_ARCH} == "x86_64"
150SUBDIR+=	exec_elf64
151.endif
152
153.if ${MACHINE_ARCH} == "i386" || \
154    ${MACHINE_ARCH} == "x86_64"
155SUBDIR+=	amdtemp
156SUBDIR+=	coretemp
157SUBDIR+=	est
158SUBDIR+=	hdafg
159SUBDIR+=	hdaudio
160SUBDIR+=	hdaudio_pci
161SUBDIR+=	hdaudioverbose
162SUBDIR+=	hpet
163SUBDIR+=	odcm
164SUBDIR+=	powernow
165SUBDIR+=	tco
166SUBDIR+=	tprof_pmi
167SUBDIR+=	tprof_amdpmi
168SUBDIR+=	vmt
169.endif
170
171.if ${MACHINE_ARCH} == "i386" || \
172    ${MACHINE_ARCH} == "x86_64"
173SUBDIR+=	ubsec		# Builds on architectures with PCI bus
174.endif
175
176.if ${MKSLJIT} != "no"
177# No modules for arm, mips and powerpc yet.
178.if ${MACHINE_ARCH} == "i386" || \
179    ${MACHINE_ARCH} == "x86_64" || \
180    ${MACHINE_ARCH} == "sparc"
181SUBDIR+=	bpfjit
182SUBDIR+=	sljit
183.endif
184.endif
185
186#
187# ACPI modules
188#
189.if ${MACHINE_ARCH} == "i386" || \
190    ${MACHINE_ARCH} == "ia64" || \
191    ${MACHINE_ARCH} == "x86_64"
192SUBDIR+=	acpiverbose
193.endif
194
195.if ${MACHINE_ARCH} == "i386" || \
196    ${MACHINE_ARCH} == "x86_64"
197SUBDIR+=	acpiacad
198SUBDIR+=	acpibat
199SUBDIR+=	acpibut
200SUBDIR+=	acpicpu
201SUBDIR+=	acpidalb
202SUBDIR+=	acpifan
203SUBDIR+=	acpilid
204SUBDIR+=	acpipmtr
205SUBDIR+=	acpitz
206SUBDIR+=	acpivga
207SUBDIR+=	acpiwdrt
208SUBDIR+=	acpiwmi
209SUBDIR+=	aibs
210SUBDIR+=	asus
211SUBDIR+=	fujbp
212SUBDIR+=	fujhk
213SUBDIR+=	hpacel
214SUBDIR+=	hpqlb
215SUBDIR+=	thinkpad
216SUBDIR+=	wmidell
217SUBDIR+=	wmieeepc
218SUBDIR+=	wmihp
219SUBDIR+=	wmimsi
220.endif
221
222.if ${MACHINE_CPU} == "arm" \
223    || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE))
224SUBDIR+=	compat_netbsd32
225SUBDIR+=	compat_netbsd32_nfssrv
226SUBDIR+=	compat_netbsd32_mqueue
227SUBDIR+=	compat_netbsd32_sysvipc
228.endif
229
230.if ${MACHINE_ARCH} == "x86_64"
231SUBDIR+=	compat_linux32
232SUBDIR+=	compat_netbsd32
233SUBDIR+=	compat_netbsd32_nfssrv
234SUBDIR+=	compat_netbsd32_mqueue
235SUBDIR+=	compat_netbsd32_sysvipc
236.endif
237
238.if ${MACHINE_ARCH} == "i386"
239SUBDIR+=	ati_pcigart
240SUBDIR+=	compat_freebsd
241SUBDIR+=	compat_ibcs2
242SUBDIR+=	compat_svr4
243SUBDIR+=	mach64drm
244SUBDIR+=	mgadrm
245SUBDIR+=	nsclpcsio
246SUBDIR+=	padlock
247SUBDIR+=	r128drm
248SUBDIR+=	radeondrm
249SUBDIR+=	savagedrm
250SUBDIR+=	sisdrm
251SUBDIR+=	tdfxdrm
252SUBDIR+=	viac7temp
253SUBDIR+=	viadrm
254SUBDIR+=	viadrmums
255.endif
256
257.if ${MACHINE_ARCH} == "i386" || \
258    ${MACHINE_ARCH} == "x86_64"
259SUBDIR+=	azalia
260SUBDIR+=	compat_linux
261SUBDIR+=	drm
262SUBDIR+=	drmkms
263SUBDIR+=	drmkms_linux
264SUBDIR+=	drmkms_pci
265SUBDIR+=	i915drm
266SUBDIR+=	i915drmkms
267SUBDIR+=	pad
268#
269# ISA modules
270#
271SUBDIR+=	aps
272SUBDIR+=	finsio
273SUBDIR+=	itesio
274SUBDIR+=	lm
275SUBDIR+=	lm_isa
276SUBDIR+=	lm_isa_common
277SUBDIR+=	lm_wbsio
278SUBDIR+=	wbsio
279.endif
280
281.if ${MACHINE_CPU} == "m68k"
282SUBDIR+=	compat_aoutm68k
283#SUBDIR+=	compat_linux
284#SUBDIR+=	compat_sunos
285#SUBDIR+=	compat_svr4
286.endif
287
288.if ${MACHINE_ARCH} == "i386" || \
289    ${MACHINE_ARCH} == "x86_64" || \
290    ${MACHINE_ARCH} == "sparc64"
291SUBDIR+=	pwdog
292.endif
293
294.include <bsd.own.mk>
295
296#
297# NetBSD/usermode support
298#
299.if ${MACHINE_ARCH} == "i386" || \
300    ${MACHINE_ARCH} == "x86_64"
301SUBDIR+=	../arch/usermode/modules/syscallemu
302.endif
303
304# we need our device mapper for LVM
305.if (${MKLVM} != "no")
306SUBDIR+= 	dm
307.endif
308
309.if (${MKDTRACE} != "no")
310SUBDIR+=	cyclic
311SUBDIR+=	dtrace
312.endif
313
314# we need solaris for the dtrace and zfs modules
315.if (${MKDTRACE} != "no" || ${MKZFS} != "no")
316SUBDIR+=        solaris
317.endif
318
319.if (${MKZFS} != "no")
320SUBDIR+=	zfs
321.endif
322
323.if (${MKCOMPATMODULES} != "no")
324SUBDIR+=	arch
325.endif
326
327#
328# DTV modules
329#
330SUBDIR+=	dtv
331SUBDIR+=	dtv_math
332.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
333# tuners/demods
334SUBDIR+=	au8522
335SUBDIR+=	cx24227
336SUBDIR+=	lg3303
337SUBDIR+=	mt2131
338SUBDIR+=	nxt2k
339SUBDIR+=	tvpll
340SUBDIR+=	xc3028
341SUBDIR+=	xc5k
342SUBDIR+=	zl10353
343# hardware drivers
344SUBDIR+=	auvitek
345SUBDIR+=	coram
346SUBDIR+=	cxdtv
347SUBDIR+=	emdtv
348SUBDIR+=	spkr
349.endif
350
351.if (${MKISCSI} != "no")
352SUBDIR+=	iscsi
353.endif
354
355SUBDIR+=	examples	# build these regularly to avoid bit-rot
356
357.include <bsd.subdir.mk>
358