X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=Makefile.am;h=b6a709b0a08f463a7a437ee289f01f039378808d;hb=a56bd5ee92e43cbf5537d877fd4010e5e34a3e11;hp=b9308c4a8f02bce55a1c05b58e91858280dbf588;hpb=ac78c32b9714a6b32a754a7382f4d0d2549e0612;p=xboard.git diff --git a/Makefile.am b/Makefile.am index b9308c4..b6a709b 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,7 +8,29 @@ else ZPY = endif -bin_PROGRAMS = xboard +### define sources for the front-end and backend +GTKsources = gtk/xboard.c gtk/xboard.h \ + gtk/xoptions.c gtk/xtimer.c \ + gtk/xengineoutput.c + +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 \ + bitmaps/checkmark.bm bitmaps/icon_black.bm bitmaps/icon_white.bm + +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 \ @@ -19,30 +43,32 @@ 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) + $(ZPY) $(FRONTENDsources) + +### + SUBDIRS = po -xboard_LDADD = -lm @XAW_LIBS@ @X_LIBS@ @LIBINTL@ @CAIRO_LIBS@ -EXTRA_DIST = pixmaps shogi sounds winboard bitmaps\ +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-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@ @X_CFLAGS@ -DSYSCONFDIR='"$(sysconfdir)"' \ - -DLOCALEDIR='"$(localedir)"' -DSVGDIR='"$(svgdir)"' +AM_CPPFLAGS=-DINFODIR='"$(infodir)"' @X_CFLAGS@ @CAIRO_CFLAGS@ @FRONTEND_CFLAGS@ -DSYSCONFDIR='"$(sysconfdir)"' \ + -DLOCALEDIR='"$(localedir)"' -DSVGDIR='"$(svgdir)"' $(headers) ACLOCAL_AMFLAGS = -I m4 @@ -55,7 +81,6 @@ man6_MANS = xboard.man sysconf_DATA = xboard.conf - ### icon files icondir = $(datadir)/icons/hicolor/48x48/apps @@ -126,7 +151,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