Makefile revision 1.158
1#	$NetBSD: Makefile,v 1.158 2015/12/01 09:13:57 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
214.endif
215
216.if ${MACHINE_ARCH} == "x86_64"
217SUBDIR+=	compat_linux32
218SUBDIR+=	compat_netbsd32
219SUBDIR+=	compat_netbsd32_nfssrv
220.endif
221
222.if ${MACHINE_ARCH} == "i386"
223SUBDIR+=	ati_pcigart
224SUBDIR+=	compat_freebsd
225SUBDIR+=	compat_ibcs2
226SUBDIR+=	compat_svr4
227SUBDIR+=	mach64drm
228SUBDIR+=	mgadrm
229SUBDIR+=	nsclpcsio
230SUBDIR+=	padlock
231SUBDIR+=	r128drm
232SUBDIR+=	radeondrm
233SUBDIR+=	savagedrm
234SUBDIR+=	sisdrm
235SUBDIR+=	tdfxdrm
236SUBDIR+=	viac7temp
237SUBDIR+=	viadrm
238SUBDIR+=	viadrmums
239.endif
240
241.if ${MACHINE_ARCH} == "i386" || \
242    ${MACHINE_ARCH} == "x86_64"
243SUBDIR+=	azalia
244SUBDIR+=	compat_linux
245SUBDIR+=	drm
246SUBDIR+=	drmkms
247SUBDIR+=	drmkms_linux
248SUBDIR+=	drmkms_pci
249SUBDIR+=	i915drm
250SUBDIR+=	i915drmkms
251SUBDIR+=	pad
252#
253# ISA modules
254#
255SUBDIR+=	aps
256SUBDIR+=	finsio
257SUBDIR+=	itesio
258SUBDIR+=	lm
259SUBDIR+=	lm_isa
260SUBDIR+=	lm_isa_common
261SUBDIR+=	lm_wbsio
262SUBDIR+=	wbsio
263.endif
264
265.if ${MACHINE_CPU} == "m68k"
266SUBDIR+=	compat_aoutm68k
267#SUBDIR+=	compat_linux
268#SUBDIR+=	compat_sunos
269#SUBDIR+=	compat_svr4
270.endif
271
272.if ${MACHINE_ARCH} == "i386" || \
273    ${MACHINE_ARCH} == "x86_64" || \
274    ${MACHINE_ARCH} == "sparc64"
275SUBDIR+=	pwdog
276.endif
277
278.include <bsd.own.mk>
279
280#
281# NetBSD/usermode support
282#
283.if ${MACHINE_ARCH} == "i386" || \
284    ${MACHINE_ARCH} == "x86_64"
285SUBDIR+=	../arch/usermode/modules/syscallemu
286.endif
287
288# we need our device mapper for LVM
289.if (${MKLVM} != "no")
290SUBDIR+= 	dm
291.endif
292
293.if (${MKDTRACE} != "no")
294SUBDIR+=	cyclic
295SUBDIR+=	dtrace
296.endif
297
298# we need solaris for the dtrace and zfs modules
299.if (${MKDTRACE} != "no" || ${MKZFS} != "no")
300SUBDIR+=        solaris
301.endif
302
303.if (${MKZFS} != "no")
304SUBDIR+=	zfs
305.endif
306
307.if (${MKCOMPATMODULES} != "no")
308SUBDIR+=	arch
309.endif
310
311#
312# DTV modules
313#
314SUBDIR+=	dtv
315SUBDIR+=	dtv_math
316.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
317# tuners/demods
318SUBDIR+=	au8522
319SUBDIR+=	cx24227
320SUBDIR+=	lg3303
321SUBDIR+=	mt2131
322SUBDIR+=	nxt2k
323SUBDIR+=	tvpll
324SUBDIR+=	xc3028
325SUBDIR+=	xc5k
326SUBDIR+=	zl10353
327# hardware drivers
328SUBDIR+=	auvitek
329SUBDIR+=	coram
330SUBDIR+=	cxdtv
331SUBDIR+=	emdtv
332SUBDIR+=	spkr
333.endif
334
335.if (${MKISCSI} != "no")
336SUBDIR+=	iscsi
337.endif
338
339SUBDIR+=	examples	# build these regularly to avoid bit-rot
340
341.include <bsd.subdir.mk>
342