6 # -ffast-math breaks us
7 CUSTOM_CFLAGS
=-Wall
-ggdb3
-O3
-march
=i686
-std
=gnu99
-fomit-frame-pointer
-frename-registers
13 # CUSTOM_CFLAGS+= -pg -fno-inline
21 INSTALL
=/usr
/bin
/install
29 OBJS
=board.o gtp.o move.o random.o stone.o zzgo.o
30 SUBDIRS
=random montecarlo montecasino
32 all: all-recursive zzgo
34 LOCALLIBS
=random
/random.a montecarlo
/montecarlo.a montecasino
/montecasino.a
35 zzgo
: $(OBJS
) $(LOCALLIBS
)
40 @make
clean all LDFLAGS
=-fprofile-generate XCFLAGS
="-fprofile-generate -fomit-frame-pointer -frename-registers"
41 echo
-e
'boardsize 9\nkomi 0\nclear_board\ngenmove black\ngenmove white' | .
/zzgo games
=5000
42 @make
clean all clean-profiled LDFLAGS
=-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