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