30 lines
574 B
Makefile
30 lines
574 B
Makefile
# $NetBSD: Makefile,v 1.8 2009/04/22 15:23:10 lukem 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. -DYY_NO_INPUT
|
|
LDADD+= -lutil
|
|
|
|
YHEADER= yes
|
|
|
|
.include <bsd.prog.mk>
|