summaryrefslogtreecommitdiff
path: root/src/perfglue/Makefile.am
blob: f2b8d5030e641ae2faeecd2f9147ecb310c7a001 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
libperfglue_la_SOURCES =

if WITH_TCMALLOC
libperfglue_la_SOURCES += perfglue/heap_profiler.cc
libperfglue_la_LIBADD = -ltcmalloc
AM_CFLAGS += -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free
AM_CXXFLAGS += -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free
else
libperfglue_la_SOURCES += perfglue/disabled_heap_profiler.cc
endif # WITH_TCMALLOC

if WITH_PROFILER
libperfglue_la_SOURCES += perfglue/cpu_profiler.cc
else
libperfglue_la_SOURCES += perfglue/disabled_stubs.cc
endif # WITH_PROFILER

noinst_LTLIBRARIES += libperfglue.la

noinst_HEADERS += \
	perfglue/cpu_profiler.h \
	perfglue/heap_profiler.h