Home | History | Annotate | Line # | Download | only in modules
Makefile revision 1.202.2.23
      1 #	$NetBSD: Makefile,v 1.202.2.23 2018/06/25 07:26:05 pgoyette Exp $
      2 
      3 .include <bsd.own.mk>
      4 
      5 # For all platforms
      6 
      7 # Modules for compatability with earlier versions of NetBSD
      8 
      9 SUBDIR+=	compat      compat_util
     10 SUBDIR+=	compat_43   compat_sysctl_09_43
     11 SUBDIR+=	compat_09   compat_10   compat_12   compat_13   compat_14
     12 SUBDIR+=	compat_16   compat_20   compat_30   compat_40   compat_50
     13 SUBDIR+=	compat_60   compat_70   compat_80 
     14 
     15 SUBDIR+=	compat_sysv compat_sysv_10 compat_sysv_14 compat_sysv_50
     16 
     17 SUBDIR+=	accf_dataready
     18 SUBDIR+=	accf_httpready
     19 SUBDIR+=	adosfs
     20 SUBDIR+=	aio
     21 SUBDIR+=	audio
     22 SUBDIR+=	autofs
     23 SUBDIR+=	blowfish
     24 SUBDIR+=	bpf
     25 SUBDIR+=	bpf_filter
     26 SUBDIR+=	bufq_disksort
     27 SUBDIR+=	bufq_fcfs
     28 SUBDIR+=	bufq_priocscan
     29 SUBDIR+=	bufq_readprio
     30 SUBDIR+=	camellia
     31 SUBDIR+=	cast128
     32 SUBDIR+=	ccd
     33 SUBDIR+=	cd9660
     34 SUBDIR+=	cgd
     35 SUBDIR+=	chfs
     36 SUBDIR+=	clockctl
     37 SUBDIR+=	compat_ossaudio
     38 SUBDIR+=	crypto
     39 SUBDIR+=	coda
     40 SUBDIR+=	coda5
     41 SUBDIR+=	coredump
     42 SUBDIR+=	dbcool
     43 SUBDIR+=	des
     44 SUBDIR+=	dk_subr
     45 SUBDIR+=	drvctl
     46 SUBDIR+=	efs
     47 SUBDIR+=	ext2fs
     48 SUBDIR+=	exec_script
     49 SUBDIR+=	fdesc
     50 SUBDIR+=	ffs
     51 SUBDIR+=	filecore
     52 SUBDIR+=	filemon
     53 SUBDIR+=	flash
     54 SUBDIR+=	fss
     55 SUBDIR+=	gpio
     56 SUBDIR+=	gpioiic
     57 SUBDIR+=	gpioow
     58 SUBDIR+=	gpiosim
     59 SUBDIR+=	gpioirq
     60 SUBDIR+=	gpiopps
     61 SUBDIR+=	hfs
     62 SUBDIR+=	hythygtemp
     63 SUBDIR+=	si70xxtemp
     64 SUBDIR+=	am2315temp
     65 SUBDIR+=	i2cexec
     66 SUBDIR+=	i2c_bitbang
     67 SUBDIR+=	if_agr
     68 SUBDIR+=	if_axe
     69 SUBDIR+=	if_axen
     70 SUBDIR+=	if_faith
     71 SUBDIR+=	if_gif
     72 SUBDIR+=	if_gre
     73 SUBDIR+=	if_l2tp
     74 SUBDIR+=	if_loop
     75 SUBDIR+=	if_mpls
     76 SUBDIR+=	if_npflog
     77 SUBDIR+=	if_ppp
     78 SUBDIR+=	if_pppoe
     79 SUBDIR+=	if_sl
     80 SUBDIR+=	if_smsc
     81 SUBDIR+=	if_srt
     82 SUBDIR+=	if_stf
     83 SUBDIR+=	if_strip
     84 SUBDIR+=	if_tun tun
     85 SUBDIR+=	if_vlan
     86 SUBDIR+=	iic
     87 SUBDIR+=	ip_ecn
     88 SUBDIR+=	ipl
     89 SUBDIR+=	kernfs
     90 SUBDIR+=	layerfs
     91 SUBDIR+=	lfs
     92 SUBDIR+=	lua
     93 SUBDIR+=	luasystm
     94 SUBDIR+=	luapmf
     95 SUBDIR+=	mfs
     96 SUBDIR+=	midi
     97 SUBDIR+=	miiverbose
     98 SUBDIR+=	miniroot
     99 SUBDIR+=	mqueue
    100 SUBDIR+=	msdos
    101 SUBDIR+=	nand
    102 SUBDIR+=	nandemulator
    103 SUBDIR+=	nfs
    104 SUBDIR+=	nfsserver
    105 SUBDIR+=	nilfs
    106 SUBDIR+=	npf
    107 SUBDIR+=	npf_alg_icmp
    108 SUBDIR+=	npf_ext_log
    109 SUBDIR+=	npf_ext_normalize
    110 SUBDIR+=	npf_ext_rndblock
    111 SUBDIR+=	ntfs
    112 SUBDIR+=	null
    113 SUBDIR+=	onewire
    114 SUBDIR+=	opencrypto
    115 SUBDIR+=	overlay
    116 SUBDIR+=	pciverbose
    117 SUBDIR+=	pf
    118 SUBDIR+=	ppp_bsdcomp
    119 SUBDIR+=	ppp_deflate
    120 SUBDIR+=	procfs
    121 SUBDIR+=	ptrace
    122 SUBDIR+=	ptrace_common
    123 SUBDIR+=	ptyfs
    124 SUBDIR+=	puffs
    125 SUBDIR+=	putter
    126 SUBDIR+=	raid
    127 SUBDIR+=	scsiverbose
    128 SUBDIR+=	sdtemp
    129 SUBDIR+=	secmodel_bsd44
    130 SUBDIR+=	secmodel_extensions
    131 SUBDIR+=	secmodel_overlay
    132 SUBDIR+=	securelevel
    133 SUBDIR+=	sequencer
    134 SUBDIR+=	skipjack
    135 SUBDIR+=	slcompress
    136 SUBDIR+=	smbfs
    137 SUBDIR+=	spdmem
    138 SUBDIR+=	spkr
    139 SUBDIR+=	sppp_subr
    140 SUBDIR+=	sysmon
    141 SUBDIR+=	sysmon_envsys
    142 SUBDIR+=	sysmon_power
    143 SUBDIR+=	sysmon_taskq
    144 SUBDIR+=	sysmon_wdog
    145 SUBDIR+=	sysvbfs
    146 SUBDIR+=	sysv_ipc
    147 SUBDIR+=	suser
    148 SUBDIR+=	swcrypto
    149 SUBDIR+=	swsensor
    150 SUBDIR+=	swwdog
    151 SUBDIR+=	tmpfs
    152 SUBDIR+=	ualea
    153 SUBDIR+=	uatp
    154 SUBDIR+=	udf
    155 SUBDIR+=	umap
    156 SUBDIR+=	union
    157 SUBDIR+=	usbverbose
    158 SUBDIR+=	vcoda
    159 SUBDIR+=	v7fs
    160 SUBDIR+=	vnd
    161 SUBDIR+=	wapbl
    162 SUBDIR+=	wsbell
    163 SUBDIR+=	zlib
    164 SUBDIR+=	tprof
    165 .if (defined(NOTYET))
    166 SUBDIR+=	hifn		# Builds on architectures with PCI bus
    167 SUBDIR+=	unionfs
    168 .endif
    169 .if ${MKBINUTILS} != "no"
    170 SUBDIR+=	xldscripts
    171 .endif
    172 
    173 # Machine dependent section
    174 .if ${MACHINE_ARCH} == "i386" || \
    175     ${MACHINE_CPU} == "m68k"
    176 SUBDIR+=	exec_aout
    177 .endif
    178 
    179 .if ${MACHINE_ARCH} != "alpha" && \
    180     ${MACHINE_CPU} != "aarch64" && \
    181     ${MACHINE_ARCH} != "ia64"
    182 SUBDIR+=	exec_elf32
    183 .endif
    184 
    185 .if ${MACHINE_CPU} == "aarch64" || \
    186     ${MACHINE_ARCH} == "alpha" || \
    187     ${MACHINE_ARCH} == "ia64" || \
    188     ${MACHINE_ARCH} == "sparc64" || \
    189     ${MACHINE_ARCH} == "x86_64"
    190 SUBDIR+=	exec_elf64
    191 .endif
    192 
    193 .if ${MACHINE_ARCH} == "i386" || \
    194     ${MACHINE_ARCH} == "x86_64"
    195 SUBDIR+=	amdsmn
    196 SUBDIR+=	amdtemp
    197 SUBDIR+=	amdzentemp
    198 SUBDIR+=	coretemp
    199 SUBDIR+=	est
    200 SUBDIR+=	hdafg
    201 SUBDIR+=	hdaudio
    202 SUBDIR+=	hdaudio_pci
    203 SUBDIR+=	hdaudioverbose
    204 SUBDIR+=	hpet
    205 SUBDIR+=	ichsmb
    206 SUBDIR+=	odcm
    207 SUBDIR+=	powernow
    208 SUBDIR+=	tco
    209 SUBDIR+=	tprof_pmi
    210 SUBDIR+=	tprof_amdpmi
    211 SUBDIR+=	vmt
    212 .endif
    213 
    214 .if ${MACHINE_ARCH} == "i386" || \
    215     ${MACHINE_ARCH} == "x86_64"
    216 SUBDIR+=	ubsec		# Builds on architectures with PCI bus
    217 .endif
    218 
    219 .if ${MKSLJIT} != "no"
    220 # No modules for arm, mips and powerpc yet.
    221 .if ${MACHINE_ARCH} == "i386" || \
    222     ${MACHINE_ARCH} == "x86_64" || \
    223     ${MACHINE_ARCH} == "sparc"
    224 SUBDIR+=	bpfjit
    225 SUBDIR+=	sljit
    226 .endif
    227 .endif
    228 
    229 #
    230 # ACPI modules
    231 #
    232 .if ${MACHINE_ARCH} == "i386" || \
    233     ${MACHINE_ARCH} == "ia64" || \
    234     ${MACHINE_ARCH} == "x86_64"
    235 SUBDIR+=	acpiverbose
    236 .endif
    237 
    238 .if ${MACHINE_ARCH} == "i386" || \
    239     ${MACHINE_ARCH} == "x86_64"
    240 SUBDIR+=	acpiacad
    241 SUBDIR+=	acpibat
    242 SUBDIR+=	acpibut
    243 SUBDIR+=	acpicpu
    244 SUBDIR+=	acpidalb
    245 SUBDIR+=	acpifan
    246 SUBDIR+=	acpilid
    247 SUBDIR+=	acpipmtr
    248 SUBDIR+=	acpitz
    249 SUBDIR+=	acpivga
    250 SUBDIR+=	acpiwdrt
    251 SUBDIR+=	acpiwmi
    252 SUBDIR+=	aibs
    253 SUBDIR+=	asus
    254 SUBDIR+=	fujbp
    255 SUBDIR+=	fujhk
    256 SUBDIR+=	hpacel
    257 SUBDIR+=	hpqlb
    258 SUBDIR+=	thinkpad
    259 SUBDIR+=	wmidell
    260 SUBDIR+=	wmieeepc
    261 SUBDIR+=	wmihp
    262 SUBDIR+=	wmimsi
    263 .endif
    264 
    265 .if ${MACHINE_CPU} == "arm" \
    266     || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE))
    267 SUBDIR+=	compat_netbsd32
    268 SUBDIR+=	compat_netbsd32_mqueue
    269 SUBDIR+=	compat_netbsd32_nfssrv
    270 SUBDIR+=	compat_netbsd32_ptrace
    271 SUBDIR+=	compat_netbsd32_sysvipc
    272 .endif
    273 
    274 .if ${MACHINE_ARCH} == "x86_64"
    275 SUBDIR+=	compat_linux32
    276 SUBDIR+=	compat_netbsd32
    277 SUBDIR+=	compat_netbsd32_mqueue
    278 SUBDIR+=	compat_netbsd32_nfssrv
    279 SUBDIR+=	compat_netbsd32_ptrace
    280 SUBDIR+=	compat_netbsd32_sysvipc
    281 .endif
    282 
    283 .if ${MACHINE_ARCH} == "i386"
    284 SUBDIR+=	ati_pcigart
    285 SUBDIR+=	compat_freebsd
    286 SUBDIR+=	mach64drm
    287 SUBDIR+=	mgadrm
    288 SUBDIR+=	nsclpcsio
    289 SUBDIR+=	padlock
    290 SUBDIR+=	r128drm
    291 SUBDIR+=	radeondrm
    292 SUBDIR+=	savagedrm
    293 SUBDIR+=	sisdrm
    294 SUBDIR+=	tdfxdrm
    295 SUBDIR+=	viac7temp
    296 SUBDIR+=	viadrm
    297 SUBDIR+=	viadrmums
    298 .endif
    299 
    300 .if ${MACHINE_ARCH} == "i386" || \
    301     ${MACHINE_ARCH} == "x86_64"
    302 SUBDIR+=	azalia
    303 SUBDIR+=	compat_linux
    304 SUBDIR+=	drm
    305 SUBDIR+=	drmkms
    306 SUBDIR+=	drmkms_linux
    307 SUBDIR+=	drmkms_pci
    308 SUBDIR+=	i915drm
    309 SUBDIR+=	i915drmkms
    310 SUBDIR+=	pad
    311 #
    312 # ISA modules
    313 #
    314 SUBDIR+=	aps
    315 SUBDIR+=	finsio
    316 SUBDIR+=	itesio
    317 SUBDIR+=	lm
    318 SUBDIR+=	lm_isa
    319 SUBDIR+=	lm_isa_common
    320 SUBDIR+=	lm_wbsio
    321 SUBDIR+=	wbsio
    322 .endif
    323 
    324 .if ${MACHINE_CPU} == "m68k"
    325 SUBDIR+=	compat_aoutm68k
    326 #SUBDIR+=	compat_linux
    327 #SUBDIR+=	compat_sunos
    328 #SUBDIR+=	compat_svr4
    329 .endif
    330 
    331 .if ${MACHINE_ARCH} == "i386" || \
    332     ${MACHINE_ARCH} == "x86_64" || \
    333     ${MACHINE_ARCH} == "sparc64"
    334 SUBDIR+=	pwdog
    335 .endif
    336 
    337 .include <bsd.own.mk>
    338 
    339 #
    340 # NetBSD/usermode support
    341 #
    342 .if ${MACHINE_ARCH} == "i386" || \
    343     ${MACHINE_ARCH} == "x86_64"
    344 SUBDIR+=	../arch/usermode/modules/syscallemu
    345 .endif
    346 
    347 # we need our device mapper for LVM
    348 .if (${MKLVM} != "no")
    349 SUBDIR+= 	dm
    350 .endif
    351 
    352 .if (${MKDTRACE} != "no")
    353 SUBDIR+=	cyclic
    354 SUBDIR+=	dtrace
    355 .endif
    356 
    357 # we need solaris for the dtrace and zfs modules
    358 .if (${MKDTRACE} != "no" || ${MKZFS} != "no")
    359 SUBDIR+=        solaris
    360 .endif
    361 
    362 .if (${MKZFS} != "no")
    363 SUBDIR+=	zfs
    364 .endif
    365 
    366 .if (${MKCOMPATMODULES} != "no")
    367 SUBDIR+=	arch
    368 .endif
    369 
    370 #
    371 # DTV modules
    372 #
    373 SUBDIR+=	dtv
    374 SUBDIR+=	dtv_math
    375 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
    376 # tuners/demods
    377 SUBDIR+=	au8522
    378 SUBDIR+=	cx24227
    379 SUBDIR+=	lg3303
    380 SUBDIR+=	mt2131
    381 SUBDIR+=	nxt2k
    382 SUBDIR+=	tvpll
    383 SUBDIR+=	xc3028
    384 SUBDIR+=	xc5k
    385 SUBDIR+=	zl10353
    386 # hardware drivers
    387 SUBDIR+=	auvitek
    388 SUBDIR+=	coram
    389 SUBDIR+=	cxdtv
    390 SUBDIR+=	emdtv
    391 
    392 # Intel Integrated Memory Controller and associated SMBus
    393 # (Experimental)
    394 SUBDIR+=	imc
    395 SUBDIR+=	imcsmb
    396 
    397 .endif
    398 
    399 .if (${MKISCSI} != "no")
    400 SUBDIR+=	iscsi
    401 .endif
    402 
    403 # For now, all of these are disabled, pending resolution of how to deal
    404 # with attachment-specific modules and bus-specific modules (as opposed
    405 # to machine- or architecture-specific modules)
    406 
    407 .if 0
    408 SUBDIR+=	aac
    409 SUBDIR+=	amr
    410 SUBDIR+=	ataraid
    411 SUBDIR+=	cac
    412 SUBDIR+=	cac_eisa
    413 SUBDIR+=	cac_pci
    414 SUBDIR+=	if_vioif
    415 SUBDIR+=	ld
    416 SUBDIR+=	ld_aac
    417 SUBDIR+=	ld_amr
    418 SUBDIR+=	ld_ataraid
    419 SUBDIR+=	ld_cac
    420 SUBDIR+=	ld_icp
    421 SUBDIR+=	ld_mlx
    422 SUBDIR+=	ld_sdmmc
    423 SUBDIR+=	ld_twa
    424 SUBDIR+=	ld_twe
    425 SUBDIR+=	ld_virtio
    426 SUBDIR+=	mlx
    427 SUBDIR+=	mlx_eisa
    428 SUBDIR+=	mlx_pci
    429 SUBDIR+=	ld_nvme
    430 SUBDIR+=	nvme
    431 SUBDIR+=	twa
    432 SUBDIR+=	twe
    433 SUBDIR+=	viomb
    434 SUBDIR+=	virtio
    435 SUBDIR+=	virtio_pci
    436 SUBDIR+=	vioscsi
    437 .endif
    438 
    439 SUBDIR+=	examples	# build these regularly to avoid bit-rot
    440 
    441 .include <bsd.subdir.mk>
    442