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