xref: /netbsd-src/usr.sbin/wsmoused/Makefile (revision ca70685cf2c3960499bb058e1a87757777a0d489)
1# $NetBSD: Makefile,v 1.9 2009/10/29 14:40:09 christos Exp $
2#
3
4WARNS?= 2	# XXX -Wcast-qual (etc)
5
6PROG=	wsmoused
7SRCS=	wsmoused.c config.c config_yacc.y config_lex.l
8
9MAN=	wsmoused.conf.5 wsmoused.8
10
11WSMOUSED_ACTION_MODE?=		yes
12WSMOUSED_SELECTION_MODE?=	yes
13
14.if !empty(WSMOUSED_ACTION_MODE:M[Yy][Ee][Ss])
15CPPFLAGS+=	-DWSMOUSED_ACTION_MODE
16SRCS+=		action.c
17.endif
18
19.if !empty(WSMOUSED_SELECTION_MODE:M[Yy][Ee][Ss])
20CPPFLAGS+=	-DWSMOUSED_SELECTION_MODE
21SRCS+=		selection.c
22.endif
23
24CPPFLAGS+=	-I${.CURDIR} -I.
25LDADD+=		-lutil
26
27YHEADER=	yes
28
29.include <bsd.prog.mk>
30