Home | History | Annotate | Line # | Download | only in drivers
      1 #	$NetBSD: Makefile,v 1.116 2025/06/10 13:20:47 macallan Exp $
      2 
      3 .include <bsd.own.mk>
      4 
      5 # xf86-input drivers
      6 
      7 SUBDIR= \
      8 	xf86-input-keyboard \
      9 	xf86-input-mouse \
     10 	xf86-input-ws
     11 
     12 .if ${MACHINE_ARCH} == "i386" || \
     13     ${MACHINE_ARCH} == "x86_64"
     14 SUBDIR+= \
     15 	xf86-input-vmmouse
     16 
     17 .if ${MACHINE_ARCH} == "i386"
     18 SUBDIR+= \
     19 	xf86-input-elographics
     20 .endif
     21 
     22 .endif
     23 
     24 # xf86-video drivers
     25 
     26 .if ${MACHINE_ARCH} == "i386" || \
     27     ${MACHINE_ARCH} == "x86_64"
     28 SUBDIR+= \
     29 	xf86-video-amdgpu \
     30 	xf86-video-ark \
     31 	xf86-video-ast \
     32 	xf86-video-ati \
     33 	xf86-video-chips \
     34 	xf86-video-cirrus \
     35 	xf86-video-i128 \
     36 	xf86-video-i740 \
     37 	xf86-video-intel \
     38 	xf86-video-mach64 \
     39 	xf86-video-mga \
     40 	xf86-video-neomagic \
     41 	xf86-video-nv \
     42 	xf86-video-nouveau \
     43 	xf86-video-openchrome \
     44 	xf86-video-r128 \
     45 	xf86-video-radeon \
     46 	xf86-video-radeon-kms \
     47 	xf86-video-s3virge \
     48 	xf86-video-savage \
     49 	xf86-video-siliconmotion \
     50 	xf86-video-sis \
     51 	xf86-video-tdfx \
     52 	xf86-video-trident \
     53 	xf86-video-tseng \
     54 	xf86-video-vboxvideo \
     55 	xf86-video-vmware \
     56 	xf86-video-vesa \
     57 	xf86-video-wsfb
     58 
     59 # XXX add -qxl, also for arm?
     60 
     61 # needs porting for xorg-server 1.6
     62 #	xf86-video-imstt
     63 #	xf86-video-rendition
     64 
     65 # needs porting for xorg-server 21.1.3
     66 #	xf86-video-s3
     67 #	xf86-video-tga
     68 
     69 # needs porting for xorg-server 1.18
     70 #	xf86-video-apm \
     71 #	xf86-video-glint \
     72 #	xf86-video-intel-old \
     73 #	xf86-video-xgi
     74 
     75 .if ${MACHINE_ARCH} == "i386"
     76 SUBDIR+= \
     77 	xf86-video-geode
     78 .endif	# ${MACHINE_ARCH} == "i386"
     79 
     80 .endif	# ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
     81 
     82 .if ${MACHINE} == "alpha"
     83 SUBDIR+= \
     84 	xf86-video-ark \
     85 	xf86-video-ast \
     86 	xf86-video-ati \
     87 	xf86-video-chips \
     88 	xf86-video-cirrus \
     89 	xf86-video-i128 \
     90 	xf86-video-i740 \
     91 	xf86-video-mach64 \
     92 	xf86-video-mga \
     93 	xf86-video-nv \
     94 	xf86-video-r128 \
     95 	xf86-video-radeon \
     96 	xf86-video-s3virge \
     97 	xf86-video-savage \
     98 	xf86-video-siliconmotion \
     99 	xf86-video-sis \
    100 	xf86-video-tdfx \
    101 	xf86-video-trident \
    102 	xf86-video-tseng \
    103 	xf86-video-wsfb
    104 
    105 # needs porting for xorg-server 1.6
    106 #	xf86-video-imstt
    107 
    108 # needs porting for xorg-server 1.18
    109 #	xf86-video-apm
    110 #	xf86-video-glint
    111 
    112 # needs porting for xorg-server 21.1.3
    113 #	xf86-video-s3
    114 #	xf86-video-tga
    115 
    116 .if ${XORG_SERVER_SUBDIR} == "xorg-server.old"
    117 SUBDIR+= \
    118 	xf86-video-apm \
    119 	xf86-video-glint \
    120 	xf86-video-s3 \
    121 	xf86-video-tga
    122 .endif	# ${XORG_SERVER_SUBDIR} == "xorg-server.old"
    123 
    124 .endif	# ${MACHINE} == "alpha"
    125 
    126 .if ${MACHINE} == "amiga"
    127 SUBDIR+= \
    128 	xf86-video-wsfb
    129 .endif	# ${MACHINE} == "amiga"
    130 
    131 .if ${MACHINE} == "bebox"
    132 SUBDIR+= \
    133 	xf86-video-cirrus \
    134 	xf86-video-mga \
    135 	xf86-video-s3virge
    136 
    137 # needs porting for xorg-server 21.1.3
    138 #	xf86-video-s3
    139 
    140 .endif	# ${MACHINE} == "bebox"
    141 
    142 .if ${MACHINE} == "cats"
    143 SUBDIR+= \
    144 	xf86-video-ark \
    145 	xf86-video-ast \
    146 	xf86-video-ati \
    147 	xf86-video-chips \
    148 	xf86-video-cirrus \
    149 	xf86-video-i128 \
    150 	xf86-video-i740 \
    151 	xf86-video-mga \
    152 	xf86-video-neomagic \
    153 	xf86-video-nv \
    154 	xf86-video-radeon \
    155 	xf86-video-s3virge \
    156 	xf86-video-savage \
    157 	xf86-video-siliconmotion \
    158 	xf86-video-tdfx \
    159 	xf86-video-trident \
    160 	xf86-video-tseng \
    161 	xf86-video-vesa \
    162 	xf86-video-wsfb
    163 
    164 # needs porting for xorg-server 21.1.3
    165 #	xf86-video-s3
    166 #	xf86-video-tga
    167 
    168 # needs porting for xorg-server 1.18
    169 #	xf86-video-apm
    170 #	xf86-video-glint
    171 
    172 .endif	# ${MACHINE} == "cats"
    173 
    174 .if ${MACHINE} == "dreamcast"
    175 SUBDIR+= \
    176 	xf86-video-wsfb
    177 .endif	# ${MACHINE} == "dreamcast"
    178 
    179 .if ${MACHINE} == "evbarm"
    180 SUBDIR+= \
    181 	xf86-video-ati \
    182 	xf86-video-nouveau \
    183 	xf86-video-radeon \
    184 	xf86-video-radeon-kms \
    185 	xf86-video-wsfb
    186 .endif # ${MACHINE} == "evbarm"
    187 
    188 .if ${MACHINE} == "evbmips"
    189 SUBDIR+= \
    190 	xf86-video-siliconmotion \
    191 	xf86-video-sis \
    192 	xf86-video-wsfb
    193 .endif	# ${MACHINE} == "evbmips"
    194 
    195 .if ${MACHINE} == "evbppc"
    196 SUBDIR+= \
    197 	xf86-video-wsfb
    198 .endif	# ${MACHINE} == "evbppc"
    199 
    200 .if ${MACHINE} == "ews4800mips"
    201 SUBDIR+= \
    202 	xf86-video-wsfb
    203 .endif	# ${MACHINE} == "ews4800mips"
    204 
    205 .if ${MACHINE} == "hp300"
    206 SUBDIR+= \
    207 	xf86-video-wsfb
    208 .endif	# ${MACHINE} == "hp300"
    209 
    210 .if ${MACHINE} == "hpcarm" || \
    211     ${MACHINE} == "hpcmips" || \
    212     ${MACHINE} == "hpcsh"
    213 SUBDIR+= \
    214 	xf86-video-wsfb
    215 .endif # ${MACHINE} == "hpcarm" || ${MACHINE} == "hpcmips" || ${MACHINE} == "hpcsh"
    216 
    217 .if ${MACHINE} == "hppa"
    218 SUBDIR+= \
    219 	xf86-video-mga \
    220 	xf86-video-ngle \
    221 	xf86-video-r128 \
    222 	xf86-video-wsfb
    223 .endif	# ${MACHINE} == "hppa"
    224 
    225 .if ${MACHINE} == "ibmnws"
    226 # needs porting for xorg-server 21.1.3
    227 #SUBDIR+= \
    228 #	xf86-video-s3
    229 .endif	# ${MACHINE} == "ibmnws"
    230 
    231 .if ${MACHINE} == "iyonix"
    232 SUBDIR+= \
    233 	xf86-video-nv \
    234 	xf86-video-wsfb
    235 .endif	# ${MACHINE} == "iyonix"
    236 
    237 .if ${MACHINE} == "luna68k"
    238 SUBDIR+= \
    239 	xf86-video-wsfb
    240 .endif	# ${MACHINE} == "luna68k"
    241 
    242 .if ${MACHINE} == "mac68k"
    243 SUBDIR+= \
    244 	xf86-video-wsfb
    245 .endif	# ${MACHINE} == "mac68k"
    246 
    247 .if ${MACHINE} == "macppc"
    248 SUBDIR+= \
    249 	xf86-video-ati \
    250 	xf86-video-chips \
    251 	xf86-video-glint \
    252 	xf86-video-mach64 \
    253 	xf86-video-mga \
    254 	xf86-video-nv \
    255 	xf86-video-radeon \
    256 	xf86-video-r128 \
    257 	xf86-video-tdfx \
    258 	xf86-video-wsfb
    259 
    260 # needs porting for xorg-server 1.6
    261 #	xf86-video-imstt
    262 
    263 # needs porting for xorg-server 21.1.3
    264 #	xf86-video-glint
    265 
    266 .endif	# ${MACHINE} == "macppc"
    267 
    268 .if ${MACHINE} == "netwinder"
    269 SUBDIR+= \
    270 	xf86-video-wsfb
    271 #	xf86-video-igs
    272 .endif	# ${MACHINE} == "netwinder"
    273 
    274 .if ${MACHINE} == "newsmips"
    275 SUBDIR+= \
    276 	xf86-video-wsfb
    277 .endif	# ${MACHINE} == "newsmips"
    278 
    279 .if ${MACHINE} == "ofppc"
    280 SUBDIR+= \
    281 	xf86-video-ati \
    282 	xf86-video-chips \
    283 	xf86-video-mach64 \
    284 	xf86-video-mga \
    285 	xf86-video-nv \
    286 	xf86-video-radeon \
    287 	xf86-video-r128 \
    288 	xf86-video-tdfx \
    289 	xf86-video-wsfb
    290 .endif	# ${MACHINE} == "ofppc"
    291 
    292 .if ${MACHINE} == "prep"
    293 SUBDIR+= \
    294 	xf86-video-cirrus \
    295 	xf86-video-mga
    296 
    297 # needs porting for xorg-server 21.1.3
    298 #	xf86-video-s3
    299 
    300 .endif	# ${MACHINE} == "prep"
    301 
    302 .if ${MACHINE} == "sgimips"
    303 SUBDIR+= \
    304 	xf86-video-cirrus \
    305 	xf86-video-mga \
    306 	xf86-video-wsfb
    307 .if ${XORG_SERVER_SUBDIR} == "xorg-server.old"
    308 SUBDIR+= \
    309 	xf86-video-crime \
    310 	xf86-video-glint \
    311 	xf86-video-newport \
    312 	xf86-video-s3
    313 .endif  # ${XORG_SERVER_SUBDIR} == "xorg-server.old"
    314 .endif	# ${MACHINE} == "sgimips"
    315 
    316 .if ${MACHINE} == "shark"
    317 SUBDIR+= \
    318 	xf86-video-chips \
    319         xf86-video-igs \
    320         xf86-video-wsfb
    321 .endif	# ${MACHINE} == "shark"
    322 
    323 .if ${MACHINE} == "sparc" || \
    324     ${MACHINE} == "sparc64"
    325 SUBDIR+= \
    326 	xf86-video-ati \
    327 	xf86-video-glint \
    328 	xf86-video-mach64 \
    329 	xf86-video-mga \
    330 	xf86-video-r128 \
    331 	xf86-video-radeon \
    332 	xf86-video-suncg6 \
    333 	xf86-video-sunffb \
    334 	xf86-video-wsfb
    335 
    336 .if ${XORG_SERVER_SUBDIR} == "xorg-server.old"
    337 # needs porting for xorg-server 21.1.3
    338 SUBDIR+= \
    339 	xf86-video-glint \
    340 	xf86-video-ag10e \
    341 	xf86-video-sunleo
    342 .endif	# ${XORG_SERVER_SUBDIR} == "server.old"
    343 
    344 .if ${MACHINE} == "sparc"
    345 .if ${XORG_SERVER_SUBDIR} != "xorg-server.old"
    346 SUBDIR+= \
    347 	xf86-video-pnozz
    348 .endif	# ${XORG_SERVER_SUBDIR} != "server.old"
    349 SUBDIR+= \
    350 	xf86-video-suncg14 \
    351 	xf86-video-suntcx
    352 
    353 # needs porting for xorg-server 21.1.3
    354 #	xf86-video-pnozz
    355 
    356 .endif	# ${MACHINE} == "sparc"
    357 
    358 .endif	# ${MACHINE} == "sparc" || ${MACHINE} == "sparc64"
    359 
    360 .if ${MACHINE} == "pmax" || \
    361     ${MACHINE} == "vax"
    362 SUBDIR+= \
    363 	xf86-video-wsfb
    364 .endif	# ${MACHINE} == "pmax" || ${MACHINE} == "vax"
    365 
    366 .if ${MACHINE} == "zaurus"
    367 SUBDIR+= \
    368 	xf86-video-wsfb
    369 .endif # ${MACHINE} == "zaurus"
    370 
    371 .include <bsd.subdir.mk>
    372