NetBSD/usr.sbin/wsmoused/Makefile

30 lines
563 B
Makefile

# $NetBSD: Makefile,v 1.9 2009/10/29 14:40:09 christos Exp $
#
WARNS?= 2 # XXX -Wcast-qual (etc)
PROG= wsmoused
SRCS= wsmoused.c config.c config_yacc.y config_lex.l
MAN= wsmoused.conf.5 wsmoused.8
WSMOUSED_ACTION_MODE?= yes
WSMOUSED_SELECTION_MODE?= yes
.if !empty(WSMOUSED_ACTION_MODE:M[Yy][Ee][Ss])
CPPFLAGS+= -DWSMOUSED_ACTION_MODE
SRCS+= action.c
.endif
.if !empty(WSMOUSED_SELECTION_MODE:M[Yy][Ee][Ss])
CPPFLAGS+= -DWSMOUSED_SELECTION_MODE
SRCS+= selection.c
.endif
CPPFLAGS+= -I${.CURDIR} -I.
LDADD+= -lutil
YHEADER= yes
.include <bsd.prog.mk>