xref: /netbsd-src/external/mit/xorg/server/drivers/xf86-input-keyboard/Makefile (revision 924795e69c8bb3f17afd8fcbb799710cc1719dc4)
1#	$NetBSD: Makefile,v 1.22 2021/12/15 15:27:30 christos 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} == "mac68k" || \
20    ${MACHINE} == "pmax" || \
21    ${MACHINE} == "sgimips" || \
22    ${MACHINE} == "shark" || \
23    ${MACHINE} == "sparc" || \
24    ${MACHINE} == "sparc64" || \
25    ${MACHINE} == "vax"
26CPPFLAGS+=	-DDEFAULT_TO_WSKBD
27.endif
28
29CPPFLAGS+=	-DWSCONS_SUPPORT
30CPPFLAGS+=	-DXKB
31CPPFLAGS.kbd.c=	-D__XKBDEFRULES__=${__XKBDEFRULES__}
32
33X11EXTRAMANDEFS+=	-e 's,__xkb_path__,${X11LIBDIR}/xkb,g'
34
35COPTS.kbd.c=		-Wno-error	# XXX deprecated
36COPTS.bsd_kbd.c=	-Wno-error	# XXX deprecated
37
38.include "../Makefile.xf86-driver"
39