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