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