8 # -ffast-math breaks us
9 CUSTOM_CFLAGS
=-Wall
-ggdb3
-O3
-std
=gnu99
-frename-registers
-pthread
-Wsign-compare
-D_GNU_SOURCE
11 SYS_CFLAGS
=-DNO_THREAD_LOCAL
12 LDFLAGS
=-lm
-pthread
-ldl
-rdynamic
14 SYS_CFLAGS
=-march
=native
15 LDFLAGS
=-lm
-pthread
-lrt
-ldl
-rdynamic
21 CUSTOM_CFLAGS
+=-pg
-fno-inline
23 # Whee, an extra register!
24 CUSTOM_CFLAGS
+=-fomit-frame-pointer
33 INSTALL
=/usr
/bin
/install
41 OBJS
=board.o gtp.o move.o ownermap.o pattern3.o pattern.o patternsp.o playout.o probdist.o random.o stone.o tactics.o timeinfo.o network.o
42 SUBDIRS
=random replay patternscan joseki montecarlo uct uct
/policy playout t-unit distributed
44 all: all-recursive zzgo
46 LOCALLIBS
=random
/random.a replay
/replay.a patternscan
/patternscan.a joseki
/joseki.a montecarlo
/montecarlo.a uct
/uct.a uct
/policy
/uctpolicy.a playout
/playout.a t-unit
/test.a distributed
/distributed.a
47 zzgo
: $(OBJS
) zzgo.o
$(LOCALLIBS
)
52 @make
clean all XLDFLAGS
=-fprofile-generate XCFLAGS
="-fprofile-generate -fomit-frame-pointer -frename-registers"
53 .
/zzgo
-t
=5000 no_book
<genmove19.gtp
54 @make
clean all clean-profiled XLDFLAGS
=-fprofile-use XCFLAGS
="-fprofile-use -fomit-frame-pointer -frename-registers"
58 $(INSTALL
) .
/zzgo
$(DESTDIR
)$(BINDIR
)
61 clean: clean-recursive
64 clean-profiled
: clean-profiled-recursive