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