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