Home | History | Annotate | Line # | Download | only in xf86-input-keyboard
      1  1.24   tsutsui #	$NetBSD: Makefile,v 1.24 2025/06/04 18:23:11 tsutsui Exp $
      2   1.1       mrg 
      3   1.1       mrg DRIVER=		xf86-input-keyboard
      4   1.5       mrg DRIVER_NAME=	kbd_drv
      5   1.1       mrg 
      6   1.1       mrg SRCS=		kbd.c bsd_KbdMap.c bsd_kbd.c at_scancode.c
      7   1.3       rtr MAN=		kbd.4
      8   1.1       mrg 
      9  1.13    nonaka .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || ${MACHINE} == "cats"
     10   1.8  jmcneill CPPFLAGS+=	-DPCVT_SUPPORT
     11   1.8  jmcneill .endif
     12  1.12  macallan 
     13  1.12  macallan # turns out we can't use wskbd everywhere without a couple more translation
     14  1.12  macallan # tables in the X driver so make it the default only where we know it will work
     15  1.12  macallan 
     16  1.19       rin .if ${MACHINE_ARCH} == "powerpc" || \
     17  1.19       rin     ${MACHINE} == "amiga" || \
     18  1.19       rin     ${MACHINE} == "evbarm" || \
     19  1.23   tsutsui     ${MACHINE} == "ews4800mips" || \
     20  1.24   tsutsui     ${MACHINE} == "hp300"	|| \
     21  1.24   tsutsui     ${MACHINE} == "luna68k"	|| \
     22  1.19       rin     ${MACHINE} == "mac68k" || \
     23  1.23   tsutsui     ${MACHINE} == "newsmips" || \
     24  1.20       abs     ${MACHINE} == "pmax" || \
     25  1.19       rin     ${MACHINE} == "sgimips" || \
     26  1.19       rin     ${MACHINE} == "shark" || \
     27  1.19       rin     ${MACHINE} == "sparc" || \
     28  1.19       rin     ${MACHINE} == "sparc64" || \
     29  1.19       rin     ${MACHINE} == "vax"
     30  1.12  macallan CPPFLAGS+=	-DDEFAULT_TO_WSKBD
     31  1.12  macallan .endif
     32  1.12  macallan 
     33   1.6       rtr CPPFLAGS+=	-DWSCONS_SUPPORT
     34   1.8  jmcneill CPPFLAGS+=	-DXKB
     35   1.2       rtr CPPFLAGS.kbd.c=	-D__XKBDEFRULES__=${__XKBDEFRULES__}
     36   1.1       mrg 
     37  1.23   tsutsui .if \
     38  1.23   tsutsui     ${MACHINE} == "ews4800mips"	|| \
     39  1.24   tsutsui     ${MACHINE} == "hp300"	|| \
     40  1.24   tsutsui     ${MACHINE} == "luna68k"	|| \
     41  1.23   tsutsui     ${MACHINE} == "newsmips"	|| \
     42  1.23   tsutsui     0
     43  1.23   tsutsui CPPFLAGS+=	-DUSE_WSKBD_GETMAP
     44  1.23   tsutsui SRCS+=		ws_KbdMap.c
     45  1.23   tsutsui .endif
     46  1.23   tsutsui 
     47   1.7      cube X11EXTRAMANDEFS+=	-e 's,__xkb_path__,${X11LIBDIR}/xkb,g'
     48   1.7      cube 
     49  1.16       mrg COPTS.kbd.c=		-Wno-error	# XXX deprecated
     50  1.16       mrg COPTS.bsd_kbd.c=	-Wno-error	# XXX deprecated
     51  1.10       mrg 
     52   1.1       mrg .include "../Makefile.xf86-driver"
     53