Home | History | Annotate | Line # | Download | only in xf86-input-keyboard
Makefile revision 1.21
      1 #	$NetBSD: Makefile,v 1.21 2021/12/15 15:24:11 christos Exp $
      2 
      3 DRIVER=		xf86-input-keyboard
      4 DRIVER_NAME=	kbd_drv
      5 
      6 SRCS=		kbd.c bsd_KbdMap.c bsd_kbd.c at_scancode.c
      7 MAN=		kbd.4
      8 LINTFLAGS+=	-D__GNUC__
      9 
     10 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || ${MACHINE} == "cats"
     11 CPPFLAGS+=	-DPCVT_SUPPORT
     12 .endif
     13 
     14 # turns out we can't use wskbd everywhere without a couple more translation
     15 # tables in the X driver so make it the default only where we know it will work
     16 
     17 .if ${MACHINE_ARCH} == "powerpc" || \
     18     ${MACHINE} == "amiga" || \
     19     ${MACHINE} == "evbarm" || \
     20     ${MACHINE} == "mac68k" || \
     21     ${MACHINE} == "pmax" || \
     22     ${MACHINE} == "sgimips" || \
     23     ${MACHINE} == "shark" || \
     24     ${MACHINE} == "sparc" || \
     25     ${MACHINE} == "sparc64" || \
     26     ${MACHINE} == "vax"
     27 CPPFLAGS+=	-DDEFAULT_TO_WSKBD
     28 .endif
     29 
     30 CPPFLAGS+=	-DWSCONS_SUPPORT
     31 CPPFLAGS+=	-DXKB
     32 CPPFLAGS.kbd.c=	-D__XKBDEFRULES__=${__XKBDEFRULES__}
     33 
     34 X11EXTRAMANDEFS+=	-e 's,__xkb_path__,${X11LIBDIR}/xkb,g'
     35 
     36 COPTS.kbd.c=		-Wno-error	# XXX deprecated
     37 COPTS.bsd_kbd.c=	-Wno-error	# XXX deprecated
     38 
     39 .include "../Makefile.xf86-driver"
     40