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