Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

#	$NetBSD: Makefile,v 1.97 2019/01/10 23:10:23 uwe Exp $

.include <bsd.own.mk>

# modesetting is builtin to xorg-server 1.18 tree
.if ${XORG_SERVER_SUBDIR} == "xorg-server.old"
MODE_SETTING=	xf86-video-modesetting
.else
MODE_SETTING=
.endif

# xf86-input drivers

SUBDIR= \
	xf86-input-keyboard \
	xf86-input-mouse \
	xf86-input-ws

.if ${MACHINE_ARCH} == "i386" || \
    ${MACHINE_ARCH} == "x86_64"
SUBDIR+= \
	xf86-input-vmmouse

.if ${MACHINE_ARCH} == "i386"
SUBDIR+= \
	xf86-input-elographics
.endif

.endif

# xf86-video drivers

.if ${MACHINE_ARCH} == "i386" || \
    ${MACHINE_ARCH} == "x86_64"
SUBDIR+= \
	xf86-video-ast \
	xf86-video-ati \
	xf86-video-chips \
	xf86-video-cirrus \
	xf86-video-cirrus_alpine \
	xf86-video-cirrus_laguna \
	xf86-video-i128 \
	xf86-video-i740 \
	xf86-video-intel \
	xf86-video-mach64 \
	xf86-video-mga \
	${MODE_SETTING} \
	xf86-video-neomagic \
	xf86-video-nv \
	xf86-video-nouveau \
	xf86-video-openchrome \
	xf86-video-r128 \
	xf86-video-radeon \
	xf86-video-radeon-kms \
	xf86-video-s3 \
	xf86-video-s3virge \
	xf86-video-savage \
	xf86-video-siliconmotion \
	xf86-video-sis \
	xf86-video-tdfx \
	xf86-video-tga \
	xf86-video-trident \
	xf86-video-tseng \
	xf86-video-vboxvideo \
	xf86-video-vmware \
	xf86-video-vesa \
	xf86-video-wsfb

# needs porting for xorg-server 1.6
#	xf86-video-imstt
#	xf86-video-rendition

# needs porting for xorg-server 1.18
.if ${XORG_SERVER_SUBDIR} == "xorg-server.old"
SUBDIR+= \
	xf86-video-apm \
	xf86-video-ark \
	xf86-video-glint \
	xf86-video-intel-old \
	xf86-video-xgi
.endif	# ${XORG_SERVER_SUBDIR} == "xorg-server.old"

.if ${XORG_SERVER_SUBDIR} == "xorg-server"
SUBDIR+= \
	xf86-video-amdgpu
.endif  # ${XORG_SERVER_SUBDIR} == "xorg-server"

.if ${MACHINE_ARCH} == "i386"
SUBDIR+= \
	xf86-video-geode
.endif	# ${MACHINE_ARCH} == "i386"

.endif	# ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"

.if ${MACHINE} == "alpha"
SUBDIR+= \
	xf86-video-ast \
	xf86-video-ati \
	xf86-video-chips \
	xf86-video-cirrus \
	xf86-video-cirrus_alpine \
	xf86-video-cirrus_laguna \
	xf86-video-i128 \
	xf86-video-i740 \
	xf86-video-mach64 \
	xf86-video-mga \
	xf86-video-nv \
	xf86-video-r128 \
	xf86-video-radeon \
	xf86-video-s3 \
	xf86-video-s3virge \
	xf86-video-savage \
	xf86-video-siliconmotion \
	xf86-video-sis \
	xf86-video-tdfx \
	xf86-video-tga \
	xf86-video-trident \
	xf86-video-tseng \
	xf86-video-wsfb
#	xf86-video-imstt
# needs porting for xorg-server 1.18
.if ${XORG_SERVER_SUBDIR} == "xorg-server.old"
SUBDIR+= \
	xf86-video-apm \
	xf86-video-ark \
	xf86-video-glint
.endif	# ${XORG_SERVER_SUBDIR} == "xorg-server.old"
.endif	# ${MACHINE} == "alpha"

.if ${MACHINE} == "amiga"
SUBDIR+= \
	xf86-video-wsfb
.endif	# ${MACHINE} == "amiga"

.if ${MACHINE} == "bebox"
SUBDIR+= \
	xf86-video-cirrus \
	xf86-video-cirrus_alpine \
	xf86-video-mga \
	xf86-video-s3 \
	xf86-video-s3virge
.endif	# ${MACHINE} == "bebox"

.if ${MACHINE} == "cats"
SUBDIR+= \
	xf86-video-ast \
	xf86-video-ati \
	xf86-video-chips \
	xf86-video-cirrus \
	xf86-video-cirrus_alpine \
	xf86-video-cirrus_laguna \
	xf86-video-i128 \
	xf86-video-i740 \
	xf86-video-mga \
	xf86-video-neomagic \
	xf86-video-nv \
	xf86-video-radeon \
	xf86-video-s3 \
	xf86-video-s3virge \
	xf86-video-savage \
	xf86-video-siliconmotion \
	xf86-video-tdfx \
	xf86-video-tga \
	xf86-video-trident \
	xf86-video-tseng \
	xf86-video-vesa \
	xf86-video-wsfb
# needs porting for xorg-server 1.18
.if ${XORG_SERVER_SUBDIR} == "xorg-server.old"
	xf86-video-apm \
	xf86-video-ark \
	xf86-video-glint
.endif	# ${XORG_SERVER_SUBDIR} == "xorg-server.old"
.endif	# ${MACHINE} == "cats"

