Drop main() prototype. Syncs with NetBSD-8
[minix.git] / external / mit / xorg / server / drivers / xf86-input-keyboard / Makefile
blob2cb6cc6e44d482a2ea4bee88debfa15bca0ca4e9
1 # $NetBSD: Makefile,v 1.15 2013/01/12 18:32:12 macallan Exp $
3 DRIVER= xf86-input-keyboard
4 DRIVER_NAME= kbd_drv
6 SRCS= kbd.c bsd_KbdMap.c bsd_kbd.c at_scancode.c
7 MAN= kbd.4
9 .include <bsd.own.mk>
10 .if !defined(__MINIX)
11 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || ${MACHINE} == "cats"
12 CPPFLAGS+= -DPCVT_SUPPORT
13 .endif
15 # turns out we can't use wskbd everywhere without a couple more translation
16 # tables in the X driver so make it the default only where we know it will work
18 .if ${MACHINE_ARCH} == "powerpc" || ${MACHINE} == "sparc" || \
19 ${MACHINE} == "sparc64" || ${MACHINE} == "sgimips" || \
20 ${MACHINE} == "shark" || ${MACHINE} == "vax" || \
21 ${MACHINE} == "evbarm"
22 CPPFLAGS+= -DDEFAULT_TO_WSKBD
23 .endif
25 CPPFLAGS+= -DWSCONS_SUPPORT
26 .endif # !defined(__MINIX)
27 CPPFLAGS+= -DXKB
28 CPPFLAGS.kbd.c= -D__XKBDEFRULES__=${__XKBDEFRULES__}
30 X11EXTRAMANDEFS+= -e 's,__xkb_path__,${X11LIBDIR}/xkb,g'
32 COPTS.kbd.c= -Wno-error # XXX deprecated
34 .include "../Makefile.xf86-driver"