1 # $NetBSD: Makefile,v 1.6 2014/03/17 09:21:19 mrg Exp $
6 SRCS
= gram.y
lex.l deftwmrc.c add_window.c gc.c list.c twm.c \
7 parse.c menus.c events.c resize.c util.c version.c iconmgr.c \
8 cursor.c icons.c session.c
12 TWMCONFIGDIR
= ${X11ETCDIR}/twm
14 X11EXTRAMANDEFS
+= -e
's,TWMDIR,${TWMCONFIGDIR},g'
16 TWMDIR
= ${X11SRCDIR.
${PROG}}
18 CPPFLAGS
+= -I.
-I
${TWMDIR}/src
19 CPPFLAGS
+= -DHAVE_MKSTEMP
-DXORG_RELEASE
=${XORG_RELEASE} \
20 -DXVENDORNAME
=${XVENDORNAME}
22 CPPFLAGS.parse.c
= -DSYSTEM_INIT_FILE
=\"${TWMCONFIGDIR}/system.twmrc
\"
24 CONFIGFILES
= system.twmrc
25 FILESDIR
= ${TWMCONFIGDIR}
28 CLEANFILES
+= deftwmrc.c
29 deftwmrc.c
: system.twmrc deftwmrc.sed
33 echo
' * This file is generated automatically from the default' >>$@
34 echo
' * twm bindings file system.twmrc by the twm Makefile.' >>$@
36 echo
'char *defTwmrc[] = {' >>$@
37 ${TOOL_SED} -f
${TWMDIR}/src
/deftwmrc.sed \
38 < ${TWMDIR}/src
/system.twmrc
>>$@
39 echo
' (char *) 0 };' >>$@
42 LDADD
+= -lXmu
-lXt
-lSM
-lICE
-lXext
-lX11
43 DPADD
+= ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11}
45 .PATH
: ${TWMDIR}/src
${TWMDIR}/man
47 CWARNFLAGS.clang
+= -Wno-pointer-sign
49 # XXX: has const issues best solved upstream
50 COPTS.menus.c
+= -Wno-error
51 COPTS.util.c
+= -Wno-error
54 .
include <bsd.prog.mk
>