.if ${MACHINE} == "dreamcast"
SUBDIR+= \
	xf86-video-wsfb
.endif	# ${MACHINE} == "dreamcast"

.if ${MACHINE} == "evbarm"
SUBDIR+= \
	${MODE_SETTING} \
	xf86-video-wsfb
.endif # ${MACHINE} == "evbarm"

.if ${MACHINE} == "evbmips"
SUBDIR+= \
	xf86-video-siliconmotion \
	xf86-video-sis \
	xf86-video-wsfb
.endif	# ${MACHINE} == "evbmips"

.if ${MACHINE} == "ews4800mips"
SUBDIR+= \
	xf86-video-wsfb
.endif	# ${MACHINE} == "ews4800mips"

.if ${MACHINE} == "hp300"
SUBDIR+= \
	xf86-video-wsfb
.endif	# ${MACHINE} == "hp300"

.if ${MACHINE} == "hpcarm" || \
    ${MACHINE} == "hpcmips" || \
    ${MACHINE} == "hpcsh"
SUBDIR+= \
	xf86-video-wsfb
.endif # ${MACHINE} == "hpcarm" || ${MACHINE} == "hpcmips" || ${MACHINE} == "hpcsh"

.if ${MACHINE} == "ibmnws"
SUBDIR+= \
	xf86-video-s3
.endif	# ${MACHINE} == "ibmnws"

.if ${MACHINE} == "iyonix"
SUBDIR+= \
	xf86-video-nv \
	xf86-video-wsfb
.endif	# ${MACHINE} == "iyonix"

.if ${MACHINE} == "luna68k"
SUBDIR+= \
	xf86-video-wsfb
.endif	# ${MACHINE} == "luna68k"

.if ${MACHINE} == "mac68k"
SUBDIR+= \
	xf86-video-wsfb
.endif	# ${MACHINE} == "mac68k"

.if ${MACHINE} == "macppc"
SUBDIR+= \
	xf86-video-ati \
	xf86-video-chips \
	xf86-video-glint \
	xf86-video-mach64 \
	xf86-video-mga \
	xf86-video-nv \
	xf86-video-radeon \
	xf86-video-r128 \
	xf86-video-tdfx \
	xf86-video-wsfb
#	xf86-video-imstt
.endif	# ${MACHINE} == "macppc"

.if ${MACHINE} == "netwinder"
SUBDIR+= \
	xf86-video-wsfb
#	xf86-video-igs
.endif	# ${MACHINE} == "netwinder"

.if ${MACHINE} == "newsmips"
SUBDIR+= \
	xf86-video-wsfb
.endif	# ${MACHINE} == "newsmips"

.if ${MACHINE} == "ofppc"
SUBDIR+= \
	xf86-video-ati \
	xf86-video-chips \
	xf86-video-mach64 \
	xf86-video-mga \
	xf86-video-nv \
	xf86-video-radeon \
	xf86-video-r128 \
	xf86-video-tdfx \
	xf86-video-wsfb
.endif	# ${MACHINE} == "ofppc"

.if ${MACHINE} == "prep"
SUBDIR+= \
	xf86-video-cirrus \
	xf86-video-cirrus_alpine \
	xf86-video-mga \
	xf86-video-s3
.endif	# ${MACHINE} == "prep"

.if ${MACHINE} == "sgimips"
SUBDIR+= \
	xf86-video-cirrus \
	xf86-video-glint \
	xf86-video-mga \
	xf86-video-s3 \
	xf86-video-wsfb
.if ${XORG_SERVER_SUBDIR} == "xorg-server.old"
SUBDIR+= \
	xf86-video-crime \
	xf86-video-newport
.endif  # ${XORG_SERVER_SUBDIR} == "xorg-server.old"
.endif	# ${MACHINE} == "sgimips"

.if ${MACHINE} == "shark"
SUBDIR+= \
	xf86-video-chips \
        xf86-video-igs \
        xf86-video-wsfb
.endif	# ${MACHINE} == "shark"

.if ${MACHINE} == "sparc" || \
    ${MACHINE} == "sparc64"
SUBDIR+= \
	xf86-video-ati \
	xf86-video-glint \
	xf86-video-mach64 \
	xf86-video-mga \
	xf86-video-r128 \
	xf86-video-radeon \
	xf86-video-suncg6 \
	xf86-video-sunffb \
	xf86-video-wsfb
#	xf86-video-ag10e \

.if ${XORG_SERVER_SUBDIR} == "xorg-server.old"
SUBDIR+= \
	xf86-video-ag10e \
	xf86-video-sunleo
.endif	# ${XORG_SERVER_SUBDIR} == "xorg-server.old"

.if ${MACHINE} == "sparc"
SUBDIR+= \
	xf86-video-suncg14 \
	xf86-video-suntcx

.if ${XORG_SERVER_SUBDIR} == "xorg-server.old"
SUBDIR+= \
	xf86-video-pnozz
.endif	# ${XORG_SERVER_SUBDIR} == "xorg-server.old"
.endif	# ${MACHINE} == "sparc"
.endif	# ${MACHINE} == "sparc" || ${MACHINE} == "sparc64"

.if ${MACHINE} == "vax"
SUBDIR+= \
	xf86-video-wsfb
.endif	# ${MACHINE} == "vax"

.if ${MACHINE} == "zaurus"
SUBDIR+= \
	xf86-video-wsfb
.endif # ${MACHINE} == "zaurus"

.include <bsd.subdir.mk>