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