X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=Makefile.am;h=c388b7eeb681aa035bf4f4f0817c9ad17a99b81a;hb=8baea05c6e9e63f8b1b57891b67b5ac0e1961b81;hp=abce9f85ad549d6a2b7c9b983ea3e3b14929d3c9;hpb=447740095b0491c84370083c0ee2bf281aa502bd;p=xboard.git diff --git a/Makefile.am b/Makefile.am index abce9f8..c388b7e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -9,21 +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 \ - xhistory.c xoptions.c xboard.h \ - xengineoutput.c xevalgraph.h xgamelist.h \ - xhistory.h - -Xsources = xaw/xboard.c xaw/xboard.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 + +if withGTK + FRONTENDsources = $(GTKsources) + FRONTENDextras = $(Xsources) + headers = -I gtk +endif +if withXaw + FRONTENDsources = $(Xsources) + FRONTENDextras = $(GTKsources) + headers = -I xaw -DX11 +endif -backendsources = backend.c backend.h backendz.h \ +xboard_SOURCES = backend.c backend.h backendz.h \ book.c \ childio.c childio.h \ common.h \ @@ -35,26 +43,16 @@ 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) ### @@ -65,7 +63,7 @@ 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