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