6 # -ffast-math breaks us
7 CUSTOM_CFLAGS
=-Wall
-ggdb3
-O3
-march
=native
-std
=gnu99
-fomit-frame-pointer
-frename-registers
-pthread
13 # CUSTOM_CFLAGS+= -pg -fno-inline
21 INSTALL
=/usr
/bin
/install
29 OBJS
=board.o gtp.o move.o playout.o random.o stone.o zzgo.o
30 SUBDIRS
=random montecarlo uct uct
/policy playout
32 all: all-recursive zzgo
34 LOCALLIBS
=random
/random.a montecarlo
/montecarlo.a uct
/uct.a uct
/policy
/uctpolicy.a playout
/playout.a
35 zzgo
: $(OBJS
) $(LOCALLIBS
)
40 @make
clean all XLDFLAGS
=-fprofile-generate XCFLAGS
="-fprofile-generate -fomit-frame-pointer -frename-registers"
41 .
/zzgo games
=5000,no_book
<genmove.gtp
42 @make
clean all clean-profiled XLDFLAGS
=-fprofile-use XCFLAGS
="-fprofile-use -fomit-frame-pointer -frename-registers"
46 $(INSTALL
) .
/zzgo
$(DESTDIR
)$(BINDIR
)
49 clean: clean-recursive
52 clean-profiled
: clean-profiled-recursive