fixed enable zippy in configure script and added some checks for OS X
[xboard.git] / Makefile.am
index b72e3e5..f84d4bc 100644 (file)
@@ -1,5 +1,12 @@
+
+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= -lm @XAW_LIBS@