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