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