xref: /netbsd-src/external/mit/xorg/server/drivers/xf86-input-keyboard/Makefile (revision cc68636b10eb2541e08293e6dcd3d599a17f8181)
1#	$NetBSD: Makefile,v 1.23 2023/11/07 14:34:35 tsutsui Exp $
2
3DRIVER=		xf86-input-keyboard
4DRIVER_NAME=	kbd_drv
5
6SRCS=		kbd.c bsd_KbdMap.c bsd_kbd.c at_scancode.c
7MAN=		kbd.4
8
9.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || ${MACHINE} == "cats"
10CPPFLAGS+=	-DPCVT_SUPPORT
11.endif
12
13# turns out we can't use wskbd everywhere without a couple more translation
14# tables in the X driver so make it the default only where we know it will work
15
16.if ${MACHINE_ARCH} == "powerpc" || \
17    ${MACHINE} == "amiga" || \
18    ${MACHINE} == "evbarm" || \
19    ${MACHINE} == "ews4800mips" || \
20    ${MACHINE} == "mac68k" || \
21    ${MACHINE} == "newsmips" || \
22    ${MACHINE} == "pmax" || \
23    ${MACHINE} == "sgimips" || \
24    ${MACHINE} == "shark" || \
25    ${MACHINE} == "sparc" || \
26    ${MACHINE} == "sparc64" || \
27    ${MACHINE} == "vax"
28CPPFLAGS+=	-DDEFAULT_TO_WSKBD
29.endif
30
31CPPFLAGS+=	-DWSCONS_SUPPORT
32CPPFLAGS+=	-DXKB
33CPPFLAGS.kbd.c=	-D__XKBDEFRULES__=${__XKBDEFRULES__}
34
35.if \
36    ${MACHINE} == "ews4800mips"	|| \
37    ${MACHINE} == "newsmips"	|| \
38    0
39CPPFLAGS+=	-DUSE_WSKBD_GETMAP
40SRCS+=		ws_KbdMap.c
41.endif
42
43X11EXTRAMANDEFS+=	-e 's,__xkb_path__,${X11LIBDIR}/xkb,g'
44
45COPTS.kbd.c=		-Wno-error	# XXX deprecated
46COPTS.bsd_kbd.c=	-Wno-error	# XXX deprecated
47
48.include "../Makefile.xf86-driver"
49