fixed enable zippy in configure script and added some checks for OS X
[xboard.git] / Makefile.am
index 580e36b..f84d4bc 100644 (file)
@@ -1,8 +1,15 @@
+
+if ZIPPY
+  ZPY = zippy.c
+else 
+  ZPY =
+endif 
+
 bin_PROGRAMS = xboard
-xboard_SOURCES = backend.c lists.c pgntags.c xedittags.c xhistory.c zippy.c childio.c moves.c uci.c xengineoutput.c xoptions.c gamelist.c parser.l xboard.c xgamelist.c book.c
+xboard_SOURCES = backend.c lists.c pgntags.c xedittags.c xhistory.c $(ZPY) childio.c moves.c uci.c xengineoutput.c xoptions.c gamelist.c parser.l xboard.c xgamelist.c book.c
 
 AM_CPPFLAGS=-DINFODIR='"$(infodir)"'
-AM_LDFLAGS=-lXt -lm @XAW_LIBS@
+AM_LDFLAGS= -lm @XAW_LIBS@
 
 info_TEXINFOS = copyright.texi xboard.texi
 man6_MANS = xboard.man