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