Makefile revision 1.105
1#	$NetBSD: Makefile,v 1.105 2012/04/25 13:55:17 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+=	bpf
12SUBDIR+=	cd9660
13SUBDIR+=	coda
14SUBDIR+=	coda5
15SUBDIR+=	compat
16SUBDIR+=	compat_ossaudio
17SUBDIR+=	coredump
18SUBDIR+=	chfs
19SUBDIR+=	dbcool
20SUBDIR+=	efs
21SUBDIR+=	ext2fs
22SUBDIR+=	exec_script
23SUBDIR+=	fdesc
24SUBDIR+=	ffs
25SUBDIR+=	filecore
26SUBDIR+=	filemon
27SUBDIR+=	flash
28SUBDIR+=	fss
29SUBDIR+=	gpio
30SUBDIR+=	gpioiic
31SUBDIR+=	gpioow
32SUBDIR+=	gpiosim
33SUBDIR+=	hfs
34SUBDIR+=	if_axe
35SUBDIR+=	iic
36SUBDIR+=	kernfs
37SUBDIR+=	layerfs
38SUBDIR+=	lfs
39SUBDIR+=	mfs
40SUBDIR+=	miiverbose
41SUBDIR+=	miniroot
42SUBDIR+=	mqueue
43SUBDIR+=	msdos
44SUBDIR+=	nand
45SUBDIR+=	nandemulator
46SUBDIR+=	nfs
47SUBDIR+=	nfsserver
48SUBDIR+=	nilfs
49SUBDIR+=	npf
50SUBDIR+=	npf_alg_icmp
51SUBDIR+=	ntfs
52SUBDIR+=	null
53SUBDIR+=	onewire
54SUBDIR+=	overlay
55SUBDIR+=	pciverbose
56SUBDIR+=	pf
57SUBDIR+=	ppp_bsdcomp
58SUBDIR+=	ppp_deflate
59SUBDIR+=	procfs
60SUBDIR+=	ptyfs
61SUBDIR+=	puffs
62SUBDIR+=	putter
63SUBDIR+=	scsiverbose
64SUBDIR+=	sdtemp
65SUBDIR+=	secmodel_bsd44
66SUBDIR+=	secmodel_extensions
67SUBDIR+=	secmodel_overlay
68SUBDIR+=	securelevel
69SUBDIR+=	smbfs
70SUBDIR+=	spdmem
71SUBDIR+=	sysvbfs
72SUBDIR+=	suser
73SUBDIR+=	swsensor
74SUBDIR+=	tmpfs
75SUBDIR+=	udf
76SUBDIR+=	umap
77SUBDIR+=	union
78SUBDIR+=	usbverbose
79SUBDIR+=	v7fs
80SUBDIR+=	vnd
81SUBDIR+=	tprof
82.if (defined(NOTYET))
83SUBDIR+=	unionfs
84.endif
85.if ${MKBINUTILS} != "no"
86SUBDIR+=	xldscripts
87.endif
88
89# Machine dependent section
90.if ${MACHINE_ARCH} == "i386" || \
91    ${MACHINE_CPU} == "m68k"
92SUBDIR+=	exec_aout
93.endif
94
95.if ${MACHINE_ARCH} != "alpha"
96SUBDIR+=	exec_elf32
97.endif
98
99.if ${MACHINE_ARCH} == "alpha" || \
100    ${MACHINE_ARCH} == "sparc64" || \
101    ${MACHINE_ARCH} == "x86_64"
102SUBDIR+=	exec_elf64
103.endif
104
105.if ${MACHINE_ARCH} == "i386" || \
106    ${MACHINE_ARCH} == "x86_64"
107SUBDIR+=	amdtemp
108SUBDIR+=	coretemp
109SUBDIR+=	est
110SUBDIR+=	hpet
111SUBDIR+=	odcm
112SUBDIR+=	powernow
113SUBDIR+=	tprof_pmi
114SUBDIR+=	tprof_amdpmi
115SUBDIR+=	vmt
116.endif
117
118#
119# ACPI modules
120#
121.if ${MACHINE_ARCH} == "i386" || \
122    ${MACHINE_ARCH} == "ia64" || \
123    ${MACHINE_ARCH} == "x86_64"
124SUBDIR+=	acpiverbose
125.endif
126
127.if ${MACHINE_ARCH} == "i386" || \
128    ${MACHINE_ARCH} == "x86_64"
129SUBDIR+=	acpiacad
130SUBDIR+=	acpibat
131SUBDIR+=	acpibut
132SUBDIR+=	acpicpu
133SUBDIR+=	acpidalb
134SUBDIR+=	acpifan
135SUBDIR+=	acpilid
136SUBDIR+=	acpipmtr
137SUBDIR+=	acpitz
138SUBDIR+=	acpivga
139SUBDIR+=	acpiwdrt
140SUBDIR+=	acpiwmi
141SUBDIR+=	aibs
142SUBDIR+=	asus
143SUBDIR+=	fujbp
144SUBDIR+=	fujhk
145SUBDIR+=	hpacel
146SUBDIR+=	hpqlb
147SUBDIR+=	thinkpad
148SUBDIR+=	wmidell
149SUBDIR+=	wmieeepc
150SUBDIR+=	wmihp
151SUBDIR+=	wmimsi
152.endif
153
154.if ${MACHINE_ARCH} == "x86_64"
155SUBDIR+=	azalia
156SUBDIR+=	compat_linux
157SUBDIR+=	compat_linux32
158SUBDIR+=	compat_netbsd32
159SUBDIR+=	drm
160SUBDIR+=	i915drm
161SUBDIR+=	pad
162.endif
163
164.if ${MACHINE_ARCH} == "i386"
165SUBDIR+=	ati_pcigart
166SUBDIR+=	azalia
167SUBDIR+=	compat_freebsd
168SUBDIR+=	compat_ibcs2
169SUBDIR+=	compat_linux
170SUBDIR+=	compat_svr4
171SUBDIR+=	drm
172SUBDIR+=	i915drm
173SUBDIR+=	mach64drm
174SUBDIR+=	mgadrm
175SUBDIR+=	nsclpcsio
176SUBDIR+=	pad
177SUBDIR+=	padlock
178SUBDIR+=	r128drm
179SUBDIR+=	radeondrm
180SUBDIR+=	savagedrm
181SUBDIR+=	sisdrm
182SUBDIR+=	tdfxdrm
183SUBDIR+=	viac7temp
184SUBDIR+=	viadrm
185.endif
186
187#
188# ISA modules
189#
190.if ${MACHINE_ARCH} == "i386" || \
191    ${MACHINE_ARCH} == "x86_64"
192SUBDIR+=	aps
193SUBDIR+=	finsio
194SUBDIR+=	itesio
195SUBDIR+=	lm
196SUBDIR+=	lm_isa
197SUBDIR+=	lm_isa_common
198SUBDIR+=	lm_wbsio
199SUBDIR+=	wbsio
200.endif
201
202.if ${MACHINE_CPU} == "m68k"
203SUBDIR+=	compat_aoutm68k
204#SUBDIR+=	compat_linux
205#SUBDIR+=	compat_sunos
206#SUBDIR+=	compat_svr4
207.endif
208
209.if ${MACHINE_ARCH} == "i386" || \
210    ${MACHINE_ARCH} == "x86_64" || \
211    ${MACHINE_ARCH} == "sparc64"
212SUBDIR+=	pwdog
213.endif
214
215.include <bsd.own.mk>
216
217# we need our device mapper for LVM
218.if (${MKLVM} != "no")
219SUBDIR+= 	dm
220.endif
221
222.if (${MKDTRACE} != "no")
223SUBDIR+=	dtrace
224.endif
225
226# we need solaris for the dtrace and zfs modules
227.if (${MKDTRACE} != "no" || ${MKZFS} != "no")
228SUBDIR+=        solaris
229.endif
230
231.if (${MKZFS} != "no")
232SUBDIR+=	zfs
233.endif
234
235.if (${MKCOMPATMODULES} != "no")
236SUBDIR+=	arch
237.endif
238
239#
240# DTV modules
241#
242SUBDIR+=	dtv
243SUBDIR+=	dtv_math
244.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
245# tuners/demods
246SUBDIR+=	au8522
247SUBDIR+=	cx24227
248SUBDIR+=	lg3303
249SUBDIR+=	mt2131
250SUBDIR+=	nxt2k
251SUBDIR+=	tvpll
252SUBDIR+=	xc3028
253SUBDIR+=	xc5k
254SUBDIR+=	zl10353
255# hardware drivers
256SUBDIR+=	auvitek
257SUBDIR+=	coram
258SUBDIR+=	cxdtv
259SUBDIR+=	emdtv
260.endif
261
262.if (${MKISCSI} != "no")
263SUBDIR+=	iscsi
264.endif
265
266.include <bsd.subdir.mk>
267