Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(430)

Side by Side Diff: third_party/tcmalloc/vendor/Makefile.am

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

Powered by Google App Engine
This is Rietveld 408576698