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