X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=Makefile.am;h=e771fc8e532a80658579184f68f9ad812743fb40;hb=aa694af0138b799c4de3e031d15c2a9be3112b6c;hp=cf6a7d9d49d70282d74dfb9562980eac52f9ddab;hpb=190cfda76b87b10514aa45bac061c3d4828ceffe;p=xboard.git diff --git a/Makefile.am b/Makefile.am index cf6a7d9..e771fc8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,5 @@ +bin_PROGRAMS = xboard + ### if we are compiling with ZIPPY we need some extra source files if ZIPPY @@ -6,8 +8,21 @@ else ZPY = endif -bin_PROGRAMS = xboard -xboard_SOURCES = backend.c backend.h backendz.h \ +### define sources for the front-end and backend + +GTKsources = xboard.c xgamelist.c \ + xhistory.c xoptions.c xboard.h \ + xengineoutput.c xgamelist.h \ + xhistory.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 + + +backendsources = backend.c backend.h backendz.h \ book.c \ childio.c childio.h \ common.h \ @@ -19,21 +34,33 @@ xboard_SOURCES = backend.c backend.h backendz.h \ parser.c parser.h \ pgntags.c \ uci.c \ - xboard.c xboard.h args.h menus.c menus.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 nevalgraph.c evalgraph.h \ + history.c nhistory.c \ + menus.c menus.h \ usounds.c usystem.c usystem.h \ - board.c board.h \ - xedittags.c xedittags.h \ - engineoutput.c engineoutput.h \ - nengineoutput.c xengineoutput.c \ - evalgraph.c evalgraph.h xevalgraph.c xevalgraph.h\ - xgamelist.c xgamelist.h\ - history.c xhistory.c xhistory.h \ - xoptions.c dialogs.c dialogs.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 + +### + SUBDIRS = po -xboard_LDADD = -lm @XAW_LIBS@ @X_LIBS@ @LIBINTL@ @CAIRO_LIBS@ -EXTRA_DIST = pixmaps shogi sounds winboard \ +xboard_LDADD = -lm @X_LIBS@ @LIBINTL@ @FRONTEND_LIBS@ @CAIRO_LIBS@ + +EXTRA_DIST = pixmaps shogi png sounds winboard \ xboard.texi gpl.texinfo texi2man texinfo.tex xboard.man xboard.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 \ @@ -41,8 +68,8 @@ EXTRA_DIST = pixmaps shogi sounds winboard \ DISTCLEANFILES = stamp-h -AM_CPPFLAGS=-DINFODIR='"$(infodir)"' @CAIRO_CFLAGS@ @X_CFLAGS@ -DSYSCONFDIR='"$(sysconfdir)"' \ - -DLOCALEDIR='"$(localedir)"' -DSVGDIR='"$(svgdir)"' +AM_CPPFLAGS=-DINFODIR='"$(infodir)"' @CAIRO_CFLAGS@ @FRONTEND_CFLAGS@ -DSYSCONFDIR='"$(sysconfdir)"' \ + -DLOCALEDIR='"$(localedir)"' -DSVGDIR='"$(svgdir)"' $(headers) ACLOCAL_AMFLAGS = -I m4 @@ -55,7 +82,6 @@ man6_MANS = xboard.man sysconf_DATA = xboard.conf - ### icon files icondir = $(datadir)/icons/hicolor/48x48/apps @@ -126,7 +152,7 @@ dist_pixmaps_DATA = pixmaps/cross32.xpm pixmaps/cross48.xpm pixmaps/board32.xpm ### directory and files for pngs pngdir = $(datadir)/games/xboard/themes/textures -dist_png_DATA = png/hatch.png png/wood_d.png png/wood_l.png +dist_png_DATA = png/hatch.png png/wood_d.png png/wood_l.png png/xqboard.png ### directory and files for sound files