X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=Makefile.am;h=7e5363b21e2d4e3888dbdaf3fc7c3795c934065d;hb=123b5b814cbc71aa6575fcea6c92131b47a237e7;hp=b56b362c28e29fa51d8941dc82b9c948a4e9032d;hpb=8a0368b7169965529802961fbd16fdfacf3c639d;p=xboard.git diff --git a/Makefile.am b/Makefile.am index b56b362..7e5363b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -9,23 +9,29 @@ else endif ### define sources for the front-end and backend +GTKsources = gtk/xboard.c gtk/xboard.h \ + gtk/xoptions.c gtk/xtimer.c \ + gtk/xengineoutput.c -GTKsources = xboard.c xevalgraph.c xgamelist.c \ - xedittags.c xedittags.h \ - xhistory.c xoptions.c xboard.h \ - xengineoutput.c xevalgraph.h xgamelist.h \ - xhistory.h - -Xsources = xaw/xboard.c xaw/xboard.h \ - xaw/xedittags.c xaw/xedittags.h \ - xaw/xengineoutput.c \ - xaw/xevalgraph.c xaw/xevalgraph.h \ +Xsources = xaw/xboard.c xaw/xboard.h \ + xaw/xengineoutput.c \ xaw/xgamelist.c xaw/xgamelist.h \ - xaw/xhistory.c xaw/xhistory.h \ - xaw/xoptions.c - + xaw/xhistory.c xaw/xhistory.h \ + xaw/xoptions.c \ + bitmaps/checkmark.bm bitmaps/icon_black.bm bitmaps/icon_white.bm -backendsources = backend.c backend.h backendz.h \ +if withGTK + FRONTENDsources = $(GTKsources) + FRONTENDextras = $(Xsources) + headers = -I gtk +endif +if withXaw + FRONTENDsources = $(Xsources) + FRONTENDextras = $(GTKsources) + headers = -I xaw -DX11 +endif + +xboard_SOURCES = backend.c backend.h backendz.h \ book.c \ childio.c childio.h \ common.h \ @@ -37,41 +43,31 @@ backendsources = backend.c backend.h backendz.h \ parser.c parser.h \ pgntags.c \ uci.c \ - args.h \ + args.h xboard2.h \ board.c board.h \ draw.c draw.h \ dialogs.c dialogs.h \ engineoutput.c nengineoutput.c engineoutput.h \ - evalgraph.c evalgraph.h \ + evalgraph.c nevalgraph.c evalgraph.h \ history.c nhistory.c \ menus.c menus.h \ usounds.c usystem.c usystem.h \ - $(ZPY) - -### combine sources depending on front-end - -if withGTK - xboard_SOURCES = $(backendsources) $(GTKsources) -endif -if withXaw - xboard_SOURCES = $(backendsources) $(Xsources) - headers = -I xaw -endif + $(ZPY) $(FRONTENDsources) ### SUBDIRS = po -xboard_LDADD = -lm @X_LIBS@ @LIBINTL@ @FRONTEND_LIBS@ @CAIRO_LIBS@ +xboard_LDADD = -lm @FRONTEND_LIBS@ @X_LIBS@ @LIBINTL@ @CAIRO_LIBS@ EXTRA_DIST = pixmaps shogi png sounds winboard \ - xboard.texi gpl.texinfo texi2man texinfo.tex xboard.man xboard.desktop \ + xboard.texi gpl.texinfo texi2man texinfo.tex xboard.man xboard.desktop xboard-config.desktop \ xboard-fen-viewer.desktop xboard-pgn-viewer.desktop xboard-tourney.desktop xboard.xml \ COPYRIGHT FAQ.html engine-intf.html ics-parsing.txt readme.htm zippy.README \ - xboard.conf.in SHORTLOG DIFFSTAT history.c ABOUT-NLS + xboard.conf.in SHORTLOG DIFFSTAT history.c ABOUT-NLS $(FRONTENDextras) DISTCLEANFILES = stamp-h -AM_CPPFLAGS=-DINFODIR='"$(infodir)"' @CAIRO_CFLAGS@ @FRONTEND_CFLAGS@ -DSYSCONFDIR='"$(sysconfdir)"' \ +AM_CPPFLAGS=-DINFODIR='"$(infodir)"' @X_CFLAGS@ @CAIRO_CFLAGS@ @FRONTEND_CFLAGS@ -DSYSCONFDIR='"$(sysconfdir)"' \ -DLOCALEDIR='"$(localedir)"' -DSVGDIR='"$(svgdir)"' $(headers) ACLOCAL_AMFLAGS = -I m4 @@ -96,7 +92,7 @@ dist_svgicon_DATA = xboard.svg ### desktop files for KDE and gnome Applicationsdir = $(datadir)/applications -Applications_DATA = xboard.desktop xboard-fen-viewer.desktop xboard-pgn-viewer.desktop xboard-tourney.desktop +Applications_DATA = xboard.desktop xboard-fen-viewer.desktop xboard-pgn-viewer.desktop xboard-tourney.desktop xboard-config.desktop ### mime file mimedir = $(datadir)/mime/packages @@ -106,7 +102,6 @@ mime_DATA = xboard.xml svgdir = $(datadir)/games/xboard/themes/default dist_svg_DATA = svg/icon_white.svg svg/icon_black.svg \ - svg/DarkSquare.svg svg/LightSquare.svg svg/NeutralSquare.svg \ svg/BlackAdvisor.svg svg/WhiteAdvisor.svg \ svg/BlackArchbishop.svg svg/WhiteArchbishop.svg \ svg/BlackBishop.svg svg/WhiteBishop.svg \ @@ -147,10 +142,19 @@ dist_shogi_DATA = shogi/WhiteGold.svg shogi/WhiteCrownedBishop.svg\ shogi/WhiteRook.svg shogi/WhiteCrownedRook.svg\ shogi/WhiteAdvisor.svg shogi/WhiteGoldSilver.svg +xiangqidir = $(datadir)/games/xboard/themes/xiangqi +dist_xiangqi_DATA = themes/xiangqi/BlackAdvisor.svg themes/xiangqi/WhiteAdvisor.svg \ + themes/xiangqi/BlackCanon.svg themes/xiangqi/WhiteCanon.svg \ + themes/xiangqi/BlackElephant.svg themes/xiangqi/WhiteElephant.svg \ + themes/xiangqi/BlackKnight.svg themes/xiangqi/WhiteKnight.svg \ + themes/xiangqi/BlackGold.svg themes/xiangqi/WhiteGold.svg \ + themes/xiangqi/BlackPawn.svg themes/xiangqi/WhitePawn.svg \ + themes/xiangqi/BlackRook.svg themes/xiangqi/WhiteRook.svg + ### directory and files for pixmaps pixmapsdir = $(datadir)/games/xboard/pixmaps/textures -dist_pixmaps_DATA = pixmaps/cross32.xpm pixmaps/cross48.xpm pixmaps/board32.xpm pixmaps/board48.xpm +dist_pixmaps_DATA = pixmaps/cross32.xpm pixmaps/cross48.xpm pixmaps/board32.xpm pixmaps/board48.xpm pixmaps/ini32.xpm pixmaps/ini48.xpm ### directory and files for pngs