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