Expand PMF_FN_* macros.
[netbsd-mini2440.git] / x11 / bin / twm / Makefile
blob9fba3632a46d9bc13b5255971b8c8670f970f39d
1 # $NetBSD: Makefile,v 1.6 2005/03/19 21:41:58 christos Exp $
3 .include <bsd.own.mk>
5 PROG= twm
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
10 YHEADER=1
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}
22 DPSRCS+= deftwmrc.c
23 CLEANFILES+= deftwmrc.c
24 deftwmrc.c: system.twmrc deftwmrc.sed
25 ${_MKTARGET_CREATE}
26 rm -f ${.TARGET}
27 echo '/* ' >>$@
28 echo ' * This file is generated automatically from the default' >>$@
29 echo ' * twm bindings file system.twmrc by the twm Makefile.' >>$@
30 echo ' */' >>$@
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}
42 .include <bsd.x11.mk>
43 .include <bsd.prog.mk>