Makefile.am revision f66df612
1# 2# Copyright 2005 Red Hat, Inc. 3# 4# Permission to use, copy, modify, distribute, and sell this software and its 5# documentation for any purpose is hereby granted without fee, provided that 6# the above copyright notice appear in all copies and that both that 7# copyright notice and this permission notice appear in supporting 8# documentation, and that the name of Red Hat not be used in 9# advertising or publicity pertaining to distribution of the software without 10# specific, written prior permission. Red Hat makes no 11# representations about the suitability of this software for any purpose. It 12# is provided "as is" without express or implied warranty. 13# 14# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20# PERFORMANCE OF THIS SOFTWARE. 21# 22 23AM_YFLAGS = -d 24 25bin_PROGRAMS = twm 26 27rcdir = ${datadir}/X11/twm 28dist_rc_DATA = system.twmrc 29 30AM_CPPFLAGS = \ 31 -DAPP_NAME=\"twm\" \ 32 -DAPP_CLASS=\"twm\" \ 33 -DAPP_VERSION=\"$(VERSION)\" \ 34 -DXVENDORNAME=\"The\ X.Org\ Foundation\" \ 35 -DXORG_RELEASE=\"Release\ $(VERSION)\" \ 36 -DSYSTEM_INIT_FILE=\"${rcdir}/system.twmrc\" 37 38AM_CFLAGS = $(TWM_CFLAGS) $(XRANDR_CFLAGS) 39twm_LDADD = $(TWM_LIBS) $(XRANDR_LIBS) 40 41twm_SOURCES = \ 42 add_window.c \ 43 add_window.h \ 44 cursor.c \ 45 deftwmrc.c \ 46 events.c \ 47 events.h \ 48 gc.c \ 49 gc.h \ 50 iconmgr.c \ 51 iconmgr.h \ 52 icons.c \ 53 icons.h \ 54 list.c \ 55 list.h \ 56 menus.c \ 57 menus.h \ 58 parse.c \ 59 parse.h \ 60 resize.c \ 61 resize.h \ 62 screen.h \ 63 session.c \ 64 session.h \ 65 twm.c \ 66 twm.h \ 67 util.c \ 68 util.h \ 69 version.c \ 70 version.h \ 71 gram.y \ 72 lex.l 73 74BUILT_SOURCES = gram.h deftwmrc.c 75 76deftwmrc.c: system.twmrc 77 $(AM_V_at)rm -f $@ ; \ 78 echo '/* ' >>$@ ; \ 79 echo ' * This file is generated automatically from the default' >>$@ ; \ 80 echo ' * twm bindings file system.twmrc by the twm Makefile.' >>$@ ; \ 81 echo ' */' >>$@ ; \ 82 echo '' >>$@ ; \ 83 echo 'const unsigned char *defTwmrc[] = {' >>$@ ; \ 84 $(SED) -f ${srcdir}/deftwmrc.sed < ${srcdir}/system.twmrc >>$@ ; \ 85 echo ' (const unsigned char *) 0 };' >>$@ 86 87EXTRA_DIST = deftwmrc.sed siconify.bm 88