1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217
|
## $Id: Makefile.am,v 1.202 2008/02/08 22:12:33 c_anthon Exp $
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = lib doc met po m4 xpm sounds board3d textures scripts flags fonts non-src .
bin_PROGRAMS = gnubg makebearoff makehyper bearoffdump makeweights
# Added for Debian to prevent readline, ncurses, gmp, dl, and m from being
# linked with everything. Only gnubg needs most of those.
LDFLAGS=
LIBS=
#
##include path
#
INCLUDES = -I$(srcdir)/lib -I$(srcdir)/board3d @LIBXML2_CFLAGS@ \
-DLOCALEDIR=\"$(localedir)\" @FREETYPE2_CFLAGS@ @PYTHON_CSPEC@ @GLIB_CFLAGS@ \
@LIBPNG_CFLAGS@ @GTK_CFLAGS@ @CAIRO_CFLAGS@ @PANGOCAIRO_CFLAGS@ @GTHREAD_CFLAGS@ @ESD_CFLAGS@ \
@WINMMSND_CFLAGS@ @GTKGLEXT_CFLAGS@ @SQLITE_CFLAGS@
BUILT_SOURCES = sgf_y.c sgf_l.c copying.c credits.c external_l.c external_y.c
#
## sources for building the main executable
#
gnubg_SOURCES = \
analysis.c \
analysis.h \
backgammon.h \
bearoff.c \
bearoffgammon.c \
bearoffgammon.h \
bearoff.h \
boarddim.h \
boardpos.c \
boardpos.h \
common.h \
copying.c \
credits.c \
credits.h \
dbprovider.c \
dbprovider.h \
dice.c \
dice.h \
drawboard.c \
drawboard.h \
eval.c \
eval.h \
export.c \
export.h \
external.c \
external.h \
external_l.l \
external_y.y \
file.c \
file.h \
format.c \
formatgs.c \
formatgs.h \
format.h \
gnubg.c \
gnubgmodule.c \
gnubgmodule.h \
html.c \
htmlimages.c \
import.c \
import.h \
latex.c \
matchequity.c \
matchequity.h \
matchid.c \
matchid.h \
mec.c \
mec.h \
multithread.h \
openurl.c \
openurl.h \
osr.c \
osr.h \
play.c \
positionid.c \
positionid.h \
progress.c \
progress.h \
record.c \
record.h \
relational.c \
relational.h \
render.c \
render.h \
renderprefs.c \
renderprefs.h \
rollout.c \
rollout.h \
set.c \
sgf.c \
sgf.h \
sgf_l.c \
sgf_y.c \
sgf_y.h \
show.c \
simpleboard.c \
simpleboard.h \
sound.c \
sound.h \
speed.c \
speed.h \
text.c \
timer.c \
util.h \
util.c
if USE_MULTITHREAD
gnubg_SOURCES += multithread.c
endif
if USE_GTK
gnubg_SOURCES += gtkboard.c gtkboard.h gtkgame.c gtkgame.h gtkfile.c gtkfile.h \
gtkprefs.c gtkprefs.h gtk-multiview.c gtk-multiview.h gtktheory.c \
gtktheory.h gtkexport.c gtkexport.h gtkcube.c gtkcube.h \
gtkchequer.c gtkchequer.h gtkrace.c gtkrace.h gtkmovefilter.c \
gtkmovefilter.h gtkmet.c gtkmet.h gtkcolour.c gtkcolour.h gtksplash.c \
gtksplash.h gtkrolls.c gtkrolls.h gtktempmap.c gtktempmap.h \
gtkoptions.h gtkoptions.c gtktoolbar.h gtktoolbar.c \
gtkgamelist.c gtkpanels.c gtkpanels.h gtkmovelist.c gtkmovelistctrl.c gtkmovelistctrl.h \
gtkwindows.c gtkwindows.h gtkrelational.c gtkrelational.h
endif
#
##linkpath for gnubg
#
gnubg_LDADD = lib/libevent.a lib/libneuralnetsse.a -lgtk-x11-2.0 -lgdk-x11-2.0 \
-lgdk_pixbuf-2.0 @LIBPNG_LIBS@ -lpangocairo-1.0 -lpango-1.0 \
-lcairo -lesd -lgobject-2.0 -lglib-2.0 \
@WINMMSND_LIBS@ @LTLIBOBJS@ @LTLIBINTL@ @LIBXML2_LIBS@ \
-lfreetype @PYTHON_LSPEC@ @SQLITE_LIBS@ -lreadline -lgmp -lm
if USE_BOARD3D
gnubg_LDADD += board3d/libboard3d.a -lgtkglext-x11-1.0 -lgdkglext-x11-1.0
endif
#
##common sources for building the utility programs
#
UTILSOURCES = eval.h eval.c positionid.h positionid.c \
matchequity.c matchequity.h matchid.h matchid.c \
osr.c osr.h \
bearoffgammon.c bearoffgammon.h bearoff.c bearoff.h \
mec.h mec.c util.c util.h
makebearoff_SOURCES = makebearoff.c $(UTILSOURCES)
makebearoff_LDADD = lib/libevent.a @GLIB_LIBS@ @LIBXML2_LIBS@ -lm
makehyper_SOURCES = makehyper.c $(UTILSOURCES)
makehyper_LDADD = lib/libevent.a @GLIB_LIBS@ @LIBXML2_LIBS@ -lm
bearoffdump_SOURCES = bearoffdump.c $(UTILSOURCES)
bearoffdump_LDADD = lib/libevent.a @GLIB_LIBS@ @LIBXML2_LIBS@ -lm
makeweights_SOURCES = makeweights.c
makeweights_LDADD = lib/libevent.a @GLIB_LIBS@
#
##files to be installed in the datadir
#
pkgdata_DATA = gnubg_ts0.bd gnubg.wd boards.xml \
gnubg_os0.bd textures.txt gnubg.sql gnubg.gtkrc gnubg.svg gnubg.png
#
##files to add to the tarball when 'make dist'
#
EXTRA_DIST = config.rpath userrng.c copying.awk gnubg.gtkrc credits.sh \
$(BUILT_SOURCES) ABOUT-NLS boards.xml gnubg.sql autogen.sh \
gnubg.weights textures.txt gnubg.png gnubg.svg corecount.c \
external_y.h sgf_y.h
#
##credits.c target
#
credits.c: credits.sh
cd $(srcdir) && $(SHELL) ./credits.sh
#
##copying.c target
#
copying.c: COPYING copying.awk
$(AWK) -f $(srcdir)/copying.awk < $(srcdir)/COPYING > $@
#
##databases
#
if CROSS_COMPILING
gnubg.wd:
@echo ' ** NOTE: Since you are cross-compiling GNU Backgammon,'
@echo ' ** it is not possible to generate weight and database files'
@echo ' ** on the build system. To create these files manually,'
@echo ' ** use commands like:'
@echo ' ** makeweights < gnubg.weights > gnubg.wd'
@echo ' ** makebearoff -o 6 -s 7999999 > gnubg_os0.bd'
@echo ' ** makebearoff -t 6x6 > gnubg_ts0.bd'
@echo ' ** on the host system.'
else
gnubg.wd: gnubg.weights makeweights$(EXEEXT)
[ -s $@ ] || \
./makeweights < $< > $@
gnubg_os0.bd: makebearoff$(EXEEXT)
[ -s $@ ] || \
./makebearoff -o 6 -s 7999999 -f $@
gnubg_ts0.bd: makebearoff$(EXEEXT)
[ -s $@ ] || \
./makebearoff -t 6x6 -f $@
endif
MOSTLYCLEANFILES=sgf_y.c sgf_y.h sgf_l.c external_l.c external_l.h external_y.c external_y.h copying.c credits.c credits.h
DISTCLEANFILES=gnubg_os0.bd gnubg_ts0.bd gnubg.wd
|