Makefile.am revision ffd25bca
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 -DXVENDORNAME=\"The\ X.Org\ Foundation\" \ 32 -DXORG_RELEASE=\"Release\ $(VERSION)\" \ 33 -DSYSTEM_INIT_FILE=\"${datadir}/X11/twm/system.twmrc\" 34 35AM_CFLAGS = $(TWM_CFLAGS) 36twm_LDADD = $(TWM_LIBS) 37 38twm_SOURCES = \ 39 add_window.c \ 40 add_window.h \ 41 cursor.c \ 42 deftwmrc.c \ 43 events.c \ 44 events.h \ 45 gc.c \ 46 gc.h \ 47 iconmgr.c \ 48 iconmgr.h \ 49 icons.c \ 50 icons.h \ 51 list.c \ 52 list.h \ 53 menus.c \ 54 menus.h \ 55 parse.c \ 56 parse.h \ 57 resize.c \ 58 resize.h \ 59 screen.h \ 60 session.c \ 61 session.h \ 62 twm.c \ 63 twm.h \ 64 util.c \ 65 util.h \ 66 version.c \ 67 version.h \ 68 gram.y \ 69 lex.l 70 71BUILT_SOURCES = gram.h deftwmrc.c 72 73deftwmrc.c: system.twmrc 74 $(AM_V_at)rm -f $@ ; \ 75 echo '/* ' >>$@ ; \ 76 echo ' * This file is generated automatically from the default' >>$@ ; \ 77 echo ' * twm bindings file system.twmrc by the twm Makefile.' >>$@ ; \ 78 echo ' */' >>$@ ; \ 79 echo '' >>$@ ; \ 80 echo 'unsigned char *defTwmrc[] = {' >>$@ ; \ 81 $(SED) -f ${srcdir}/deftwmrc.sed < ${srcdir}/system.twmrc >>$@ ; \ 82 echo ' (unsigned char *) 0 };' >>$@ 83 84EXTRA_DIST = deftwmrc.sed siconify.bm 85