xref: /netbsd-src/sys/modules/Makefile (revision 63d4abf06d37aace2f9e41a494102a64fe3abddb)
1#	$NetBSD: Makefile,v 1.39 2010/02/21 11:14:47 darran 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+=	efs
19SUBDIR+=	ext2fs
20SUBDIR+=	exec_script
21SUBDIR+=	fdesc
22SUBDIR+=	ffs
23SUBDIR+=	filecore
24SUBDIR+=	fss
25SUBDIR+=	hfs
26SUBDIR+=	kernfs
27SUBDIR+=	ksem
28SUBDIR+=	layerfs
29SUBDIR+=	lfs
30SUBDIR+=	mfs
31SUBDIR+=	mqueue
32SUBDIR+=	msdos
33SUBDIR+=	nfs
34SUBDIR+=	nfsserver
35SUBDIR+=	nilfs
36SUBDIR+=	ntfs
37SUBDIR+=	null
38SUBDIR+=	overlay
39SUBDIR+=	ppp_bsdcomp
40SUBDIR+=	ppp_deflate
41SUBDIR+=	procfs
42SUBDIR+=	ptyfs
43SUBDIR+=	puffs
44SUBDIR+=	putter
45SUBDIR+=	miniroot
46SUBDIR+=	secmodel_bsd44
47SUBDIR+=	secmodel_overlay
48SUBDIR+=	securelevel
49SUBDIR+=	smbfs
50SUBDIR+=	sysvbfs
51SUBDIR+=	suser
52SUBDIR+=	tmpfs
53SUBDIR+=	udf
54SUBDIR+=	umap
55SUBDIR+=	union
56SUBDIR+=	vnd
57SUBDIR+=	tprof
58.if (defined(NOTYET))
59SUBDIR+=	unionfs
60.endif
61.if ${MKBINUTILS} != "no"
62SUBDIR+=	xldscripts
63.endif
64
65# Machine dependent section
66.if ${MACHINE_ARCH} != "alpha"
67SUBDIR+=	exec_elf32
68.endif
69
70.if ${MACHINE_ARCH} == "alpha" || \
71    ${MACHINE_ARCH} == "sparc64" || \
72    ${MACHINE_ARCH} == "x86_64"
73SUBDIR+=	exec_elf64
74.endif
75
76.if ${MACHINE_ARCH} == "i386" || \
77    ${MACHINE_ARCH} == "x86_64"
78SUBDIR+=	tprof_pmi
79.endif
80
81.if ${MACHINE_ARCH} == "x86_64"
82SUBDIR+=	azalia
83SUBDIR+=	compat_linux
84SUBDIR+=	compat_linux32
85SUBDIR+=	compat_netbsd32
86SUBDIR+=	drm
87SUBDIR+=	i915drm
88.endif
89
90.if ${MACHINE_ARCH} == "i386"
91SUBDIR+=	azalia
92SUBDIR+=	compat_freebsd
93SUBDIR+=	compat_ibcs2
94SUBDIR+=	compat_linux
95SUBDIR+=	compat_svr4
96SUBDIR+=	drm
97SUBDIR+=	exec_aout
98SUBDIR+=	i915drm
99SUBDIR+=	radeondrm
100SUBDIR+=	viadrm
101.endif
102
103.include <bsd.own.mk>
104
105# we need our device mapper for LVM
106.if (${MKLVM} != "no")
107SUBDIR+= 	dm
108.endif
109
110.if (${MKDTRACE} != "no")
111SUBDIR+=	dtrace
112.endif
113
114# we need solaris for the dtrace and zfs modules
115.if (${MKDTRACE} != "no" || ${MKZFS} != "no")
116SUBDIR+=        solaris
117.endif
118
119.if (${MKZFS} != "no")
120SUBDIR+=	zfs
121.endif
122
123.include <bsd.subdir.mk>
124