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