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