Makefile revision 1.187
1#	$NetBSD: Makefile,v 1.187 2016/12/15 04:37:00 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+=	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+=	sppp_subr
120SUBDIR+=	sysmon
121SUBDIR+=	sysmon_envsys
122SUBDIR+=	sysmon_power
123SUBDIR+=	sysmon_taskq
124SUBDIR+=	sysmon_wdog
125SUBDIR+=	sysvbfs
126SUBDIR+=	sysv_ipc
127SUBDIR+=	suser
128SUBDIR+=	swcrypto
129SUBDIR+=	swsensor
130SUBDIR+=	swwdog
131SUBDIR+=	tmpfs
132SUBDIR+=	uatp
133SUBDIR+=	udf
134SUBDIR+=	umap
135SUBDIR+=	union
136SUBDIR+=	usbverbose
137SUBDIR+=	vcoda
138SUBDIR+=	v7fs
139SUBDIR+=	vnd
140SUBDIR+=	wapbl
141SUBDIR+=	zlib
142SUBDIR+=	tprof
143.if (defined(NOTYET))
144SUBDIR+=	hifn		# Builds on architectures with PCI bus
145SUBDIR+=	unionfs
146.endif
147.if ${MKBINUTILS} != "no"
148SUBDIR+=	xldscripts
149.endif
150
151# Machine dependent section
152.if ${MACHINE_ARCH} == "i386" || \
153    ${MACHINE_CPU} == "m68k"
154SUBDIR+=	exec_aout
155.endif
156
157.if ${MACHINE_ARCH} != "alpha" && \
158    ${MACHINE_CPU} != "aarch64" && \
159    ${MACHINE_ARCH} != "ia64"
160SUBDIR+=	exec_elf32
161.endif
162
163.if ${MACHINE_CPU} == "aarch64" || \
164    ${MACHINE_ARCH} == "alpha" || \
165    ${MACHINE_ARCH} == "ia64" || \
166    ${MACHINE_ARCH} == "sparc64" || \
167    ${MACHINE_ARCH} == "x86_64"
168SUBDIR+=	exec_elf64
169.endif
170
171.if ${MACHINE_ARCH} == "i386" || \
172    ${MACHINE_ARCH} == "x86_64"
173SUBDIR+=	amdtemp
174SUBDIR+=	coretemp
175SUBDIR+=	est
176SUBDIR+=	hdafg
177SUBDIR+=	hdaudio
178SUBDIR+=	hdaudio_pci
179SUBDIR+=	hdaudioverbose
180SUBDIR+=	hpet
181SUBDIR+=	odcm
182SUBDIR+=	powernow
183SUBDIR+=	tco
184SUBDIR+=	tprof_pmi
185SUBDIR+=	tprof_amdpmi
186SUBDIR+=	vmt
187.endif
188
189.if ${MACHINE_ARCH} == "i386" || \
190    ${MACHINE_ARCH} == "x86_64"
191SUBDIR+=	ubsec		# Builds on architectures with PCI bus
192.endif
193
194.if ${MKSLJIT} != "no"
195# No modules for arm, mips and powerpc yet.
196.if ${MACHINE_ARCH} == "i386" || \
197    ${MACHINE_ARCH} == "x86_64" || \
198    ${MACHINE_ARCH} == "sparc"
199SUBDIR+=	bpfjit
200SUBDIR+=	sljit
201.endif
202.endif
203
204#
205# ACPI modules
206#
207.if ${MACHINE_ARCH} == "i386" || \
208    ${MACHINE_ARCH} == "ia64" || \
209    ${MACHINE_ARCH} == "x86_64"
210SUBDIR+=	acpiverbose
211.endif
212
213.if ${MACHINE_ARCH} == "i386" || \
214    ${MACHINE_ARCH} == "x86_64"
215SUBDIR+=	acpiacad
216SUBDIR+=	acpibat
217SUBDIR+=	acpibut
218SUBDIR+=	acpicpu
219SUBDIR+=	acpidalb
220SUBDIR+=	acpifan
221SUBDIR+=	acpilid
222SUBDIR+=	acpipmtr
223SUBDIR+=	acpitz
224SUBDIR+=	acpivga
225SUBDIR+=	acpiwdrt
226SUBDIR+=	acpiwmi
227SUBDIR+=	aibs
228SUBDIR+=	asus
229SUBDIR+=	fujbp
230SUBDIR+=	fujhk
231SUBDIR+=	hpacel
232SUBDIR+=	hpqlb
233SUBDIR+=	thinkpad
234SUBDIR+=	wmidell
235SUBDIR+=	wmieeepc
236SUBDIR+=	wmihp
237SUBDIR+=	wmimsi
238.endif
239
240.if ${MACHINE_CPU} == "arm" \
241    || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE))
242SUBDIR+=	compat_netbsd32
243SUBDIR+=	compat_netbsd32_mqueue
244SUBDIR+=	compat_netbsd32_nfssrv
245SUBDIR+=	compat_netbsd32_ptrace
246SUBDIR+=	compat_netbsd32_sysvipc
247.endif
248
249.if ${MACHINE_ARCH} == "x86_64"
250SUBDIR+=	compat_linux32
251SUBDIR+=	compat_netbsd32
252SUBDIR+=	compat_netbsd32_mqueue
253SUBDIR+=	compat_netbsd32_nfssrv
254SUBDIR+=	compat_netbsd32_ptrace
255SUBDIR+=	compat_netbsd32_sysvipc
256.endif
257
258.if ${MACHINE_ARCH} == "i386"
259SUBDIR+=	ati_pcigart
260SUBDIR+=	compat_freebsd
261SUBDIR+=	compat_ibcs2
262SUBDIR+=	compat_svr4
263SUBDIR+=	mach64drm
264SUBDIR+=	mgadrm
265SUBDIR+=	nsclpcsio
266SUBDIR+=	padlock
267SUBDIR+=	r128drm
268SUBDIR+=	radeondrm
269SUBDIR+=	savagedrm
270SUBDIR+=	sisdrm
271SUBDIR+=	tdfxdrm
272SUBDIR+=	viac7temp
273SUBDIR+=	viadrm
274SUBDIR+=	viadrmums
275.endif
276
277.if ${MACHINE_ARCH} == "i386" || \
278    ${MACHINE_ARCH} == "x86_64"
279SUBDIR+=	azalia
280SUBDIR+=	compat_linux
281SUBDIR+=	drm
282SUBDIR+=	drmkms
283SUBDIR+=	drmkms_linux
284SUBDIR+=	drmkms_pci
285SUBDIR+=	i915drm
286SUBDIR+=	i915drmkms
287SUBDIR+=	pad
288#
289# ISA modules
290#
291SUBDIR+=	aps
292SUBDIR+=	finsio
293SUBDIR+=	itesio
294SUBDIR+=	lm
295SUBDIR+=	lm_isa
296SUBDIR+=	lm_isa_common
297SUBDIR+=	lm_wbsio
298SUBDIR+=	wbsio
299.endif
300
301.if ${MACHINE_CPU} == "m68k"
302SUBDIR+=	compat_aoutm68k
303#SUBDIR+=	compat_linux
304#SUBDIR+=	compat_sunos
305#SUBDIR+=	compat_svr4
306.endif
307
308.if ${MACHINE_ARCH} == "i386" || \
309    ${MACHINE_ARCH} == "x86_64" || \
310    ${MACHINE_ARCH} == "sparc64"
311SUBDIR+=	pwdog
312.endif
313
314.include <bsd.own.mk>
315
316#
317# NetBSD/usermode support
318#
319.if ${MACHINE_ARCH} == "i386" || \
320    ${MACHINE_ARCH} == "x86_64"
321SUBDIR+=	../arch/usermode/modules/syscallemu
322.endif
323
324# we need our device mapper for LVM
325.if (${MKLVM} != "no")
326SUBDIR+= 	dm
327.endif
328
329.if (${MKDTRACE} != "no")
330SUBDIR+=	cyclic
331SUBDIR+=	dtrace
332.endif
333
334# we need solaris for the dtrace and zfs modules
335.if (${MKDTRACE} != "no" || ${MKZFS} != "no")
336SUBDIR+=        solaris
337.endif
338
339.if (${MKZFS} != "no")
340SUBDIR+=	zfs
341.endif
342
343.if (${MKCOMPATMODULES} != "no")
344SUBDIR+=	arch
345.endif
346
347#
348# DTV modules
349#
350SUBDIR+=	dtv
351SUBDIR+=	dtv_math
352.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
353# tuners/demods
354SUBDIR+=	au8522
355SUBDIR+=	cx24227
356SUBDIR+=	lg3303
357SUBDIR+=	mt2131
358SUBDIR+=	nxt2k
359SUBDIR+=	tvpll
360SUBDIR+=	xc3028
361SUBDIR+=	xc5k
362SUBDIR+=	zl10353
363# hardware drivers
364SUBDIR+=	auvitek
365SUBDIR+=	coram
366SUBDIR+=	cxdtv
367SUBDIR+=	emdtv
368SUBDIR+=	spkr
369.endif
370
371.if (${MKISCSI} != "no")
372SUBDIR+=	iscsi
373.endif
374
375# For now, all of these are disabled, pending resolution of how to deal
376# with attachment-specific modules and bus-specific modules (as opposed
377# to machine- or architecture-specific modules)
378
379.if 0
380SUBDIR+=	aac
381SUBDIR+=	amr
382SUBDIR+=	ataraid
383SUBDIR+=	cac
384SUBDIR+=	cac_eisa
385SUBDIR+=	cac_pci
386SUBDIR+=	if_vioif
387SUBDIR+=	ld
388SUBDIR+=	ld_aac
389SUBDIR+=	ld_amr
390SUBDIR+=	ld_ataraid
391SUBDIR+=	ld_cac
392SUBDIR+=	ld_icp
393SUBDIR+=	ld_mlx
394SUBDIR+=	ld_sdmmc
395SUBDIR+=	ld_twa
396SUBDIR+=	ld_twe
397SUBDIR+=	ld_virtio
398SUBDIR+=	mlx
399SUBDIR+=	mlx_eisa
400SUBDIR+=	mlx_pci
401SUBDIR+=	ld_nvme
402SUBDIR+=	nvme
403SUBDIR+=	twa
404SUBDIR+=	twe
405SUBDIR+=	viomb
406SUBDIR+=	virtio
407.endif
408
409SUBDIR+=	examples	# build these regularly to avoid bit-rot
410
411.include <bsd.subdir.mk>
412