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