1 ### if we are compiling with ZIPPY we need some extra source files
10 xboard_SOURCES = backend.c backend.h backendz.h \
22 xboard.c xboard.h args.h \
23 xedittags.c xedittags.h \
24 engineoutput.c engineoutput.h \
26 evalgraph.c evalgraph.h xevalgraph.c xevalgraph.h\
27 xgamelist.c xgamelist.h\
28 xhistory.c xhistory.h \
30 filebrowser/selfile.c filebrowser/selfile.h \
31 filebrowser/draw.c filebrowser/path.c \
32 filebrowser/dir.c filebrowser/xstat.h \
34 xboard_LDADD = -lm @XAW_LIBS@ @X_LIBS@
36 EXTRA_DIST = pixmaps bitmaps winboard sounds filebrowser/README \
37 xboard.texi gpl.texinfo texi2man texinfo.tex xboard.man xboard.desktop \
38 COPYRIGHT FAQ.html engine-intf.html ics-parsing.txt readme.htm zippy.README
40 DISTCLEANFILES = stamp-h
42 AM_CPPFLAGS=-DINFODIR='"$(infodir)"' @X_CFLAGS@ -DSYSCONFDIR='"$(sysconfdir)"' -DBITMAPDIR='"$(datadir)/games/xboard/bitmaps/"'
44 info_TEXINFOS = xboard.texi
45 xboard_TEXINFOS = copyright.texi
46 man6_MANS = xboard.man
51 dist_sysconf_DATA = xboard.conf
56 icondir = $(datadir)/icons/hicolor/48x48/apps
57 dist_icon_DATA = xboard.png
58 svgicondir = $(datadir)/icons/hicolor/scalable/apps
59 dist_svgicon_DATA = xboard.svg
62 ### desktop files for KDE and gnome
64 Applicationsdir = $(datadir)/applications
65 Applications_DATA = xboard.desktop
68 ### directory and files to be used as bitmaps
70 bitmapdir = $(datadir)/games/xboard/
71 dist_bitmap_DATA = pixmaps/wood_d.xpm pixmaps/wood_l.xpm
74 ### set correct dir in xboard.conf
76 edit = sed -e 's|@bitmapdir[@]|$(bitmapdir)|g'
78 xboard.conf: Makefile $(srcdir)/xboard.conf.in
81 test -f ./$@.in || srcdir=$(srcdir)/;
82 $(edit) $${srcdir}$@.in >$@.tmp
86 ### the man page depends on several files, so we add a special rule
88 xboard.man: xboard.texi copyright.texi gpl.texinfo version.texi
89 $(srcdir)/texi2man $(srcdir)/xboard.texi > xboard.man || (rm -f xboard.man ; false)