1 # $NetBSD: Makefile,v 1.6 2005/03/19 21:41:58 christos 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
+= -DTWMDIR
=${TWMCONFIGDIR}
16 CPPFLAGS
+= -I.
-I
${X11SRCDIR.xc
}/programs
/${PROG} -DHAS_MKSTEMP
17 CPPFLAGS.parse.c
= -DSYSTEM_INIT_FILE
=\"${TWMCONFIGDIR}/system.twmrc
\"
19 CONFIGFILES
= system.twmrc
20 FILESDIR
= ${TWMCONFIGDIR}
23 CLEANFILES
+= deftwmrc.c
24 deftwmrc.c
: system.twmrc deftwmrc.sed
28 echo
' * This file is generated automatically from the default' >>$@
29 echo
' * twm bindings file system.twmrc by the twm Makefile.' >>$@
31 echo
'char *defTwmrc[] = {' >>$@
32 ${TOOL_SED} -f
${X11SRCDIR.xc
}/programs
/${PROG}/deftwmrc.sed \
33 < ${X11SRCDIR.xc
}/programs
/${PROG}/system.twmrc
>>$@
34 echo
' (char *) 0 };' >>$@
37 LDADD
+= -lXpm
-lXmu
-lXt
-lSM
-lICE
-lXext
-lX11
38 DPADD
+= ${LIBXPM} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11}
40 .PATH
: ${X11SRCDIR.xc
}/programs
/${PROG}
43 .
include <bsd.prog.mk
>