8 # -ffast-math breaks us
9 CUSTOM_CFLAGS
=-Wall
-ggdb3
-O3
-march
=native
-std
=gnu99
-frename-registers
-pthread
16 CUSTOM_CFLAGS
+=-pg
-fno-inline
18 # Whee, an extra register!
19 CUSTOM_CFLAGS
+=-fomit-frame-pointer
28 INSTALL
=/usr
/bin
/install
36 OBJS
=board.o gtp.o move.o ownermap.o pattern3.o playout.o probdist.o random.o stone.o tactics.o
37 SUBDIRS
=random montecarlo uct uct
/policy playout
39 all: all-recursive zzgo t-unit
/test
41 LOCALLIBS
=random
/random.a montecarlo
/montecarlo.a uct
/uct.a uct
/policy
/uctpolicy.a playout
/playout.a
42 zzgo
: $(OBJS
) zzgo.o
$(LOCALLIBS
)
44 t-unit
/test: $(OBJS
) t-unit
/test.o
$(LOCALLIBS
)
45 ln
test.o t-unit
/test.o
# XXX
50 @make
clean all XLDFLAGS
=-fprofile-generate XCFLAGS
="-fprofile-generate -fomit-frame-pointer -frename-registers"
51 .
/zzgo games
=5000,no_book
<genmove.gtp
52 @make
clean all clean-profiled XLDFLAGS
=-fprofile-use XCFLAGS
="-fprofile-use -fomit-frame-pointer -frename-registers"
56 $(INSTALL
) .
/zzgo
$(DESTDIR
)$(BINDIR
)
59 clean: clean-recursive
60 rm -f zzgo
*.o t-unit
/test t-unit
/*.o
62 clean-profiled
: clean-profiled-recursive