Remove building with NOCRYPTO option
[minix.git] / external / mit / xorg / bin / twm / Makefile
blobd7507d3de052d36ca770e96986164273bfeb00a4
1 # $NetBSD: Makefile,v 1.6 2014/03/17 09:21:19 mrg 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+= -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}
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 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
53 .include <bsd.x11.mk>
54 .include <bsd.prog.mk>