minix/external/mit/xorg/server/drivers/xf86-input-keyboard/Makefile
Lionel Sambuc 971bb1a587 Importing external/mit/xorg support rules
Change-Id: Ib11d8659485a444797bf3a2118182a1d4e316b50
2014-11-10 14:43:29 +01:00

35 lines
1,005 B
Makefile

# $NetBSD: Makefile,v 1.15 2013/01/12 18:32:12 macallan Exp $
DRIVER= xf86-input-keyboard
DRIVER_NAME= kbd_drv
SRCS= kbd.c bsd_KbdMap.c bsd_kbd.c at_scancode.c
MAN= kbd.4
.include <bsd.own.mk>
.if !defined(__MINIX)
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || ${MACHINE} == "cats"
CPPFLAGS+= -DPCVT_SUPPORT
.endif
# turns out we can't use wskbd everywhere without a couple more translation
# tables in the X driver so make it the default only where we know it will work
.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE} == "sparc" || \
${MACHINE} == "sparc64" || ${MACHINE} == "sgimips" || \
${MACHINE} == "shark" || ${MACHINE} == "vax" || \
${MACHINE} == "evbarm"
CPPFLAGS+= -DDEFAULT_TO_WSKBD
.endif
CPPFLAGS+= -DWSCONS_SUPPORT
.endif # !defined(__MINIX)
CPPFLAGS+= -DXKB
CPPFLAGS.kbd.c= -D__XKBDEFRULES__=${__XKBDEFRULES__}
X11EXTRAMANDEFS+= -e 's,__xkb_path__,${X11LIBDIR}/xkb,g'
COPTS.kbd.c= -Wno-error # XXX deprecated
.include "../Makefile.xf86-driver"