OLD | NEW |
1 ## Process this file with automake to produce Makefile.in | 1 ## Process this file with automake to produce Makefile.in |
2 | 2 |
3 # Note: for every library we create, we're explicit about what symbols | 3 # Note: for every library we create, we're explicit about what symbols |
4 # we export. In order to avoid complications with C++ mangling, we always | 4 # we export. In order to avoid complications with C++ mangling, we always |
5 # use the regexp for of specifying symbols. | 5 # use the regexp for of specifying symbols. |
6 | 6 |
7 # Make sure that when we re-make ./configure, we get the macros we need | 7 # Make sure that when we re-make ./configure, we get the macros we need |
8 ACLOCAL_AMFLAGS = -I m4 | 8 ACLOCAL_AMFLAGS = -I m4 |
9 | 9 |
10 # This is so we can #include <google/foo> | 10 # This is so we can #include <gperftools/foo> |
11 AM_CPPFLAGS = -I$(top_srcdir)/src | 11 AM_CPPFLAGS = -I$(top_srcdir)/src |
12 | 12 |
13 if !WITH_STACK_TRACE | 13 if !WITH_STACK_TRACE |
14 AM_CPPFLAGS += -DNO_TCMALLOC_SAMPLES | 14 AM_CPPFLAGS += -DNO_TCMALLOC_SAMPLES |
15 endif !WITH_STACK_TRACE | 15 endif !WITH_STACK_TRACE |
16 | 16 |
17 # This is mostly based on configure options | 17 # This is mostly based on configure options |
18 AM_CXXFLAGS = | 18 AM_CXXFLAGS = |
19 | 19 |
20 # These are good warnings to turn on by default. We also tell gcc | 20 # These are good warnings to turn on by default. We also tell gcc |
21 # that malloc, free, realloc, mmap, etc. are not builtins (these flags | 21 # that malloc, free, realloc, mmap, etc. are not builtins (these flags |
22 # are supported since gcc 3.1.1). gcc doesn't think most of them are | 22 # are supported since gcc 3.1.1). gcc doesn't think most of them are |
23 # builtins now in any case, but it's best to be explicit in case that | 23 # builtins now in any case, but it's best to be explicit in case that |
24 # changes one day. gcc ignores functions it doesn't understand. | 24 # changes one day. gcc ignores functions it doesn't understand. |
25 if GCC | 25 if GCC |
26 AM_CXXFLAGS += -Wall -Wwrite-strings -Woverloaded-virtual \ | 26 AM_CXXFLAGS += -Wall -Wwrite-strings -Woverloaded-virtual \ |
27 -Wno-sign-compare \ | 27 -Wno-sign-compare \ |
28 -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc \ | 28 -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc \ |
29 -fno-builtin-calloc -fno-builtin-cfree \ | 29 -fno-builtin-calloc -fno-builtin-cfree \ |
30 -fno-builtin-memalign -fno-builtin-posix_memalign \ | 30 -fno-builtin-memalign -fno-builtin-posix_memalign \ |
31 -fno-builtin-valloc -fno-builtin-pvalloc | 31 -fno-builtin-valloc -fno-builtin-pvalloc |
| 32 # On i386, -mmmx is needed for the mmx-based instructions in |
| 33 # atomicops-internal-x86.h. |
| 34 if I386 |
| 35 AM_CXXFLAGS += -mmmx |
| 36 endif I386 |
32 endif GCC | 37 endif GCC |
33 if HAVE_W_NO_UNUSED_RESULT | 38 if HAVE_W_NO_UNUSED_RESULT |
34 AM_CXXFLAGS += -Wno-unused-result | 39 AM_CXXFLAGS += -Wno-unused-result |
35 endif HAVE_W_NO_UNUSED_RESULT | 40 endif HAVE_W_NO_UNUSED_RESULT |
36 | 41 |
37 # The -no-undefined flag allows libtool to generate shared libraries for | 42 # The -no-undefined flag allows libtool to generate shared libraries for |
38 # Cygwin and MinGW. LIBSTDCXX_LA_LINKER_FLAG is used to fix a Solaris bug. | 43 # Cygwin and MinGW. LIBSTDCXX_LA_LINKER_FLAG is used to fix a Solaris bug. |
39 AM_LDFLAGS = -no-undefined $(LIBSTDCXX_LA_LINKER_FLAG) | 44 AM_LDFLAGS = -no-undefined $(LIBSTDCXX_LA_LINKER_FLAG) |
40 | 45 |
41 # We know our low-level code cannot trigger an exception. On some | 46 # We know our low-level code cannot trigger an exception. On some |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 -W _Znwm -W _ZnwmRKSt9nothrow_t -W _Znam -W _ZnamRKSt9nothrow_t \ | 92 -W _Znwm -W _ZnwmRKSt9nothrow_t -W _Znam -W _ZnamRKSt9nothrow_t \ |
88 -W _ZdlPv -W _ZdaPv \ | 93 -W _ZdlPv -W _ZdaPv \ |
89 -W __Znwm -W __ZnwmRKSt9nothrow_t -W __Znam -W __ZnamRKSt9nothrow_t \ | 94 -W __Znwm -W __ZnwmRKSt9nothrow_t -W __Znam -W __ZnamRKSt9nothrow_t \ |
90 -W __ZdlPv -W __ZdaPv | 95 -W __ZdlPv -W __ZdaPv |
91 else | 96 else |
92 WEAKEN = : | 97 WEAKEN = : |
93 endif !HAVE_OBJCOPY_WEAKEN | 98 endif !HAVE_OBJCOPY_WEAKEN |
94 | 99 |
95 LIBS_TO_WEAKEN = | 100 LIBS_TO_WEAKEN = |
96 | 101 |
97 googleincludedir = $(includedir)/google | 102 perftoolsincludedir = $(includedir)/gperftools |
98 # The .h files you want to install (that is, .h files that people | 103 # The .h files you want to install (that is, .h files that people |
99 # who install this package can include in their own applications.) | 104 # who install this package can include in their own applications.) |
100 # We'll add to this later, on a library-by-library basis | 105 # We'll add to this later, on a library-by-library basis |
101 googleinclude_HEADERS = | 106 perftoolsinclude_HEADERS = |
102 # tcmalloc.h is a special case, because it's a .h.in file | 107 # tcmalloc.h is a special case, because it's a .h.in file |
103 nodist_googleinclude_HEADERS = src/google/tcmalloc.h | 108 nodist_perftoolsinclude_HEADERS = src/gperftools/tcmalloc.h |
104 noinst_HEADERS = src/google/tcmalloc.h.in | 109 noinst_HEADERS = src/gperftools/tcmalloc.h.in |
| 110 |
| 111 # This is provided for backwards compatibility. It is populated by |
| 112 # files that just forward to the canonical location in |
| 113 # perftoolsincludedir. |
| 114 googleincludedir = $(includedir)/google |
| 115 googleinclude_HEADERS =»» » » \ |
| 116 src/google/heap-checker.h» » » \ |
| 117 src/google/heap-profiler.h» » » \ |
| 118 src/google/malloc_extension.h» » \ |
| 119 src/google/malloc_extension_c.h» » \ |
| 120 src/google/malloc_hook.h» » » \ |
| 121 src/google/malloc_hook_c.h» » » \ |
| 122 src/google/profiler.h» » » \ |
| 123 src/google/stacktrace.h» » » \ |
| 124 src/google/tcmalloc.h \ |
| 125 src/windows/google/tcmalloc.h |
105 | 126 |
106 docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION) | 127 docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION) |
107 # This is for HTML and other documentation you want to install. | 128 # This is for HTML and other documentation you want to install. |
108 # Add your documentation files (in doc/) in addition to these | 129 # Add your documentation files (in doc/) in addition to these |
109 # top-level boilerplate files. Also add a TODO file if you have one. | 130 # top-level boilerplate files. Also add a TODO file if you have one. |
110 # We'll add to this later, on a library-by-library basis | 131 # We'll add to this later, on a library-by-library basis |
111 dist_doc_DATA = AUTHORS COPYING ChangeLog INSTALL NEWS README README_windows.txt
\ | 132 dist_doc_DATA = AUTHORS COPYING ChangeLog INSTALL NEWS README README_windows.txt
\ |
112 TODO | 133 TODO |
113 | 134 |
114 # The libraries (.so's) you want to install | 135 # The libraries (.so's) you want to install |
115 # We'll add to this later, on a library-by-library basis | 136 # We'll add to this later, on a library-by-library basis |
116 lib_LTLIBRARIES = | 137 lib_LTLIBRARIES = |
117 # This is for 'convenience libraries' -- basically just a container for sources | 138 # This is for 'convenience libraries' -- basically just a container for sources |
118 noinst_LTLIBRARIES = | 139 noinst_LTLIBRARIES = |
119 ## The location of the windows project file for each binary we make | 140 ## The location of the windows project file for each binary we make |
120 WINDOWS_PROJECTS = google-perftools.sln | 141 WINDOWS_PROJECTS = gperftools.sln |
121 | 142 |
122 # unittests you want to run when people type 'make check'. | 143 # unittests you want to run when people type 'make check'. |
123 # Note: tests cannot take any arguments! | 144 # Note: tests cannot take any arguments! |
124 # In theory, unittests that are scripts should be added to check_SCRIPTS | 145 # In theory, unittests that are scripts should be added to check_SCRIPTS |
125 # instead. But check_SCRIPTS is definitely a second-class testing mechanims: | 146 # instead. But check_SCRIPTS is definitely a second-class testing mechanims: |
126 # it don't get TESTS_ENVIRONMENT, and it doesn't get success/failure counting | 147 # it don't get TESTS_ENVIRONMENT, and it doesn't get success/failure counting |
127 # (in fact, a script failure aborts all the rest of the tests, even with -k). | 148 # (in fact, a script failure aborts all the rest of the tests, even with -k). |
128 # So, for scripts, we add the script to tests, and also put in an empty | 149 # So, for scripts, we add the script to tests, and also put in an empty |
129 # rule so automake doesn't try to build the script as a C binary. | 150 # rule so automake doesn't try to build the script as a C binary. |
130 TESTS = | 151 TESTS = |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 libspinlock_la_SOURCES = src/base/spinlock.cc \ | 235 libspinlock_la_SOURCES = src/base/spinlock.cc \ |
215 src/base/spinlock_internal.cc \ | 236 src/base/spinlock_internal.cc \ |
216 $(SPINLOCK_INCLUDES) | 237 $(SPINLOCK_INCLUDES) |
217 | 238 |
218 LIBSPINLOCK = libwindows.la libspinlock.la libsysinfo.la liblogging.la | 239 LIBSPINLOCK = libwindows.la libspinlock.la libsysinfo.la liblogging.la |
219 | 240 |
220 # We also need to tell mingw that sysinfo.cc needs shlwapi.lib. | 241 # We also need to tell mingw that sysinfo.cc needs shlwapi.lib. |
221 # (We do this via a #pragma for msvc, but need to do it here for mingw). | 242 # (We do this via a #pragma for msvc, but need to do it here for mingw). |
222 libsysinfo_la_LIBADD += -lshlwapi | 243 libsysinfo_la_LIBADD += -lshlwapi |
223 | 244 |
| 245 # There's a windows-specific unittest we can run. Right now it's |
| 246 # win64-specific, and relies on masm, so we comment it out. |
| 247 ## TESTS += preamble_patcher_test |
| 248 ## preamble_patcher_test_SOURCES = src/windows/preamble_patcher_test.cc \ |
| 249 ## src/windows/shortproc.asm \ |
| 250 ## src/windows/auto_testing_hook.h \ |
| 251 ## src/windows/preamble_patcher.h \ |
| 252 ## src/base/basictypes.h \ |
| 253 ## src/base/logging.h |
| 254 ## preamble_patcher_test_LDFLAGS = $(TCMALLOC_FLAGS) |
| 255 ## preamble_patcher_test_LDADD = $(LIBTCMALLOC_MINIMAL) |
| 256 |
224 # patch_functions.cc #includes tcmalloc.cc, so no need to link it in. | 257 # patch_functions.cc #includes tcmalloc.cc, so no need to link it in. |
225 TCMALLOC_CC = | 258 TCMALLOC_CC = |
226 # windows has its own system for threads and system memory allocation. | 259 # windows has its own system for threads and system memory allocation. |
227 MAYBE_THREADS_CC = | 260 MAYBE_THREADS_CC = |
228 SYSTEM_ALLOC_CC = | 261 SYSTEM_ALLOC_CC = |
229 else !MINGW | 262 else !MINGW |
230 # spinlock is the only code that uses atomicops. | 263 # spinlock is the only code that uses atomicops. |
231 SPINLOCK_INCLUDES = src/base/spinlock.h \ | 264 SPINLOCK_INCLUDES = src/base/spinlock.h \ |
232 src/base/spinlock_internal.h \ | 265 src/base/spinlock_internal.h \ |
233 src/base/atomicops.h \ | 266 src/base/atomicops.h \ |
234 src/base/atomicops-internals-macosx.h \ | 267 src/base/atomicops-internals-macosx.h \ |
235 src/base/atomicops-internals-linuxppc.h \ | 268 src/base/atomicops-internals-linuxppc.h \ |
236 src/base/atomicops-internals-windows.h \ | 269 src/base/atomicops-internals-windows.h \ |
237 src/base/atomicops-internals-x86.h | 270 src/base/atomicops-internals-x86.h |
238 | 271 |
239 noinst_LTLIBRARIES += libspinlock.la | 272 noinst_LTLIBRARIES += libspinlock.la |
240 libspinlock_la_SOURCES = src/base/spinlock.cc \ | 273 libspinlock_la_SOURCES = src/base/spinlock.cc \ |
241 src/base/spinlock_internal.cc \ | 274 src/base/spinlock_internal.cc \ |
242 src/base/atomicops-internals-x86.cc \ | 275 src/base/atomicops-internals-x86.cc \ |
243 $(SPINLOCK_INCLUDES) | 276 $(SPINLOCK_INCLUDES) |
244 libspinlock_la_LIBADD = $(NANOSLEEP_LIBS) | 277 libspinlock_la_LIBADD = $(NANOSLEEP_LIBS) |
245 # spinlock also needs NumCPUs, from libsysinfo, which in turn needs liblogging | 278 # spinlock also needs NumCPUs, from libsysinfo, which in turn needs liblogging |
246 LIBSPINLOCK = libspinlock.la libsysinfo.la liblogging.la | 279 LIBSPINLOCK = libspinlock.la libsysinfo.la liblogging.la |
247 | 280 |
248 TCMALLOC_CC = src/tcmalloc.cc | 281 TCMALLOC_CC = src/tcmalloc.cc |
249 MAYBE_THREADS_CC = src/maybe_threads.cc | 282 MAYBE_THREADS_CC = src/maybe_threads.cc |
250 SYSTEM_ALLOC_CC = src/system-alloc.cc | 283 SYSTEM_ALLOC_CC = src/system-alloc.cc |
251 endif !MINGW | 284 endif !MINGW |
252 | 285 |
| 286 # Add this whether or not we're under MinGW, to keep the tarball complete. |
| 287 WINDOWS_PROJECTS += vsprojects/preamble_patcher_test/preamble_patcher_test.vcpro
j |
| 288 # Because we've commented out the test, above, we have to explicitly add |
| 289 # the test files to the tarball or automake will leave them out. |
| 290 WINDOWS_PROJECTS += src/windows/preamble_patcher_test.cc \ |
| 291 src/windows/shortproc.asm \ |
| 292 src/windows/auto_testing_hook.h |
| 293 |
253 ### Unittests | 294 ### Unittests |
254 TESTS += low_level_alloc_unittest | 295 TESTS += low_level_alloc_unittest |
255 WINDOWS_PROJECTS += vsprojects/low_level_alloc_unittest/low_level_alloc_unittest
.vcproj | 296 WINDOWS_PROJECTS += vsprojects/low_level_alloc_unittest/low_level_alloc_unittest
.vcproj |
256 LOW_LEVEL_ALLOC_UNITTEST_INCLUDES = src/base/low_level_alloc.h \ | 297 LOW_LEVEL_ALLOC_UNITTEST_INCLUDES = src/base/low_level_alloc.h \ |
257 src/base/basictypes.h \ | 298 src/base/basictypes.h \ |
258 src/google/malloc_hook.h \ | 299 src/gperftools/malloc_hook.h \ |
259 src/google/malloc_hook_c.h \ | 300 src/gperftools/malloc_hook_c.h \ |
260 src/malloc_hook-inl.h \ | 301 src/malloc_hook-inl.h \ |
261 src/malloc_hook_mmap_linux.h \ | 302 src/malloc_hook_mmap_linux.h \ |
262 src/malloc_hook_mmap_freebsd.h \ | 303 src/malloc_hook_mmap_freebsd.h \ |
263 $(SPINLOCK_INCLUDES) \ | 304 $(SPINLOCK_INCLUDES) \ |
264 $(LOGGING_INCLUDES) | 305 $(LOGGING_INCLUDES) |
265 low_level_alloc_unittest_SOURCES = src/base/low_level_alloc.cc \ | 306 low_level_alloc_unittest_SOURCES = src/base/low_level_alloc.cc \ |
266 src/malloc_hook.cc \ | 307 src/malloc_hook.cc \ |
267 $(MAYBE_THREADS_CC) \ | 308 $(MAYBE_THREADS_CC) \ |
268 src/tests/low_level_alloc_unittest.cc \ | 309 src/tests/low_level_alloc_unittest.cc \ |
269 $(LOW_LEVEL_ALLOC_UNITTEST_INCLUDES) | 310 $(LOW_LEVEL_ALLOC_UNITTEST_INCLUDES) |
(...skipping 14 matching lines...) Expand all Loading... |
284 | 325 |
285 | 326 |
286 ### ------- stack trace | 327 ### ------- stack trace |
287 | 328 |
288 if WITH_STACK_TRACE | 329 if WITH_STACK_TRACE |
289 | 330 |
290 ### The header files we use. We divide into categories based on directory | 331 ### The header files we use. We divide into categories based on directory |
291 S_STACKTRACE_INCLUDES = src/stacktrace_config.h \ | 332 S_STACKTRACE_INCLUDES = src/stacktrace_config.h \ |
292 src/stacktrace_generic-inl.h \ | 333 src/stacktrace_generic-inl.h \ |
293 src/stacktrace_libunwind-inl.h \ | 334 src/stacktrace_libunwind-inl.h \ |
294 » » » src/stacktrace_nacl-inl.h \ | 335 » » » src/stacktrace_arm-inl.h \ |
295 src/stacktrace_powerpc-inl.h \ | 336 src/stacktrace_powerpc-inl.h \ |
296 src/stacktrace_x86_64-inl.h \ | |
297 src/stacktrace_x86-inl.h \ | 337 src/stacktrace_x86-inl.h \ |
298 src/stacktrace_win32-inl.h \ | 338 src/stacktrace_win32-inl.h \ |
299 src/base/elf_mem_image.h \ | 339 src/base/elf_mem_image.h \ |
300 src/base/vdso_support.h | 340 src/base/vdso_support.h |
301 | 341 |
302 SG_STACKTRACE_INCLUDES = src/google/stacktrace.h | 342 SG_STACKTRACE_INCLUDES = src/gperftools/stacktrace.h |
303 STACKTRACE_INCLUDES = $(S_STACKTRACE_INCLUDES) $(SG_STACKTRACE_INCLUDES) | 343 STACKTRACE_INCLUDES = $(S_STACKTRACE_INCLUDES) $(SG_STACKTRACE_INCLUDES) |
304 googleinclude_HEADERS += $(SG_STACKTRACE_INCLUDES) | 344 perftoolsinclude_HEADERS += $(SG_STACKTRACE_INCLUDES) |
305 | 345 |
306 ### Making the library | 346 ### Making the library |
307 noinst_LTLIBRARIES += libstacktrace.la | 347 noinst_LTLIBRARIES += libstacktrace.la |
308 libstacktrace_la_SOURCES = src/stacktrace.cc \ | 348 libstacktrace_la_SOURCES = src/stacktrace.cc \ |
309 src/base/elf_mem_image.cc \ | 349 src/base/elf_mem_image.cc \ |
310 src/base/vdso_support.cc \ | 350 src/base/vdso_support.cc \ |
311 $(STACKTRACE_INCLUDES) | 351 $(STACKTRACE_INCLUDES) |
312 libstacktrace_la_LIBADD = $(UNWIND_LIBS) $(LIBSPINLOCK) | 352 libstacktrace_la_LIBADD = $(UNWIND_LIBS) $(LIBSPINLOCK) |
313 STACKTRACE_SYMBOLS = '(GetStackTrace|GetStackFrames|GetStackTraceWithContext|Get
StackFramesWithContext)' | 353 STACKTRACE_SYMBOLS = '(GetStackTrace|GetStackFrames|GetStackTraceWithContext|Get
StackFramesWithContext)' |
314 libstacktrace_la_LDFLAGS = -export-symbols-regex $(STACKTRACE_SYMBOLS) | 354 libstacktrace_la_LDFLAGS = -export-symbols-regex $(STACKTRACE_SYMBOLS) |
315 | 355 |
316 ### Unittests | 356 ### Unittests |
317 TESTS += stacktrace_unittest | 357 TESTS += stacktrace_unittest |
318 STACKTRACE_UNITTEST_INLCUDES = src/config_for_unittests.h \ | 358 STACKTRACE_UNITTEST_INCLUDES = src/config_for_unittests.h \ |
319 src/base/commandlineflags.h \ | 359 src/base/commandlineflags.h \ |
320 $(STACKTRACE_INCLUDES) \ | 360 $(STACKTRACE_INCLUDES) \ |
321 $(LOGGING_INCLUDES) | 361 $(LOGGING_INCLUDES) |
322 stacktrace_unittest_SOURCES = src/tests/stacktrace_unittest.cc \ | 362 stacktrace_unittest_SOURCES = src/tests/stacktrace_unittest.cc \ |
323 $(STACKTRACE_UNITTEST_INLCUDES) | 363 $(STACKTRACE_UNITTEST_INCLUDES) |
324 stacktrace_unittest_LDADD = libstacktrace.la liblogging.la | 364 stacktrace_unittest_LDADD = libstacktrace.la liblogging.la |
325 | 365 |
326 ### Documentation | 366 ### Documentation |
327 dist_doc_DATA += | 367 dist_doc_DATA += |
328 | 368 |
329 endif WITH_STACK_TRACE | 369 endif WITH_STACK_TRACE |
330 | 370 |
331 ### ------- pprof | 371 ### ------- pprof |
332 | 372 |
333 # If we are not compiling with stacktrace support, pprof is worthless | 373 # If we are not compiling with stacktrace support, pprof is worthless |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 src/span.h \ | 422 src/span.h \ |
383 src/static_vars.h \ | 423 src/static_vars.h \ |
384 src/symbolize.h \ | 424 src/symbolize.h \ |
385 src/thread_cache.h \ | 425 src/thread_cache.h \ |
386 src/stack_trace_table.h \ | 426 src/stack_trace_table.h \ |
387 src/base/thread_annotations.h \ | 427 src/base/thread_annotations.h \ |
388 src/malloc_hook-inl.h \ | 428 src/malloc_hook-inl.h \ |
389 src/malloc_hook_mmap_linux.h \ | 429 src/malloc_hook_mmap_linux.h \ |
390 src/malloc_hook_mmap_freebsd.h \ | 430 src/malloc_hook_mmap_freebsd.h \ |
391 src/maybe_threads.h | 431 src/maybe_threads.h |
392 SG_TCMALLOC_MINIMAL_INCLUDES = src/google/malloc_hook.h \ | 432 SG_TCMALLOC_MINIMAL_INCLUDES = src/gperftools/malloc_hook.h \ |
393 src/google/malloc_hook_c.h \ | 433 src/gperftools/malloc_hook_c.h \ |
394 src/google/malloc_extension.h \ | 434 src/gperftools/malloc_extension.h \ |
395 src/google/malloc_extension_c.h \ | 435 src/gperftools/malloc_extension_c.h \ |
396 src/google/stacktrace.h | 436 src/gperftools/stacktrace.h |
397 TCMALLOC_MINIMAL_INCLUDES = $(S_TCMALLOC_MINIMAL_INCLUDES) $(SG_TCMALLOC_MINIMAL
_INCLUDES) | 437 TCMALLOC_MINIMAL_INCLUDES = $(S_TCMALLOC_MINIMAL_INCLUDES) $(SG_TCMALLOC_MINIMAL
_INCLUDES) |
398 googleinclude_HEADERS += $(SG_TCMALLOC_MINIMAL_INCLUDES) | 438 perftoolsinclude_HEADERS += $(SG_TCMALLOC_MINIMAL_INCLUDES) |
399 | 439 |
400 ### Making the library | 440 ### Making the library |
401 | 441 |
402 # As we describe at the top of this file, we want to turn off exceptions | 442 # As we describe at the top of this file, we want to turn off exceptions |
403 # for all files in this library -- except tcmalloc.cc which needs them | 443 # for all files in this library -- except tcmalloc.cc which needs them |
404 # to fulfill its API. Automake doesn't allow per-file CXXFLAGS, so we need | 444 # to fulfill its API. Automake doesn't allow per-file CXXFLAGS, so we need |
405 # to separate into two libraries. | 445 # to separate into two libraries. |
406 noinst_LTLIBRARIES += libtcmalloc_minimal_internal.la | 446 noinst_LTLIBRARIES += libtcmalloc_minimal_internal.la |
407 libtcmalloc_minimal_internal_la_SOURCES = src/common.cc \ | 447 libtcmalloc_minimal_internal_la_SOURCES = src/common.cc \ |
408 src/internal_logging.cc \ | 448 src/internal_logging.cc \ |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 LIBTCMALLOC_MINIMAL = libtcmalloc_minimal.la | 487 LIBTCMALLOC_MINIMAL = libtcmalloc_minimal.la |
448 endif !MINGW | 488 endif !MINGW |
449 | 489 |
450 LIBS_TO_WEAKEN += libtcmalloc_minimal.la | 490 LIBS_TO_WEAKEN += libtcmalloc_minimal.la |
451 | 491 |
452 ### Unittests | 492 ### Unittests |
453 | 493 |
454 # Commented out for the moment because malloc(very_big_num) is broken in | 494 # Commented out for the moment because malloc(very_big_num) is broken in |
455 # standard libc! At least, in some situations, some of the time. | 495 # standard libc! At least, in some situations, some of the time. |
456 ## TESTS += malloc_unittest | 496 ## TESTS += malloc_unittest |
457 ## MALLOC_UNITEST_INCLUDES = src/google/malloc_extension.h \ | 497 ## MALLOC_UNITEST_INCLUDES = src/gperftools/malloc_extension.h \ |
458 ## src/google/malloc_hook.h \ | 498 ## src/gperftools/malloc_hook.h \ |
459 ## src/google/malloc_hook_c.h \ | 499 ## src/gperftools/malloc_hook_c.h \ |
460 ## src/malloc_hook-inl.h \ | 500 ## src/malloc_hook-inl.h \ |
461 ## src/malloc_hook_mmap_linux.h \ | 501 ## src/malloc_hook_mmap_linux.h \ |
462 ## src/malloc_hook_mmap_freebsd.h \ | 502 ## src/malloc_hook_mmap_freebsd.h \ |
463 ## src/base/basictypes.h \ | 503 ## src/base/basictypes.h \ |
464 ## src/maybe_threads.h | 504 ## src/maybe_threads.h |
465 ## malloc_unittest_SOURCES = src/tests/tcmalloc_unittest.cc \ | 505 ## malloc_unittest_SOURCES = src/tests/tcmalloc_unittest.cc \ |
466 ## src/malloc_hook.cc \ | 506 ## src/malloc_hook.cc \ |
467 ## src/malloc_extension.cc \ | 507 ## src/malloc_extension.cc \ |
468 ## $(MAYBE_THREADS_CC) \ | 508 ## $(MAYBE_THREADS_CC) \ |
469 ## $(MALLOC_UNITTEST_INCLUDES) | 509 ## $(MALLOC_UNITTEST_INCLUDES) |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 src/config_for_unittests.h | 610 src/config_for_unittests.h |
571 current_allocated_bytes_test_CXXFLAGS = $(PTHREAD_CFLAGS) $(AM_CXXFLAGS) | 611 current_allocated_bytes_test_CXXFLAGS = $(PTHREAD_CFLAGS) $(AM_CXXFLAGS) |
572 current_allocated_bytes_test_LDFLAGS = $(PTHREAD_CFLAGS) $(TCMALLOC_FLAGS) | 612 current_allocated_bytes_test_LDFLAGS = $(PTHREAD_CFLAGS) $(TCMALLOC_FLAGS) |
573 current_allocated_bytes_test_LDADD = $(LIBTCMALLOC_MINIMAL) $(PTHREAD_LIBS) | 613 current_allocated_bytes_test_LDADD = $(LIBTCMALLOC_MINIMAL) $(PTHREAD_LIBS) |
574 | 614 |
575 TESTS += malloc_hook_test | 615 TESTS += malloc_hook_test |
576 WINDOWS_PROJECTS += vsprojects/malloc_hook_test/malloc_hook_test.vcproj | 616 WINDOWS_PROJECTS += vsprojects/malloc_hook_test/malloc_hook_test.vcproj |
577 malloc_hook_test_SOURCES = src/tests/malloc_hook_test.cc \ | 617 malloc_hook_test_SOURCES = src/tests/malloc_hook_test.cc \ |
578 src/config_for_unittests.h \ | 618 src/config_for_unittests.h \ |
579 src/base/logging.h \ | 619 src/base/logging.h \ |
580 src/google/malloc_hook.h \ | 620 src/gperftools/malloc_hook.h \ |
581 src/tests/testutil.h src/tests/testutil.cc | 621 src/tests/testutil.h src/tests/testutil.cc |
582 malloc_hook_test_CXXFLAGS = $(PTHREAD_CFLAGS) $(AM_CXXFLAGS) | 622 malloc_hook_test_CXXFLAGS = $(PTHREAD_CFLAGS) $(AM_CXXFLAGS) |
583 malloc_hook_test_LDFLAGS = $(PTHREAD_CFLAGS) $(TCMALLOC_FLAGS) | 623 malloc_hook_test_LDFLAGS = $(PTHREAD_CFLAGS) $(TCMALLOC_FLAGS) |
584 malloc_hook_test_LDADD = $(LIBTCMALLOC_MINIMAL) $(PTHREAD_LIBS) | 624 malloc_hook_test_LDADD = $(LIBTCMALLOC_MINIMAL) $(PTHREAD_LIBS) |
585 | 625 |
586 TESTS += malloc_extension_test | 626 TESTS += malloc_extension_test |
587 WINDOWS_PROJECTS += vsprojects/malloc_extension_test/malloc_extension_test.vcpro
j | 627 WINDOWS_PROJECTS += vsprojects/malloc_extension_test/malloc_extension_test.vcpro
j |
588 malloc_extension_test_SOURCES = src/tests/malloc_extension_test.cc \ | 628 malloc_extension_test_SOURCES = src/tests/malloc_extension_test.cc \ |
589 src/config_for_unittests.h \ | 629 src/config_for_unittests.h \ |
590 src/base/logging.h \ | 630 src/base/logging.h \ |
591 src/google/malloc_extension.h \ | 631 src/gperftools/malloc_extension.h \ |
592 src/google/malloc_extension_c.h | 632 src/gperftools/malloc_extension_c.h |
593 malloc_extension_test_CXXFLAGS = $(PTHREAD_CFLAGS) $(AM_CXXFLAGS) | 633 malloc_extension_test_CXXFLAGS = $(PTHREAD_CFLAGS) $(AM_CXXFLAGS) |
594 malloc_extension_test_LDFLAGS = $(PTHREAD_CFLAGS) $(TCMALLOC_FLAGS) | 634 malloc_extension_test_LDFLAGS = $(PTHREAD_CFLAGS) $(TCMALLOC_FLAGS) |
595 malloc_extension_test_LDADD = $(LIBTCMALLOC_MINIMAL) $(PTHREAD_LIBS) | 635 malloc_extension_test_LDADD = $(LIBTCMALLOC_MINIMAL) $(PTHREAD_LIBS) |
596 | 636 |
597 # This doesn't work with static linkage, because libtcmalloc.a isn't | 637 # This doesn't work with static linkage, because libtcmalloc.a isn't |
598 # happy with C linkage (it misses the stdc++ library). Likewise with | 638 # happy with C linkage (it misses the stdc++ library). Likewise with |
599 # mingw, which links foo.a even though it doesn't set ENABLE_STATIC. | 639 # mingw, which links foo.a even though it doesn't set ENABLE_STATIC. |
600 # TODO(csilvers): set enable_static=true in configure.ac:36? | 640 # TODO(csilvers): set enable_static=true in configure.ac:36? |
601 if !MINGW | 641 if !MINGW |
602 if !ENABLE_STATIC | 642 if !ENABLE_STATIC |
603 TESTS += malloc_extension_c_test | 643 TESTS += malloc_extension_c_test |
604 malloc_extension_c_test_SOURCES = src/tests/malloc_extension_c_test.c \ | 644 malloc_extension_c_test_SOURCES = src/tests/malloc_extension_c_test.c \ |
605 src/google/malloc_extension.h \ | 645 src/gperftools/malloc_extension.h \ |
606 src/google/malloc_extension_c.h | 646 src/gperftools/malloc_extension_c.h |
607 malloc_extension_c_test_CFLAGS = $(PTHREAD_CFLAGS) $(AM_CFLAGS) | 647 malloc_extension_c_test_CFLAGS = $(PTHREAD_CFLAGS) $(AM_CFLAGS) |
608 # -ansi here is just to help ensure the code is bog-standard C. | 648 # -ansi here is just to help ensure the code is bog-standard C. |
609 if GCC | 649 if GCC |
610 malloc_extension_c_test_CFLAGS += -ansi | 650 malloc_extension_c_test_CFLAGS += -ansi |
611 endif GCC | 651 endif GCC |
612 malloc_extension_c_test_LDFLAGS = $(PTHREAD_CFLAGS) $(TCMALLOC_FLAGS) | 652 malloc_extension_c_test_LDFLAGS = $(PTHREAD_CFLAGS) $(TCMALLOC_FLAGS) |
613 malloc_extension_c_test_LDADD = $(LIBTCMALLOC_MINIMAL) $(PTHREAD_LIBS) | 653 malloc_extension_c_test_LDADD = $(LIBTCMALLOC_MINIMAL) $(PTHREAD_LIBS) |
614 endif !ENABLE_STATIC | 654 endif !ENABLE_STATIC |
615 endif !MINGW | 655 endif !MINGW |
616 | 656 |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 src/raw_printer.h \ | 836 src/raw_printer.h \ |
797 src/base/elfcore.h \ | 837 src/base/elfcore.h \ |
798 src/base/googleinit.h \ | 838 src/base/googleinit.h \ |
799 src/base/linux_syscall_support.h \ | 839 src/base/linux_syscall_support.h \ |
800 src/base/linuxthreads.h \ | 840 src/base/linuxthreads.h \ |
801 src/base/stl_allocator.h \ | 841 src/base/stl_allocator.h \ |
802 src/base/sysinfo.h \ | 842 src/base/sysinfo.h \ |
803 src/base/thread_lister.h \ | 843 src/base/thread_lister.h \ |
804 src/heap-profile-table.h | 844 src/heap-profile-table.h |
805 SG_TCMALLOC_INCLUDES = $(SG_TCMALLOC_MINIMAL_INCLUDES) \ | 845 SG_TCMALLOC_INCLUDES = $(SG_TCMALLOC_MINIMAL_INCLUDES) \ |
806 src/google/heap-profiler.h \ | 846 src/gperftools/heap-profiler.h \ |
807 src/google/heap-checker.h | 847 src/gperftools/heap-checker.h |
808 TCMALLOC_INCLUDES = $(S_TCMALLOC_INCLUDES) $(SG_TCMALLOC_INCLUDES) | 848 TCMALLOC_INCLUDES = $(S_TCMALLOC_INCLUDES) $(SG_TCMALLOC_INCLUDES) |
809 googleinclude_HEADERS += $(SG_TCMALLOC_INCLUDES) | 849 perftoolsinclude_HEADERS += $(SG_TCMALLOC_INCLUDES) |
810 | 850 |
811 ### Making the library | 851 ### Making the library |
812 | 852 |
813 # As we describe at the top of this file, we want to turn off exceptions | 853 # As we describe at the top of this file, we want to turn off exceptions |
814 # for all files in this library -- except tcmalloc.cc which needs them | 854 # for all files in this library -- except tcmalloc.cc which needs them |
815 # to fulfill its API. Automake doesn't allow per-file CXXFLAGS, so we need | 855 # to fulfill its API. Automake doesn't allow per-file CXXFLAGS, so we need |
816 # to separate into two libraries. | 856 # to separate into two libraries. |
817 noinst_LTLIBRARIES += libtcmalloc_internal.la | 857 noinst_LTLIBRARIES += libtcmalloc_internal.la |
818 libtcmalloc_internal_la_SOURCES = $(libtcmalloc_minimal_internal_la_SOURCES) \ | 858 libtcmalloc_internal_la_SOURCES = $(libtcmalloc_minimal_internal_la_SOURCES) \ |
819 $(TCMALLOC_INCLUDES) \ | 859 $(TCMALLOC_INCLUDES) \ |
(...skipping 30 matching lines...) Expand all Loading... |
850 endif !WITH_HEAP_CHECKER | 890 endif !WITH_HEAP_CHECKER |
851 | 891 |
852 LIBTCMALLOC = libtcmalloc.la | 892 LIBTCMALLOC = libtcmalloc.la |
853 | 893 |
854 LIBS_TO_WEAKEN += libtcmalloc.la | 894 LIBS_TO_WEAKEN += libtcmalloc.la |
855 | 895 |
856 ### Unittests | 896 ### Unittests |
857 | 897 |
858 TESTS += tcmalloc_unittest | 898 TESTS += tcmalloc_unittest |
859 TCMALLOC_UNITTEST_INCLUDES = src/config_for_unittests.h \ | 899 TCMALLOC_UNITTEST_INCLUDES = src/config_for_unittests.h \ |
860 src/google/malloc_extension.h | 900 src/gperftools/malloc_extension.h |
861 tcmalloc_unittest_SOURCES = src/tests/tcmalloc_unittest.cc \ | 901 tcmalloc_unittest_SOURCES = src/tests/tcmalloc_unittest.cc \ |
862 src/tcmalloc.h \ | 902 src/tcmalloc.h \ |
863 src/tests/testutil.h src/tests/testutil.cc \ | 903 src/tests/testutil.h src/tests/testutil.cc \ |
864 $(TCMALLOC_UNITTEST_INCLUDES) | 904 $(TCMALLOC_UNITTEST_INCLUDES) |
865 tcmalloc_unittest_CXXFLAGS = $(PTHREAD_CFLAGS) $(AM_CXXFLAGS) | 905 tcmalloc_unittest_CXXFLAGS = $(PTHREAD_CFLAGS) $(AM_CXXFLAGS) |
866 tcmalloc_unittest_LDFLAGS = $(PTHREAD_CFLAGS) $(TCMALLOC_FLAGS) | 906 tcmalloc_unittest_LDFLAGS = $(PTHREAD_CFLAGS) $(TCMALLOC_FLAGS) |
867 # We want libtcmalloc last on the link line, but due to a bug in | 907 # We want libtcmalloc last on the link line, but due to a bug in |
868 # libtool involving convenience libs, they need to come last on the | 908 # libtool involving convenience libs, they need to come last on the |
869 # link line in order to get dependency ordering right. This is ok: | 909 # link line in order to get dependency ordering right. This is ok: |
870 # convenience libraries are .a's, so tcmalloc is still the last .so. | 910 # convenience libraries are .a's, so tcmalloc is still the last .so. |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 sampling_test.sh$(EXEEXT): $(top_srcdir)/$(sampling_test_sh_SOURCES) \ | 982 sampling_test.sh$(EXEEXT): $(top_srcdir)/$(sampling_test_sh_SOURCES) \ |
943 sampling_test | 983 sampling_test |
944 rm -f $@ | 984 rm -f $@ |
945 cp -p $(top_srcdir)/$(sampling_test_sh_SOURCES) $@ | 985 cp -p $(top_srcdir)/$(sampling_test_sh_SOURCES) $@ |
946 | 986 |
947 # This is the sub-program used by sampling_test.sh | 987 # This is the sub-program used by sampling_test.sh |
948 # The -g is so pprof can get symbol information. | 988 # The -g is so pprof can get symbol information. |
949 noinst_PROGRAMS += sampling_test | 989 noinst_PROGRAMS += sampling_test |
950 SAMPLING_TEST_INCLUDES = src/config_for_unittests.h \ | 990 SAMPLING_TEST_INCLUDES = src/config_for_unittests.h \ |
951 src/base/logging.h \ | 991 src/base/logging.h \ |
952 src/google/malloc_extension.h | 992 src/gperftools/malloc_extension.h |
953 sampling_test_SOURCES = src/tests/sampling_test.cc \ | 993 sampling_test_SOURCES = src/tests/sampling_test.cc \ |
954 $(SAMPLING_TEST_INCLUDES) | 994 $(SAMPLING_TEST_INCLUDES) |
955 sampling_test_CXXFLAGS = -g $(PTHREAD_CFLAGS) $(AM_CXXFLAGS) | 995 sampling_test_CXXFLAGS = -g $(PTHREAD_CFLAGS) $(AM_CXXFLAGS) |
956 sampling_test_LDFLAGS = -g $(PTHREAD_CFLAGS) $(TCMALLOC_FLAGS) | 996 sampling_test_LDFLAGS = -g $(PTHREAD_CFLAGS) $(TCMALLOC_FLAGS) |
957 sampling_test_LDADD = $(LIBTCMALLOC) $(PTHREAD_LIBS) | 997 sampling_test_LDADD = $(LIBTCMALLOC) $(PTHREAD_LIBS) |
958 | 998 |
959 endif WITH_HEAP_PROFILER_OR_CHECKER | 999 endif WITH_HEAP_PROFILER_OR_CHECKER |
960 | 1000 |
961 if WITH_HEAP_PROFILER | 1001 if WITH_HEAP_PROFILER |
962 | 1002 |
963 TESTS += heap-profiler_unittest.sh$(EXEEXT) | 1003 TESTS += heap-profiler_unittest.sh$(EXEEXT) |
964 heap_profiler_unittest_sh_SOURCES = src/tests/heap-profiler_unittest.sh | 1004 heap_profiler_unittest_sh_SOURCES = src/tests/heap-profiler_unittest.sh |
965 noinst_SCRIPTS += $(heap_profiler_unittest_sh_SOURCES) | 1005 noinst_SCRIPTS += $(heap_profiler_unittest_sh_SOURCES) |
966 heap-profiler_unittest.sh$(EXEEXT): $(top_srcdir)/$(heap_profiler_unittest_sh_SO
URCES) \ | 1006 heap-profiler_unittest.sh$(EXEEXT): $(top_srcdir)/$(heap_profiler_unittest_sh_SO
URCES) \ |
967 heap-profiler_unittest | 1007 heap-profiler_unittest |
968 rm -f $@ | 1008 rm -f $@ |
969 cp -p $(top_srcdir)/$(heap_profiler_unittest_sh_SOURCES) $@ | 1009 cp -p $(top_srcdir)/$(heap_profiler_unittest_sh_SOURCES) $@ |
970 | 1010 |
971 # These are sub-programs used by heap-profiler_unittest.sh | 1011 # These are sub-programs used by heap-profiler_unittest.sh |
972 noinst_PROGRAMS += heap-profiler_unittest | 1012 noinst_PROGRAMS += heap-profiler_unittest |
973 HEAP_PROFILER_UNITTEST_INCLUDES = src/config_for_unittests.h \ | 1013 HEAP_PROFILER_UNITTEST_INCLUDES = src/config_for_unittests.h \ |
974 src/google/heap-profiler.h | 1014 src/gperftools/heap-profiler.h |
975 heap_profiler_unittest_SOURCES = src/tests/heap-profiler_unittest.cc \ | 1015 heap_profiler_unittest_SOURCES = src/tests/heap-profiler_unittest.cc \ |
976 $(HEAP_PROFILER_UNITTEST_INCLUDES) | 1016 $(HEAP_PROFILER_UNITTEST_INCLUDES) |
977 heap_profiler_unittest_CXXFLAGS = -g $(PTHREAD_CFLAGS) $(AM_CXXFLAGS) | 1017 heap_profiler_unittest_CXXFLAGS = -g $(PTHREAD_CFLAGS) $(AM_CXXFLAGS) |
978 heap_profiler_unittest_LDFLAGS = -g $(PTHREAD_CFLAGS) $(TCMALLOC_FLAGS) | 1018 heap_profiler_unittest_LDFLAGS = -g $(PTHREAD_CFLAGS) $(TCMALLOC_FLAGS) |
979 heap_profiler_unittest_LDADD = $(LIBTCMALLOC) $(PTHREAD_LIBS) | 1019 heap_profiler_unittest_LDADD = $(LIBTCMALLOC) $(PTHREAD_LIBS) |
980 | 1020 |
| 1021 # Tests the compatibility include-headers in google/. Requires a function |
| 1022 # defined in the heap-profiler, which is why the test lives here. |
| 1023 TESTS += simple_compat_test |
| 1024 simple_compat_test_SOURCES = src/tests/simple_compat_test.cc \ |
| 1025 $(googleinclude_HEADERS) |
| 1026 simple_compat_test_LDFLAGS = $(TCMALLOC_FLAGS) |
| 1027 simple_compat_test_LDADD = $(LIBTCMALLOC) |
| 1028 |
981 endif WITH_HEAP_PROFILER | 1029 endif WITH_HEAP_PROFILER |
982 | 1030 |
983 if WITH_HEAP_CHECKER | 1031 if WITH_HEAP_CHECKER |
984 | 1032 |
985 TESTS += heap-checker_unittest.sh$(EXEEXT) | 1033 TESTS += heap-checker_unittest.sh$(EXEEXT) |
986 heap_checker_unittest_sh_SOURCES = src/tests/heap-checker_unittest.sh | 1034 heap_checker_unittest_sh_SOURCES = src/tests/heap-checker_unittest.sh |
987 noinst_SCRIPTS += $(heap_checker_unittest_sh_SOURCES) | 1035 noinst_SCRIPTS += $(heap_checker_unittest_sh_SOURCES) |
988 heap-checker_unittest.sh$(EXEEXT): $(top_srcdir)/$(heap_checker_unittest_sh_SOUR
CES) \ | 1036 heap-checker_unittest.sh$(EXEEXT): $(top_srcdir)/$(heap_checker_unittest_sh_SOUR
CES) \ |
989 heap-checker_unittest | 1037 heap-checker_unittest |
990 rm -f $@ | 1038 rm -f $@ |
991 cp -p $(top_srcdir)/$(heap_checker_unittest_sh_SOURCES) $@ | 1039 cp -p $(top_srcdir)/$(heap_checker_unittest_sh_SOURCES) $@ |
992 | 1040 |
993 TESTS += heap-checker-death_unittest.sh$(EXEEXT) | 1041 TESTS += heap-checker-death_unittest.sh$(EXEEXT) |
994 heap_checker_death_unittest_sh_SOURCES = src/tests/heap-checker-death_unittest.s
h | 1042 heap_checker_death_unittest_sh_SOURCES = src/tests/heap-checker-death_unittest.s
h |
995 noinst_SCRIPTS += $(top_srcdir)/$(heap_checker_death_unittest_sh_SOURCES) | 1043 noinst_SCRIPTS += $(top_srcdir)/$(heap_checker_death_unittest_sh_SOURCES) |
996 heap-checker-death_unittest.sh$(EXEEXT): $(heap_checker_death_unittest_sh_SOURCE
S) \ | 1044 heap-checker-death_unittest.sh$(EXEEXT): $(heap_checker_death_unittest_sh_SOURCE
S) \ |
997 heap-checker_unittest | 1045 heap-checker_unittest |
998 rm -f $@ | 1046 rm -f $@ |
999 cp -p $(top_srcdir)/$(heap_checker_death_unittest_sh_SOURCES) $@ | 1047 cp -p $(top_srcdir)/$(heap_checker_death_unittest_sh_SOURCES) $@ |
1000 | 1048 |
1001 # These are sub-programs used by heap-checker_unittest.sh | 1049 # These are sub-programs used by heap-checker_unittest.sh |
1002 noinst_PROGRAMS += heap-checker_unittest | 1050 noinst_PROGRAMS += heap-checker_unittest |
1003 HEAP_CHECKER_UNITTEST_INCLUDES = src/config_for_unittests.h \ | 1051 HEAP_CHECKER_UNITTEST_INCLUDES = src/config_for_unittests.h \ |
1004 src/memory_region_map.h \ | 1052 src/memory_region_map.h \ |
1005 src/base/commandlineflags.h \ | 1053 src/base/commandlineflags.h \ |
1006 src/base/googleinit.h \ | 1054 src/base/googleinit.h \ |
1007 src/google/heap-checker.h \ | 1055 src/gperftools/heap-checker.h \ |
1008 $(LOGGING_INCLUDES) | 1056 $(LOGGING_INCLUDES) |
1009 heap_checker_unittest_SOURCES = src/tests/heap-checker_unittest.cc \ | 1057 heap_checker_unittest_SOURCES = src/tests/heap-checker_unittest.cc \ |
1010 $(HEAP_CHECKER_UNITTEST_INCLUDES) | 1058 $(HEAP_CHECKER_UNITTEST_INCLUDES) |
1011 heap_checker_unittest_CXXFLAGS = -g $(PTHREAD_CFLAGS) $(AM_CXXFLAGS) | 1059 heap_checker_unittest_CXXFLAGS = -g $(PTHREAD_CFLAGS) $(AM_CXXFLAGS) |
1012 heap_checker_unittest_LDFLAGS = -g $(PTHREAD_CFLAGS) $(TCMALLOC_FLAGS) | 1060 heap_checker_unittest_LDFLAGS = -g $(PTHREAD_CFLAGS) $(TCMALLOC_FLAGS) |
1013 # We want libtcmalloc last on the link line, but due to a bug in | 1061 # We want libtcmalloc last on the link line, but due to a bug in |
1014 # libtool involving convenience libs, they need to come last on the | 1062 # libtool involving convenience libs, they need to come last on the |
1015 # link line in order to get dependency ordering right. This is ok: | 1063 # link line in order to get dependency ordering right. This is ok: |
1016 # convenience libraries are .a's, so tcmalloc is still the last .so. | 1064 # convenience libraries are .a's, so tcmalloc is still the last .so. |
1017 # We also put pthreads after tcmalloc, because some pthread | 1065 # We also put pthreads after tcmalloc, because some pthread |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1131 src/profile-handler.h \ | 1179 src/profile-handler.h \ |
1132 src/getpc.h \ | 1180 src/getpc.h \ |
1133 src/base/basictypes.h \ | 1181 src/base/basictypes.h \ |
1134 src/base/commandlineflags.h \ | 1182 src/base/commandlineflags.h \ |
1135 src/base/googleinit.h \ | 1183 src/base/googleinit.h \ |
1136 src/base/logging.h \ | 1184 src/base/logging.h \ |
1137 src/base/simple_mutex.h \ | 1185 src/base/simple_mutex.h \ |
1138 src/base/sysinfo.h \ | 1186 src/base/sysinfo.h \ |
1139 $(SPINLOCK_INCLUDES) \ | 1187 $(SPINLOCK_INCLUDES) \ |
1140 $(LOGGING_INCLUDES) | 1188 $(LOGGING_INCLUDES) |
1141 SG_CPU_PROFILER_INCLUDES = src/google/profiler.h \ | 1189 SG_CPU_PROFILER_INCLUDES = src/gperftools/profiler.h \ |
1142 src/google/stacktrace.h | 1190 src/gperftools/stacktrace.h |
1143 CPU_PROFILER_INCLUDES = $(S_CPU_PROFILER_INCLUDES) $(SG_CPU_PROFILER_INCLUDES) | 1191 CPU_PROFILER_INCLUDES = $(S_CPU_PROFILER_INCLUDES) $(SG_CPU_PROFILER_INCLUDES) |
1144 googleinclude_HEADERS += $(SG_CPU_PROFILER_INCLUDES) | 1192 perftoolsinclude_HEADERS += $(SG_CPU_PROFILER_INCLUDES) |
1145 | 1193 |
1146 ### Making the library | 1194 ### Making the library |
1147 lib_LTLIBRARIES += libprofiler.la | 1195 lib_LTLIBRARIES += libprofiler.la |
1148 libprofiler_la_SOURCES = src/profiler.cc \ | 1196 libprofiler_la_SOURCES = src/profiler.cc \ |
1149 src/profile-handler.cc \ | 1197 src/profile-handler.cc \ |
1150 src/profiledata.cc \ | 1198 src/profiledata.cc \ |
1151 $(CPU_PROFILER_INCLUDES) | 1199 $(CPU_PROFILER_INCLUDES) |
1152 libprofiler_la_LIBADD = libstacktrace.la | 1200 libprofiler_la_LIBADD = libstacktrace.la |
1153 # We have to include ProfileData for profiledata_unittest | 1201 # We have to include ProfileData for profiledata_unittest |
1154 CPU_PROFILER_SYMBOLS = '(ProfilerStart|ProfilerStartWithOptions|ProfilerStop|Pro
filerFlush|ProfilerEnable|ProfilerDisable|ProfilingIsEnabledForAllThreads|Profil
erRegisterThread|ProfilerGetCurrentState|ProfilerState|ProfileData|ProfileHandle
r)' | 1202 CPU_PROFILER_SYMBOLS = '(ProfilerStart|ProfilerStartWithOptions|ProfilerStop|Pro
filerFlush|ProfilerEnable|ProfilerDisable|ProfilingIsEnabledForAllThreads|Profil
erRegisterThread|ProfilerGetCurrentState|ProfilerState|ProfileData|ProfileHandle
r)' |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1186 profiler_unittest.sh$(EXEEXT): $(top_srcdir)/$(profiler_unittest_sh_SOURCES) \ | 1234 profiler_unittest.sh$(EXEEXT): $(top_srcdir)/$(profiler_unittest_sh_SOURCES) \ |
1187 profiler1_unittest profiler2_unittest \ | 1235 profiler1_unittest profiler2_unittest \ |
1188 profiler3_unittest profiler4_unittest | 1236 profiler3_unittest profiler4_unittest |
1189 rm -f $@ | 1237 rm -f $@ |
1190 cp -p $(top_srcdir)/$(profiler_unittest_sh_SOURCES) $@ | 1238 cp -p $(top_srcdir)/$(profiler_unittest_sh_SOURCES) $@ |
1191 | 1239 |
1192 # These are sub-programs used by profiler_unittest.sh | 1240 # These are sub-programs used by profiler_unittest.sh |
1193 noinst_PROGRAMS += profiler1_unittest profiler2_unittest profiler3_unittest \ | 1241 noinst_PROGRAMS += profiler1_unittest profiler2_unittest profiler3_unittest \ |
1194 profiler4_unittest | 1242 profiler4_unittest |
1195 PROFILER_UNITTEST_INCLUDES = src/config_for_unittests.h \ | 1243 PROFILER_UNITTEST_INCLUDES = src/config_for_unittests.h \ |
1196 src/google/profiler.h | 1244 src/gperftools/profiler.h |
1197 PROFILER_UNITTEST_SRCS = src/tests/profiler_unittest.cc \ | 1245 PROFILER_UNITTEST_SRCS = src/tests/profiler_unittest.cc \ |
1198 src/tests/testutil.h src/tests/testutil.cc \ | 1246 src/tests/testutil.h src/tests/testutil.cc \ |
1199 $(PROFILER_UNITTEST_INCLUDES) | 1247 $(PROFILER_UNITTEST_INCLUDES) |
1200 profiler1_unittest_SOURCES = $(PROFILER_UNITTEST_SRCS) | 1248 profiler1_unittest_SOURCES = $(PROFILER_UNITTEST_SRCS) |
1201 profiler1_unittest_CXXFLAGS = -g -DNO_THREADS $(AM_CXXFLAGS) | 1249 profiler1_unittest_CXXFLAGS = -g -DNO_THREADS $(AM_CXXFLAGS) |
1202 profiler1_unittest_LDADD = $(LIBPROFILER) | 1250 profiler1_unittest_LDADD = $(LIBPROFILER) |
1203 profiler2_unittest_SOURCES = $(PROFILER_UNITTEST_SRCS) | 1251 profiler2_unittest_SOURCES = $(PROFILER_UNITTEST_SRCS) |
1204 profiler2_unittest_CXXFLAGS = -g -DNO_THREADS $(AM_CXXFLAGS) | 1252 profiler2_unittest_CXXFLAGS = -g -DNO_THREADS $(AM_CXXFLAGS) |
1205 profiler2_unittest_LDADD = -lstacktrace -lprofiler | 1253 profiler2_unittest_LDADD = -lstacktrace -lprofiler |
1206 # We depend on -lprofiler but haven't yet said how to build it. Do so now. | 1254 # We depend on -lprofiler but haven't yet said how to build it. Do so now. |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1326 $(SHELL) ./config.status --recheck | 1374 $(SHELL) ./config.status --recheck |
1327 | 1375 |
1328 # Windows wants write permission to .vcproj files and maybe even sln files. | 1376 # Windows wants write permission to .vcproj files and maybe even sln files. |
1329 dist-hook: | 1377 dist-hook: |
1330 test -e "$(distdir)/vsprojects" \ | 1378 test -e "$(distdir)/vsprojects" \ |
1331 && chmod -R u+w $(distdir)/*.sln $(distdir)/vsprojects/ | 1379 && chmod -R u+w $(distdir)/*.sln $(distdir)/vsprojects/ |
1332 | 1380 |
1333 EXTRA_DIST = packages/rpm.sh packages/rpm/rpm.spec packages/deb.sh packages/deb
\ | 1381 EXTRA_DIST = packages/rpm.sh packages/rpm/rpm.spec packages/deb.sh packages/deb
\ |
1334 $(SCRIPTS) libtool \ | 1382 $(SCRIPTS) libtool \ |
1335 src/windows/get_mangled_names.cc src/windows/override_functions.cc
\ | 1383 src/windows/get_mangled_names.cc src/windows/override_functions.cc
\ |
1336 src/windows/config.h src/windows/google/tcmalloc.h \ | 1384 src/windows/config.h src/windows/gperftools/tcmalloc.h \ |
1337 $(WINDOWS_PROJECTS) \ | 1385 $(WINDOWS_PROJECTS) \ |
1338 src/solaris/libstdc++.la | 1386 src/solaris/libstdc++.la |
OLD | NEW |