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