diff --git a/Makefile.am b/Makefile.am index 4a281f4..c3c3a6a 100755 --- a/Makefile.am +++ b/Makefile.am @@ -858,7 +858,6 @@ librun_benchmark_la_SOURCES = \ benchmark/run_benchmark.c benchmark/run_benchmark.h noinst_PROGRAMS += malloc_bench malloc_bench_shared \ - malloc_bench_shared_full \ binary_trees binary_trees_shared malloc_bench_SOURCES = benchmark/malloc_bench.cc @@ -871,11 +870,16 @@ malloc_bench_shared_CXXFLAGS = $(PTHREAD_CFLAGS) $(AM_CXXFLAGS) $(NO_BUILTIN_CXX malloc_bench_shared_LDFLAGS = $(PTHREAD_CFLAGS) $(TCMALLOC_FLAGS) malloc_bench_shared_LDADD = librun_benchmark.la libtcmalloc_minimal.la $(PTHREAD_LIBS) +if WITH_HEAP_PROFILER_OR_CHECKER + +noinst_PROGRAMS += malloc_bench_shared_full malloc_bench_shared_full_SOURCES = benchmark/malloc_bench.cc malloc_bench_shared_full_CXXFLAGS = $(PTHREAD_CFLAGS) $(AM_CXXFLAGS) $(NO_BUILTIN_CXXFLAGS) malloc_bench_shared_full_LDFLAGS = $(PTHREAD_CFLAGS) $(TCMALLOC_FLAGS) malloc_bench_shared_full_LDADD = librun_benchmark.la libtcmalloc.la $(PTHREAD_LIBS) +endif WITH_HEAP_PROFILER_OR_CHECKER + binary_trees_SOURCES = benchmark/binary_trees.cc binary_trees_CXXFLAGS = $(PTHREAD_CFLAGS) $(AM_CXXFLAGS) $(NO_BUILTIN_CXXFLAGS) binary_trees_LDFLAGS = $(PTHREAD_CFLAGS) $(TCMALLOC_FLAGS) -static