Sync usage with man page.
[netbsd-mini2440.git] / external / mit / xorg / bin / twm / Makefile
blobec48269c60db18ad7b3eacff7ffe089c25cae6cf
1 # $NetBSD: Makefile,v 1.2 2008/10/14 23:37:19 cube 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+= -e 's,TWMDIR,${TWMCONFIGDIR},g'
16 TWMDIR= ${X11SRCDIR.${PROG}}
18 CPPFLAGS+= -I. -I${TWMDIR}/src
19 CPPFLAGS+= -DHAS_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}
27 DPSRCS+= deftwmrc.c
28 CLEANFILES+= deftwmrc.c
29 deftwmrc.c: system.twmrc deftwmrc.sed
30 ${_MKTARGET_CREATE}
31 rm -f ${.TARGET}
32 echo '/* ' >>$@
33 echo ' * This file is generated automatically from the default' >>$@
34 echo ' * twm bindings file system.twmrc by the twm Makefile.' >>$@
35 echo ' */' >>$@
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 .include <bsd.x11.mk>
48 .include <bsd.prog.mk>