# Debugging utilities which are intended solely for authors' internal use

DIRS+=debug
PROGS+=$(addprefix $(o)/debug/,whenis sample cols histogram log-times log-qsplit log-muxstats log-muxpeaks log-ssstats find-cycles pagerank mkgraphidx)
$(o)/debug/random-access: $(o)/debug/random-access.o $(LIBSH)
$(o)/debug/sample: $(o)/debug/sample.o $(LIBSH)
$(o)/debug/histogram: $(o)/debug/histogram.o $(LIBSH)
$(o)/debug/flashdis: $(o)/debug/flashdis.o $(LIBSH)
$(o)/debug/ffstest: $(o)/debug/ffstest.o $(LIBSH)
$(o)/debug/refs-analyse: $(o)/debug/refs-analyse.o $(o)/indexer/iconfig.o $(LIBSH) -lm
$(o)/debug/retros: $(o)/debug/retros.o $(LIBSH)
$(o)/debug/bmap: $(o)/debug/bmap.o $(LIBSH)
$(o)/debug/pagerank: $(o)/debug/pagerank.o $(LIBINDEXER) $(LIBSH)
$(o)/debug/mkgraphidx: $(o)/debug/mkgraphidx.o $(LIBSH)
$(o)/debug/noop: $(o)/debug/noop.o $(LIBUCW)
$(o)/debug/noop: LIBS+=-lpthread
