Home | History | Annotate | Line # | Download | only in xf86-input-keyboard
Makefile revision 1.13.2.1
      1 #	$NetBSD: Makefile,v 1.13.2.1 2012/10/30 18:58:13 yamt 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 
      9 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || ${MACHINE} == "cats"
     10 CPPFLAGS+=	-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" || ${MACHINE} == "sparc" || \
     17     ${MACHINE} == "sparc64" || ${MACHINE} == "sgimips" || \
     18     ${MACHINE} == "shark" || ${MACHINE} == "vax"
     19 CPPFLAGS+=	-DDEFAULT_TO_WSKBD
     20 .endif
     21 
     22 CPPFLAGS+=	-DWSCONS_SUPPORT
     23 CPPFLAGS+=	-DXKB
     24 CPPFLAGS.kbd.c=	-D__XKBDEFRULES__=${__XKBDEFRULES__}
     25 
     26 X11EXTRAMANDEFS+=	-e 's,__xkb_path__,${X11LIBDIR}/xkb,g'
     27 
     28 COPTS.kbd.c=      -Wno-error	# XXX deprecated
     29 
     30 .include "../Makefile.xf86-driver"
     31