Makefile.am 60.7 KB
Newer Older
1 2
## Process this file with automake to produce Makefile.in

3
# Copyright (c) 2011, Google Inc.
4
# All rights reserved.
5
#
6 7 8
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
9
#
10 11 12 13 14 15 16 17 18
#     * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
#     * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
19
#
20 21 22 23 24 25 26 27 28 29 30
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 32


33 34
# This allows #includes to be relative to src/
AM_CPPFLAGS = -I$(top_srcdir)/src
35
AM_CFLAGS =
36 37
AM_CXXFLAGS =

38 39 40 41
if !DISABLE_PROCESSOR
AM_CPPFLAGS += $(JSONCPP_CFLAGS)
endif

42 43
if ANDROID_HOST
# This allows using fixed NDK headers when building for Android.
44 45 46 47
AM_CXXFLAGS += -I$(top_srcdir)/src/common/android/include
# This is only necessary for building the unit tests until GTest is upgraded
# to a future version.
AM_CXXFLAGS += -I$(top_srcdir)/src/common/android/testing/include
48
endif
49

50
AM_CXXFLAGS += $(WARN_CXXFLAGS)
51

52 53 54 55 56 57
if LINUX_HOST
# Build as PIC on Linux, for linux_client_unittest_shlib
AM_CFLAGS += -fPIC
AM_CXXFLAGS += -fPIC
endif

58 59 60 61 62
if WINDOWS_HOST
# don't have stab.h, don't build stabs support
AM_CPPFLAGS += -DNO_STABS_SUPPORT
endif

63 64 65
if MINGW_HOST
SOCKET_LIBS = -lws2_32
AM_CPPFLAGS += -D_POSIX_C_SOURCE
66
AM_CPPFLAGS += -D__USE_MINGW_ANSI_STDIO
67 68
endif

69 70
# Specify include paths for ac macros
ACLOCAL_AMFLAGS = -I m4
71

72 73 74
# License file is called LICENSE not COPYING
AUTOMAKE_OPTIONS = foreign

75 76
## Documentation
docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION)
77

78 79 80 81
dist_doc_DATA = \
	AUTHORS \
	ChangeLog \
	INSTALL \
82
	LICENSE \
83
	NEWS \
84
	README.md
85

86 87 88 89 90
## Headers
if LINUX_HOST
includeclhdir = $(includedir)/$(PACKAGE)/client/linux/handler
includeclh_HEADERS = $(top_srcdir)/src/client/linux/handler/*.h

91 92 93
includecldwcdir = $(includedir)/$(PACKAGE)/client/linux/dump_writer_common
includecldwc_HEADERS = $(top_srcdir)/src/client/linux/dump_writer_common/*.h

94 95 96 97 98 99 100 101 102 103 104 105 106
includeclmdir = $(includedir)/$(PACKAGE)/client/linux/minidump_writer
includeclm_HEADERS = $(top_srcdir)/src/client/linux/minidump_writer/*.h

includeclcdir = $(includedir)/$(PACKAGE)/client/linux/crash_generation
includeclc_HEADERS = $(top_srcdir)/src/client/linux/crash_generation/*.h

includelssdir = $(includedir)/$(PACKAGE)/third_party/lss
includelss_HEADERS = $(top_srcdir)/src/third_party/lss/*.h

includecldir = $(includedir)/$(PACKAGE)/common/linux
includecl_HEADERS = $(top_srcdir)/src/common/linux/*.h
endif

107 108 109 110 111 112 113 114 115 116 117 118 119 120
if WINDOWS_HOST
includecwdir = $(includedir)/$(PACKAGE)/common/windows
includecw_HEADERS = $(top_srcdir)/src/common/windows/*.h

includecwhdir = $(includedir)/$(PACKAGE)/client/windows/handler
includecwh_HEADERS = $(top_srcdir)/src/client/windows/handler/*.h

includecwcdir = $(includedir)/$(PACKAGE)/client/windows/common
includecwc_HEADERS = $(top_srcdir)/src/client/windows/common/*.h

includecwcgdir = $(includedir)/$(PACKAGE)/client/windows/crash_generation
includecwcg_HEADERS = $(top_srcdir)/src/client/windows/crash_generation/*.h
endif

121 122 123 124 125 126 127 128 129 130 131 132
includegbcdir = $(includedir)/$(PACKAGE)/google_breakpad/common
includegbc_HEADERS = $(top_srcdir)/src/google_breakpad/common/*.h

includecdir = $(includedir)/$(PACKAGE)/common
includec_HEADERS = $(top_srcdir)/src/common/*.h

includepdir = $(includedir)/$(PACKAGE)/processor
includep_HEADERS = $(top_srcdir)/src/processor/*.h

## pkgconfig files
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA =
133

134
## Common test logic
135 136 137
if SYSTEM_TEST_LIBS
TEST_CFLAGS = $(GTEST_CFLAGS) $(GMOCK_CFLAGS)
TEST_LIBS = $(GTEST_LIBS) -lgtest_main $(GMOCK_LIBS)
138
TEST_DEPS =
139
else
140 141
TEST_CFLAGS = \
	-I$(top_srcdir)/src/testing/include \
142 143 144 145
	-I$(top_srcdir)/src/testing/googletest/include \
	-I$(top_srcdir)/src/testing/googletest \
	-I$(top_srcdir)/src/testing/googlemock/include \
	-I$(top_srcdir)/src/testing/googlemock \
146
	-I$(top_srcdir)/src/testing
147
TEST_LIBS = src/testing/libtesting.a
148
TEST_DEPS = $(TEST_LIBS)
149
endif
150

151
## Libraries
152
check_LIBRARIES =
153 154
noinst_LIBRARIES =
lib_LIBRARIES =
155 156
bin_PROGRAMS =
check_PROGRAMS =
157 158
EXTRA_PROGRAMS =
CLEANFILES =
159

160 161
check_LIBRARIES += src/testing/libtesting.a

162
if !SYSTEM_TEST_LIBS
163
src_testing_libtesting_a_SOURCES = \
164
	src/breakpad_googletest_includes.h \
165 166 167
	src/testing/googletest/src/gtest-all.cc \
	src/testing/googletest/src/gtest_main.cc \
	src/testing/googlemock/src/gmock-all.cc
168 169
src_testing_libtesting_a_CPPFLAGS = \
	$(AM_CPPFLAGS) $(TEST_CFLAGS)
170
endif
171

172
if !DISABLE_PROCESSOR
173

174
lib_LIBRARIES += src/libbreakpad.a
175
pkgconfig_DATA += breakpad.pc
176
noinst_LIBRARIES += src/third_party/libdisasm/libdisasm.a
177
endif
178 179

if LINUX_HOST
180
lib_LIBRARIES += src/client/linux/libbreakpad_client.a
181
pkgconfig_DATA += breakpad-client.pc
182

183
src_client_linux_libbreakpad_client_a_SOURCES = \
184
	src/client/linux/crash_generation/crash_generation_client.cc \
185
	src/client/linux/crash_generation/crash_generation_server.cc \
186 187
	src/client/linux/dump_writer_common/thread_info.cc \
	src/client/linux/dump_writer_common/ucontext_reader.cc \
188
	src/client/linux/handler/exception_handler.cc \
189
	src/client/linux/handler/exception_handler.h \
190
	src/client/linux/handler/minidump_descriptor.cc \
191
	src/client/linux/handler/minidump_descriptor.h \
192
	src/client/linux/log/log.cc \
193
	src/client/linux/log/log.h \
194
	src/client/linux/microdump_writer/microdump_writer.cc \
195
	src/client/linux/microdump_writer/microdump_writer.h \
196
	src/client/linux/minidump_writer/linux_core_dumper.cc \
197
	src/client/linux/minidump_writer/linux_dumper.cc \
198
	src/client/linux/minidump_writer/linux_ptrace_dumper.cc \
199
	src/client/linux/minidump_writer/minidump_writer.cc \
200
	src/client/minidump_file_writer-inl.h \
201
	src/client/minidump_file_writer.cc \
202
	src/client/minidump_file_writer.h \
203
	src/common/convert_UTF.c \
204
	src/common/convert_UTF.h \
205
	src/common/md5.cc \
206
	src/common/md5.h \
207
	src/common/string_conversion.cc \
208
	src/common/string_conversion.h \
209
	src/common/linux/elf_core_dump.cc \
210
	src/common/linux/elfutils.cc \
211
	src/common/linux/elfutils.h \
212
	src/common/linux/file_id.cc \
213
	src/common/linux/file_id.h \
214
	src/common/linux/guid_creator.cc \
215
	src/common/linux/guid_creator.h \
216
	src/common/linux/linux_libc_support.cc \
217 218
	src/common/linux/memory_mapped_file.cc \
	src/common/linux/safe_readlink.cc
219 220 221 222
if ANDROID_HOST
src_client_linux_libbreakpad_client_a_SOURCES += \
	src/common/android/breakpad_getcontext.S
endif
223
endif LINUX_HOST
mmentovai's avatar
mmentovai committed
224

225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253
if WINDOWS_HOST
lib_LIBRARIES += src/client/windows/libbreakpad_client.a
pkgconfig_DATA += breakpad-client.pc

src_client_windows_libbreakpad_client_a_CPPFLAGS = \
	-DUNICODE -D_UNICODE -DNO_STABS_SUPPORT \
	-D_POSIX_C_SOURCE -D__USE_MINGW_ANSI_STDIO

src_client_windows_libbreakpad_client_a_SOURCES = \
	src/common/windows/guid_string.cc \
	src/common/windows/guid_string.h \
	src/common/windows/http_upload.cc \
	src/common/windows/http_upload.h \
	src/common/windows/string_utils.cc \
	src/client/windows/crash_generation/crash_generation_client.cc \
	src/client/windows/crash_generation/crash_generation_server.cc \
	src/client/windows/crash_generation/crash_generation_server.h \
	src/client/windows/sender/crash_report_sender.cc \
	src/client/windows/sender/crash_report_sender.h \
	src/client/windows/handler/exception_handler.cc \
	src/client/windows/handler/exception_handler.h \
	src/common/convert_UTF.c \
	src/common/convert_UTF.h \
	src/common/md5.cc \
	src/common/md5.h \
	src/common/string_conversion.cc \
	src/common/string_conversion.h
endif WINDOWS_HOST

254
if !DISABLE_PROCESSOR
255
src_libbreakpad_a_SOURCES = \
mmentovai's avatar
mmentovai committed
256 257
	src/google_breakpad/common/breakpad_types.h \
	src/google_breakpad/common/minidump_format.h \
258
	src/google_breakpad/common/minidump_size.h \
mmentovai's avatar
mmentovai committed
259 260 261 262
	src/google_breakpad/processor/basic_source_line_resolver.h \
	src/google_breakpad/processor/call_stack.h \
	src/google_breakpad/processor/code_module.h \
	src/google_breakpad/processor/code_modules.h \
263 264
	src/google_breakpad/processor/dump_context.h \
	src/google_breakpad/processor/dump_object.h \
265
	src/google_breakpad/processor/exploitability.h \
266
	src/google_breakpad/processor/fast_source_line_resolver.h \
mmentovai's avatar
mmentovai committed
267
	src/google_breakpad/processor/memory_region.h \
268 269
	src/google_breakpad/processor/microdump.h \
	src/google_breakpad/processor/microdump_processor.h \
mmentovai's avatar
mmentovai committed
270 271
	src/google_breakpad/processor/minidump.h \
	src/google_breakpad/processor/minidump_processor.h \
272
	src/google_breakpad/processor/process_result.h \
mmentovai's avatar
mmentovai committed
273
	src/google_breakpad/processor/process_state.h \
274
	src/google_breakpad/processor/proc_maps_linux.h \
275
	src/google_breakpad/processor/source_line_resolver_base.h \
276
	src/google_breakpad/processor/source_line_resolver_interface.h \
mmentovai's avatar
mmentovai committed
277 278
	src/google_breakpad/processor/stack_frame.h \
	src/google_breakpad/processor/stack_frame_cpu.h \
279
	src/google_breakpad/processor/stack_frame_symbolizer.h \
mmentovai's avatar
mmentovai committed
280 281 282
	src/google_breakpad/processor/stackwalker.h \
	src/google_breakpad/processor/symbol_supplier.h \
	src/google_breakpad/processor/system_info.h \
283
	src/processor/address_map-inl.h \
284
	src/processor/address_map.h \
285 286 287
	src/processor/basic_code_module.h \
	src/processor/basic_code_modules.cc \
	src/processor/basic_code_modules.h \
288
	src/processor/basic_source_line_resolver_types.h \
289
	src/processor/basic_source_line_resolver.cc \
290
	src/processor/call_stack.cc \
291 292
	src/processor/cfi_frame_info.cc \
	src/processor/cfi_frame_info.h \
293
	src/processor/contained_range_map-inl.h \
294
	src/processor/contained_range_map.h \
295 296
	src/processor/disassembler_x86.h \
	src/processor/disassembler_x86.cc \
297 298
	src/processor/dump_context.cc \
	src/processor/dump_object.cc \
299
	src/processor/exploitability.cc \
300 301
	src/processor/exploitability_linux.h \
	src/processor/exploitability_linux.cc \
302 303
	src/processor/exploitability_win.h \
	src/processor/exploitability_win.cc \
304 305
	src/processor/fast_source_line_resolver_types.h \
	src/processor/fast_source_line_resolver.cc \
306
	src/processor/linked_ptr.h \
307 308
	src/processor/logging.h \
	src/processor/logging.cc \
309 310
	src/processor/map_serializers-inl.h \
	src/processor/map_serializers.h \
311 312
	src/processor/microdump.cc \
	src/processor/microdump_processor.cc \
313
	src/processor/minidump.cc \
314
	src/processor/minidump_processor.cc \
315 316 317
	src/processor/module_comparer.cc \
	src/processor/module_comparer.h \
	src/processor/module_factory.h \
318 319
	src/processor/module_serializer.cc \
	src/processor/module_serializer.h \
320 321
	src/processor/pathname_stripper.cc \
	src/processor/pathname_stripper.h \
322
	src/processor/postfix_evaluator-inl.h \
323
	src/processor/postfix_evaluator.h \
324
	src/processor/process_state.cc \
325
	src/processor/proc_maps_linux.cc \
326
	src/processor/range_map-inl.h \
327
	src/processor/range_map.h \
328 329
	src/processor/simple_serializer-inl.h \
	src/processor/simple_serializer.h \
330 331
	src/processor/simple_symbol_supplier.cc \
	src/processor/simple_symbol_supplier.h \
332
	src/processor/windows_frame_info.h \
333 334
	src/processor/source_line_resolver_base_types.h \
	src/processor/source_line_resolver_base.cc \
335
	src/processor/stack_frame_cpu.cc \
336
	src/processor/stack_frame_symbolizer.cc \
337
	src/processor/stackwalker.cc \
338 339
	src/processor/stackwalker_amd64.cc \
	src/processor/stackwalker_amd64.h \
340 341
	src/processor/stackwalker_arm.cc \
	src/processor/stackwalker_arm.h \
342 343
	src/processor/stackwalker_arm64.cc \
	src/processor/stackwalker_arm64.h \
344 345
	src/processor/stackwalker_address_list.cc \
	src/processor/stackwalker_address_list.h \
346 347
	src/processor/stackwalker_mips.cc \
	src/processor/stackwalker_mips.h \
348 349
	src/processor/stackwalker_ppc.cc \
	src/processor/stackwalker_ppc.h \
350 351
	src/processor/stackwalker_ppc64.cc \
	src/processor/stackwalker_ppc64.h \
352 353
	src/processor/stackwalker_sparc.cc \
	src/processor/stackwalker_sparc.h \
354
	src/processor/stackwalker_x86.cc \
355
	src/processor/stackwalker_x86.h \
356 357 358 359
	src/processor/static_address_map-inl.h \
	src/processor/static_address_map.h \
	src/processor/static_contained_range_map-inl.h \
	src/processor/static_contained_range_map.h \
360 361
	src/processor/static_map_iterator-inl.h \
	src/processor/static_map_iterator.h \
362 363
	src/processor/static_map-inl.h \
	src/processor/static_map.h \
364 365
	src/processor/static_range_map-inl.h \
	src/processor/static_range_map.h \
366 367
	src/processor/symbolic_constants_win.cc \
	src/processor/symbolic_constants_win.h \
368
	src/processor/tokenize.cc \
369
	src/processor/tokenize.h
370

371
src_third_party_libdisasm_libdisasm_a_SOURCES = \
372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396
	src/third_party/libdisasm/ia32_implicit.c \
	src/third_party/libdisasm/ia32_implicit.h \
	src/third_party/libdisasm/ia32_insn.c \
	src/third_party/libdisasm/ia32_insn.h \
	src/third_party/libdisasm/ia32_invariant.c \
	src/third_party/libdisasm/ia32_invariant.h \
	src/third_party/libdisasm/ia32_modrm.c \
	src/third_party/libdisasm/ia32_modrm.h \
	src/third_party/libdisasm/ia32_opcode_tables.c \
	src/third_party/libdisasm/ia32_opcode_tables.h \
	src/third_party/libdisasm/ia32_operand.c \
	src/third_party/libdisasm/ia32_operand.h \
	src/third_party/libdisasm/ia32_reg.c \
	src/third_party/libdisasm/ia32_reg.h \
	src/third_party/libdisasm/ia32_settings.c \
	src/third_party/libdisasm/ia32_settings.h \
	src/third_party/libdisasm/libdis.h \
	src/third_party/libdisasm/qword.h \
	src/third_party/libdisasm/x86_disasm.c \
	src/third_party/libdisasm/x86_format.c \
	src/third_party/libdisasm/x86_imm.c \
	src/third_party/libdisasm/x86_imm.h \
	src/third_party/libdisasm/x86_insn.c \
	src/third_party/libdisasm/x86_misc.c \
	src/third_party/libdisasm/x86_operand_list.c \
397
	src/third_party/libdisasm/x86_operand_list.h
398

399
## Programs
400
bin_PROGRAMS += \
401
	src/processor/microdump_stackwalk \
402
	src/processor/minidump_dump \
403
	src/processor/minidump_stackwalk
404
endif !DISABLE_PROCESSOR
405

406
if LINUX_HOST
407 408 409 410 411 412
if !DISABLE_TOOLS
bin_PROGRAMS += \
	src/tools/linux/symupload/minidump_upload \
	src/tools/linux/symupload/sym_upload
endif

413 414 415
EXTRA_PROGRAMS += \
	src/client/linux/linux_dumper_unittest_helper
CLEANFILES += \
416
	src/client/linux/linux_dumper_unittest_helper
417 418 419

if !DISABLE_TOOLS
bin_PROGRAMS += \
420
	src/tools/linux/core2md/core2md \
421
	src/tools/linux/dump_syms/dump_syms \
422
	src/tools/linux/md2core/minidump-2-core
423 424
if X86_HOST
bin_PROGRAMS += \
425
	src/tools/mac/dump_syms/dump_syms_mac
426
endif
427
endif
428 429
endif LINUX_HOST

430 431
if !DISABLE_TOOLS
bin_PROGRAMS += \
432
	src/tools/windows/dump_syms_dwarf/dump_syms_win
433
endif
434

435
## Tests
436 437
if !DISABLE_PROCESSOR
check_PROGRAMS += \
438
	src/common/test_assembler_unittest \
439
	src/processor/address_map_unittest \
440
	src/processor/basic_source_line_resolver_unittest \
441
	src/processor/cfi_frame_info_unittest \
442
	src/processor/contained_range_map_unittest \
443 444
	src/processor/disassembler_x86_unittest \
	src/processor/exploitability_unittest \
445
	src/processor/fast_source_line_resolver_unittest \
446
	src/processor/map_serializers_unittest \
447
	src/processor/microdump_processor_unittest \
448
	src/processor/minidump_processor_unittest \
449
	src/processor/minidump_unittest \
450 451
	src/processor/static_address_map_unittest \
	src/processor/static_contained_range_map_unittest \
452
	src/processor/static_map_unittest \
453
	src/processor/static_range_map_unittest \
454
	src/processor/pathname_stripper_unittest \
455
	src/processor/postfix_evaluator_unittest \
456
	src/processor/proc_maps_linux_unittest \
457
	src/processor/range_map_shrink_down_unittest \
458
	src/processor/range_map_unittest \
459
	src/processor/stackwalker_amd64_unittest \
460
	src/processor/stackwalker_arm_unittest \
461
	src/processor/stackwalker_arm64_unittest \
462
	src/processor/stackwalker_address_list_unittest \
463
	src/processor/stackwalker_mips_unittest \
464
	src/processor/stackwalker_mips64_unittest \
465
	src/processor/stackwalker_x86_unittest \
466
	src/processor/synth_minidump_unittest
467
endif
468

469
if LINUX_HOST
470 471 472
EXTRA_PROGRAMS += \
	src/client/linux/linux_client_unittest_shlib
CLEANFILES += \
473 474
	src/client/linux/linux_client_unittest_shlib

475
check_PROGRAMS += \
476 477
	src/client/linux/linux_client_unittest \
	src/common/linux/google_crashdump_uploader_test
478 479 480

if !DISABLE_TOOLS
check_PROGRAMS += \
481 482
	src/common/dumper_unittest \
	src/tools/linux/md2core/minidump_2_core_unittest
483 484 485 486
if X86_HOST
check_PROGRAMS += \
	src/common/mac/macho_reader_unittest
endif
487
endif
488
endif LINUX_HOST
489

490
if !DISABLE_PROCESSOR
491 492 493 494
if SELFTEST
check_PROGRAMS += \
	src/processor/stackwalker_selftest
endif SELFTEST
495
endif !DISABLE_PROCESSOR
496

497
if !DISABLE_PROCESSOR
498
check_SCRIPTS = \
499 500
	src/processor/microdump_stackwalk_test \
	src/processor/microdump_stackwalk_machine_readable_test \
501
	src/processor/minidump_dump_test \
502 503
	src/processor/minidump_stackwalk_test \
	src/processor/minidump_stackwalk_machine_readable_test
504
endif
505

506
TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
507 508

if ANDROID_HOST
509 510 511 512 513
# Since Autotools 1.2, tests are run through a special "test driver" script.
# Unfortunately, it's not possible anymore to specify an alternative shell to
# run them on connected devices, so use a slightly modified version of the
# driver for Android.
LOG_DRIVER = $(top_srcdir)/android/test-driver
514
else
515 516
# The default Autotools test driver script.
LOG_DRIVER = $(top_srcdir)/autotools/test-driver
517
endif
518

519 520 521
src_tools_linux_symupload_minidump_upload_SOURCES = \
	src/common/linux/http_upload.cc \
	src/tools/linux/symupload/minidump_upload.cc
522 523
src_tools_linux_symupload_minidump_upload_LDADD = ${CURL_LIBS}
src_tools_linux_symupload_minidump_upload_CXXFLAGS = ${CURL_CFLAGS}
524 525 526 527 528 529 530

src_tools_linux_symupload_sym_upload_SOURCES = \
	src/common/linux/http_upload.cc \
	src/common/linux/http_upload.h \
	src/common/linux/symbol_upload.cc \
	src/common/linux/symbol_upload.h \
	src/tools/linux/symupload/sym_upload.cc
531 532
src_tools_linux_symupload_sym_upload_LDADD = ${CURL_LIBS}
src_tools_linux_symupload_sym_upload_CXXFLAGS = ${CURL_CFLAGS}
533

534
if LINUX_HOST
535 536 537 538
src_client_linux_linux_dumper_unittest_helper_SOURCES = \
	src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc
src_client_linux_linux_dumper_unittest_helper_LDFLAGS=$(PTHREAD_CFLAGS)
src_client_linux_linux_dumper_unittest_helper_CC=$(PTHREAD_CC)
539 540 541 542 543 544 545
if ANDROID_HOST
# On Android PTHREAD_CFLAGS is empty, and adding src/common/android/include
# to the include path is necessary to build this program.
src_client_linux_linux_dumper_unittest_helper_CXXFLAGS=$(AM_CXXFLAGS)
else
src_client_linux_linux_dumper_unittest_helper_CXXFLAGS=$(PTHREAD_CFLAGS)
endif
546

547
src_client_linux_linux_client_unittest_shlib_SOURCES = \
548
	$(src_testing_libtesting_a_SOURCES) \
549 550
	src/client/linux/handler/exception_handler_unittest.cc \
	src/client/linux/minidump_writer/directory_reader_unittest.cc \
551
	src/client/linux/minidump_writer/cpu_set_unittest.cc \
552
	src/client/linux/minidump_writer/line_reader_unittest.cc \
553
	src/client/linux/minidump_writer/linux_core_dumper.cc \
554 555
	src/client/linux/minidump_writer/linux_core_dumper_unittest.cc \
	src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc \
556
	src/client/linux/minidump_writer/minidump_writer_unittest.cc \
557
	src/client/linux/minidump_writer/minidump_writer_unittest_utils.cc \
558
	src/client/linux/minidump_writer/proc_cpuinfo_reader_unittest.cc \
559
	src/common/linux/elf_core_dump.cc \
560
	src/common/linux/linux_libc_support_unittest.cc \
561
	src/common/linux/tests/auto_testfile.h \
562
	src/common/linux/tests/crash_generator.cc \
563
	src/common/memory_allocator_unittest.cc \
564
	src/common/tests/auto_tempdir.h \
565
	src/common/tests/file_utils.cc \
566
	src/common/tests/file_utils.h \
567
	src/processor/basic_code_modules.cc \
568 569
	src/processor/dump_context.cc \
	src/processor/dump_object.cc \
570 571
	src/processor/logging.cc \
	src/processor/minidump.cc \
572 573
	src/processor/pathname_stripper.cc \
	src/processor/proc_maps_linux.cc
574
if ANDROID_HOST
575
src_client_linux_linux_client_unittest_shlib_SOURCES += \
576 577
	src/common/android/breakpad_getcontext.S
endif
578 579 580 581
if LINUX_HOST
src_client_linux_linux_client_unittest_shlib_SOURCES += \
	src/client/linux/microdump_writer/microdump_writer_unittest.cc
endif
582

583
src_client_linux_linux_client_unittest_shlib_CPPFLAGS = \
584
	$(AM_CPPFLAGS) $(TEST_CFLAGS)
585 586 587 588
src_client_linux_linux_client_unittest_shlib_LDFLAGS = \
	-shared \
	-Wl,-h,linux_client_unittest_shlib
src_client_linux_linux_client_unittest_shlib_LDADD = \
589 590 591
	src/client/linux/crash_generation/crash_generation_client.o \
	src/client/linux/dump_writer_common/thread_info.o \
	src/client/linux/dump_writer_common/ucontext_reader.o \
592
	src/client/linux/handler/exception_handler.o \
593
	src/client/linux/handler/minidump_descriptor.o \
594
	src/client/linux/log/log.o \
595
	src/client/linux/microdump_writer/microdump_writer.o \
596
	src/client/linux/minidump_writer/linux_dumper.o \
597
	src/client/linux/minidump_writer/linux_ptrace_dumper.o \
598 599 600 601
	src/client/linux/minidump_writer/minidump_writer.o \
	src/client/minidump_file_writer.o \
	src/common/convert_UTF.o \
	src/common/md5.o \
602
	src/common/linux/elfutils.o \
603 604
	src/common/linux/file_id.o \
	src/common/linux/guid_creator.o \
605
	src/common/linux/linux_libc_support.o \
606
	src/common/linux/memory_mapped_file.o \
607
	src/common/linux/safe_readlink.o \
608
	src/common/string_conversion.o \
609
	$(TEST_LIBS) \
610
	$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
611
if ANDROID_HOST
612
src_client_linux_linux_client_unittest_shlib_SOURCES += \
613
	src/common/android/breakpad_getcontext_unittest.cc
614
src_client_linux_linux_client_unittest_shlib_LDFLAGS += \
615
	-llog -lm
616
endif
617

618
src_client_linux_linux_client_unittest_shlib_DEPENDENCIES = \
619 620
	src/client/linux/linux_dumper_unittest_helper \
	src/client/linux/libbreakpad_client.a \
621
	$(TEST_DEPS) \
622
	src/libbreakpad.a
623

624
src_client_linux_linux_client_unittest_SOURCES =
625
# The extra-long build id is for a test in minidump_writer_unittest.cc.
626
src_client_linux_linux_client_unittest_LDFLAGS = \
627 628
	-Wl,-rpath,'$$ORIGIN' \
	-Wl,--build-id=0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
629 630 631 632
if ANDROID_HOST
src_client_linux_linux_client_unittest_LDFLAGS += \
        -llog
endif
633 634

src_client_linux_linux_client_unittest_LDADD = \
635 636
	src/client/linux/linux_client_unittest_shlib \
	$(TEST_LIBS)
637 638 639 640

src_client_linux_linux_client_unittest_DEPENDENCIES = \
	src/client/linux/linux_client_unittest_shlib

641
if !DISABLE_TOOLS
642
src_tools_linux_core2md_core2md_SOURCES = \
643
	src/tools/linux/core2md/core2md.cc
644

645 646 647
src_tools_linux_core2md_core2md_LDADD = \
	src/client/linux/libbreakpad_client.a

648 649 650 651 652 653
src_tools_linux_dump_syms_dump_syms_SOURCES = \
	src/common/dwarf_cfi_to_module.cc \
	src/common/dwarf_cu_to_module.cc \
	src/common/dwarf_line_to_module.cc \
	src/common/language.cc \
	src/common/module.cc \
654
	src/common/path_helper.cc \
655 656 657 658 659
	src/common/stabs_reader.cc \
	src/common/stabs_to_module.cc \
	src/common/dwarf/bytereader.cc \
	src/common/dwarf/dwarf2diehandler.cc \
	src/common/dwarf/dwarf2reader.cc \
660
	src/common/dwarf/elf_reader.cc \
661
	src/common/linux/crc32.cc \
662
	src/common/linux/dump_symbols.cc \
663
	src/common/linux/dump_symbols.h \
664
	src/common/linux/elf_symbols_to_module.cc \
665
	src/common/linux/elf_symbols_to_module.h \
666
	src/common/linux/elfutils.cc \
667
	src/common/linux/file_id.cc \
668
	src/common/linux/linux_libc_support.cc \
669
	src/common/linux/memory_mapped_file.cc \
670
	src/common/linux/safe_readlink.cc \
671
	src/tools/linux/dump_syms/dump_syms.cc
672 673 674 675
src_tools_linux_dump_syms_dump_syms_CXXFLAGS = \
	$(RUST_DEMANGLE_CFLAGS)
src_tools_linux_dump_syms_dump_syms_LDADD = \
	$(RUST_DEMANGLE_LIBS)
676 677

src_tools_linux_md2core_minidump_2_core_SOURCES = \
678
	src/common/linux/memory_mapped_file.cc \
679
	src/common/path_helper.cc \
680 681
	src/tools/linux/md2core/minidump-2-core.cc \
	src/tools/linux/md2core/minidump_memory_range.h
682

683
src_tools_mac_dump_syms_dump_syms_mac_SOURCES = \
684 685 686 687 688 689
	src/common/dwarf_cfi_to_module.cc \
	src/common/dwarf_cu_to_module.cc \
	src/common/dwarf_line_to_module.cc \
	src/common/language.cc \
	src/common/md5.cc \
	src/common/module.cc \
690
	src/common/path_helper.cc \
691 692 693 694 695
	src/common/stabs_reader.cc \
	src/common/stabs_to_module.cc \
	src/common/dwarf/bytereader.cc \
	src/common/dwarf/dwarf2diehandler.cc \
	src/common/dwarf/dwarf2reader.cc \
696
	src/common/dwarf/elf_reader.cc \
697 698
	src/common/mac/arch_utilities.cc \
	src/common/mac/dump_syms.cc \
699
	src/common/mac/dump_syms.h \
700
	src/common/mac/file_id.cc \
701
	src/common/mac/file_id.h \
702
	src/common/mac/macho_id.cc \
703
	src/common/mac/macho_id.h \
704
	src/common/mac/macho_reader.cc \
705
	src/common/mac/macho_reader.h \
706
	src/common/mac/macho_utilities.cc \
707
	src/common/mac/macho_utilities.h \
708
	src/common/mac/macho_walker.cc \
709
	src/common/mac/macho_walker.h \
710
	src/tools/mac/dump_syms/dump_syms_tool.cc
711
src_tools_mac_dump_syms_dump_syms_mac_CXXFLAGS= \
712
	-I$(top_srcdir)/src/third_party/mac_headers \
713
	$(RUST_DEMANGLE_CFLAGS) \
714
	-DHAVE_MACH_O_NLIST_H
715 716
src_tools_mac_dump_syms_dump_syms_mac_LDADD= \
	$(RUST_DEMANGLE_LIBS)
717

718 719 720 721 722 723 724 725 726
src_common_dumper_unittest_SOURCES = \
	src/common/byte_cursor_unittest.cc \
	src/common/dwarf_cfi_to_module.cc \
	src/common/dwarf_cfi_to_module_unittest.cc \
	src/common/dwarf_cu_to_module.cc \
	src/common/dwarf_cu_to_module_unittest.cc \
	src/common/dwarf_line_to_module.cc \
	src/common/dwarf_line_to_module_unittest.cc \
	src/common/language.cc \
727
	src/common/memory_range_unittest.cc \
728 729
	src/common/module.cc \
	src/common/module_unittest.cc \
730
	src/common/path_helper.cc \
731 732 733 734 735 736
	src/common/stabs_reader.cc \
	src/common/stabs_reader_unittest.cc \
	src/common/stabs_to_module.cc \
	src/common/stabs_to_module_unittest.cc \
	src/common/test_assembler.cc \
	src/common/dwarf/bytereader.cc \
737 738
	src/common/dwarf/bytereader.h \
	src/common/dwarf/bytereader-inl.h \
739 740
	src/common/dwarf/bytereader_unittest.cc \
	src/common/dwarf/cfi_assembler.cc \
741
	src/common/dwarf/cfi_assembler.h \
742 743 744
	src/common/dwarf/dwarf2diehandler.cc \
	src/common/dwarf/dwarf2diehandler_unittest.cc \
	src/common/dwarf/dwarf2reader.cc \
745
	src/common/dwarf/dwarf2reader.h \
746
	src/common/dwarf/elf_reader.cc \
747
	src/common/dwarf/elf_reader.h \
748
	src/common/dwarf/dwarf2reader_cfi_unittest.cc \
749
	src/common/dwarf/dwarf2reader_die_unittest.cc \
750
	src/common/dwarf/dwarf2reader_test_common.h \
751
	src/common/linux/crc32.cc \
752
	src/common/linux/dump_symbols.cc \
753
	src/common/linux/dump_symbols_unittest.cc \
754 755
	src/common/linux/elf_core_dump.cc \
	src/common/linux/elf_core_dump_unittest.cc \
756 757
	src/common/linux/elf_symbols_to_module.cc \
	src/common/linux/elf_symbols_to_module_unittest.cc \
758
	src/common/linux/elfutils.cc \
759 760
	src/common/linux/file_id.cc \
	src/common/linux/file_id_unittest.cc \
761 762 763
	src/common/linux/linux_libc_support.cc \
	src/common/linux/memory_mapped_file.cc \
	src/common/linux/memory_mapped_file_unittest.cc \
764 765
	src/common/linux/safe_readlink.cc \
	src/common/linux/safe_readlink_unittest.cc \
766 767
	src/common/linux/synth_elf.cc \
	src/common/linux/synth_elf_unittest.cc \
768
	src/common/linux/tests/crash_generator.cc \
769 770
	src/common/linux/tests/crash_generator.h \
	src/common/testdata/func-line-pairing.h \
771
	src/common/tests/file_utils.cc
772
src_common_dumper_unittest_CPPFLAGS = \
773
	$(AM_CPPFLAGS) $(TEST_CFLAGS) \
774
	$(RUST_DEMANGLE_CFLAGS) \
775
	$(PTHREAD_CFLAGS)
776 777
src_common_dumper_unittest_LDADD = \
	$(TEST_LIBS) \
778
	$(RUST_DEMANGLE_LIBS) \
779
	$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
780 781 782 783 784 785 786 787

src_common_mac_macho_reader_unittest_SOURCES = \
	src/common/dwarf_cfi_to_module.cc \
	src/common/dwarf_cu_to_module.cc \
	src/common/dwarf_line_to_module.cc \
	src/common/language.cc \
	src/common/md5.cc \
	src/common/module.cc \
788
	src/common/path_helper.cc \
789 790 791 792 793 794 795
	src/common/stabs_reader.cc \
	src/common/stabs_to_module.cc \
	src/common/test_assembler.cc \
	src/common/dwarf/bytereader.cc \
	src/common/dwarf/cfi_assembler.cc \
	src/common/dwarf/dwarf2diehandler.cc \
	src/common/dwarf/dwarf2reader.cc \
796
	src/common/dwarf/elf_reader.cc \
797 798 799 800 801 802 803
	src/common/mac/arch_utilities.cc \
	src/common/mac/file_id.cc \
	src/common/mac/macho_id.cc \
	src/common/mac/macho_reader.cc \
	src/common/mac/macho_reader_unittest.cc \
	src/common/mac/macho_utilities.cc \
	src/common/mac/macho_walker.cc \
804
	src/common/tests/file_utils.cc
805
src_common_mac_macho_reader_unittest_CPPFLAGS = \
806
	$(AM_CPPFLAGS) $(TEST_CFLAGS) \
807 808 809
	-I$(top_srcdir)/src/third_party/mac_headers \
	-DHAVE_MACH_O_NLIST_H \
	$(PTHREAD_CFLAGS)
810 811 812
src_common_mac_macho_reader_unittest_LDADD = \
	$(TEST_LIBS) \
	$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
813
endif
814

815 816 817 818 819 820 821 822 823 824 825
src_common_linux_google_crashdump_uploader_test_SOURCES = \
	src/common/linux/google_crashdump_uploader.cc \
	src/common/linux/google_crashdump_uploader_test.cc \
	src/common/linux/libcurl_wrapper.cc
src_common_linux_google_crashdump_uploader_test_CPPFLAGS = \
	$(AM_CPPFLAGS) $(TEST_CFLAGS)
src_common_linux_google_crashdump_uploader_test_LDADD = \
	$(TEST_LIBS) \
	$(PTHREAD_CFLAGS) $(PTHREAD_LIBS) \
	-ldl

826 827 828
src_tools_linux_md2core_minidump_2_core_unittest_SOURCES = \
	src/tools/linux/md2core/minidump_memory_range_unittest.cc
src_tools_linux_md2core_minidump_2_core_unittest_CPPFLAGS = \
829
	$(AM_CPPFLAGS) $(TEST_CFLAGS)
830
src_tools_linux_md2core_minidump_2_core_unittest_LDADD = \
831
	$(TEST_LIBS) \
832
	$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
833

834
endif LINUX_HOST
835

836
if !DISABLE_TOOLS
837
src_tools_windows_dump_syms_dwarf_dump_syms_win_SOURCES = \
838 839 840 841 842 843 844 845 846 847 848 849
	src/common/dwarf_cfi_to_module.cc \
	src/common/dwarf_cu_to_module.cc \
	src/common/dwarf_line_to_module.cc \
	src/common/language.cc \
	src/common/module.cc \
	src/common/dwarf/bytereader.cc \
	src/common/dwarf/dwarf2diehandler.cc \
	src/common/dwarf/dwarf2reader.cc \
	src/common/pecoff/dump_symbols.cc \
	src/common/pecoff/pecoffutils.cc \
	src/common/pecoff/pecoff_file_id.cc \
	src/tools/windows/dump_syms_dwarf/dump_syms.cc
850
src_tools_windows_dump_syms_dwarf_dump_syms_win_LDADD = \
851
	$(SOCKET_LIBS)
852 853
endif

854
if !DISABLE_PROCESSOR
855 856
src_processor_address_map_unittest_SOURCES = \
	src/processor/address_map_unittest.cc
857
src_processor_address_map_unittest_LDADD = \
858 859
	src/processor/logging.o \
	src/processor/pathname_stripper.o
860

861
src_processor_basic_source_line_resolver_unittest_SOURCES = \
862
	src/processor/basic_source_line_resolver_unittest.cc
863
src_processor_basic_source_line_resolver_unittest_CPPFLAGS = \
864
	$(AM_CPPFLAGS) $(TEST_CFLAGS)
865
src_processor_basic_source_line_resolver_unittest_LDADD = \
866 867 868 869
	src/processor/basic_source_line_resolver.o \
	src/processor/cfi_frame_info.o \
	src/processor/pathname_stripper.o \
	src/processor/logging.o \
870
	src/processor/source_line_resolver_base.o \
871
	src/processor/tokenize.o \
872
	$(TEST_LIBS) \
873
	$(PTHREAD_CFLAGS) $(PTHREAD_LIBS) @LIBOBJS@
874

875
src_processor_cfi_frame_info_unittest_SOURCES = \
876
	src/processor/cfi_frame_info_unittest.cc
877
src_processor_cfi_frame_info_unittest_LDADD = \
878 879
	src/processor/cfi_frame_info.o \
	src/processor/logging.o \
880
	src/processor/pathname_stripper.o \
881
	$(TEST_LIBS) \
882
	$(PTHREAD_CFLAGS) $(PTHREAD_LIBS) @LIBOBJS@
883
src_processor_cfi_frame_info_unittest_CPPFLAGS = \
884
	$(AM_CPPFLAGS) $(TEST_CFLAGS)
885

886 887
src_processor_contained_range_map_unittest_SOURCES = \
	src/processor/contained_range_map_unittest.cc
888
src_processor_contained_range_map_unittest_LDADD = \
889 890
	src/processor/logging.o \
	src/processor/pathname_stripper.o
891

892
src_processor_exploitability_unittest_SOURCES = \
893
	src/processor/exploitability_unittest.cc
894
src_processor_exploitability_unittest_CPPFLAGS = \
895
	$(AM_CPPFLAGS) $(TEST_CFLAGS)
896
src_processor_exploitability_unittest_LDADD = \
897 898 899 900
	src/processor/minidump_processor.o \
	src/processor/process_state.o \
	src/processor/disassembler_x86.o \
	src/processor/exploitability.o \
901
	src/processor/exploitability_linux.o \
902 903 904 905 906
	src/processor/exploitability_win.o \
	src/processor/basic_code_modules.o \
	src/processor/basic_source_line_resolver.o \
	src/processor/call_stack.o \
	src/processor/cfi_frame_info.o \
907 908
	src/processor/dump_context.o \
	src/processor/dump_object.o \
909 910 911
	src/processor/logging.o \
	src/processor/minidump.o \
	src/processor/pathname_stripper.o \
912
	src/processor/proc_maps_linux.o \
913
	src/processor/simple_symbol_supplier.o \
914
	src/processor/source_line_resolver_base.o \
915
	src/processor/stack_frame_cpu.o \
916
	src/processor/stack_frame_symbolizer.o \
917
	src/processor/stackwalker.o \
918
	src/processor/stackwalker_address_list.o \
919 920
	src/processor/stackwalker_amd64.o \
	src/processor/stackwalker_arm.o \
921
	src/processor/stackwalker_arm64.o \
922
	src/processor/stackwalker_mips.o \
923
	src/processor/stackwalker_ppc.o \
924
	src/processor/stackwalker_ppc64.o \
925 926
	src/processor/stackwalker_sparc.o \
	src/processor/stackwalker_x86.o \
927
	src/processor/symbolic_constants_win.o \
928
	src/processor/tokenize.o \
929
	src/third_party/libdisasm/libdisasm.a \
930
	$(TEST_LIBS) \
931
	$(PTHREAD_CFLAGS) $(PTHREAD_LIBS) @LIBOBJS@
932 933

src_processor_disassembler_x86_unittest_SOURCES = \
934
	src/processor/disassembler_x86_unittest.cc
935
src_processor_disassembler_x86_unittest_CPPFLAGS = \
936
	$(AM_CPPFLAGS) $(TEST_CFLAGS)
937
src_processor_disassembler_x86_unittest_LDADD = \
938
	src/processor/disassembler_x86.o \
939
	src/third_party/libdisasm/libdisasm.a \
940
	$(TEST_LIBS) \
941
	$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
942

943
src_processor_fast_source_line_resolver_unittest_SOURCES = \
944
	src/processor/fast_source_line_resolver_unittest.cc
945
src_processor_fast_source_line_resolver_unittest_CPPFLAGS = \
946
	$(AM_CPPFLAGS) $(TEST_CFLAGS)
947
src_processor_fast_source_line_resolver_unittest_LDADD = \
948 949 950 951 952 953 954 955
	src/processor/fast_source_line_resolver.o \
	src/processor/basic_source_line_resolver.o \
	src/processor/cfi_frame_info.o \
	src/processor/module_comparer.o \
	src/processor/module_serializer.o \
	src/processor/pathname_stripper.o \
	src/processor/logging.o \
	src/processor/source_line_resolver_base.o \
956
	src/processor/tokenize.o \
957
	$(TEST_LIBS) \
958
	$(PTHREAD_CFLAGS) $(PTHREAD_LIBS) @LIBOBJS@
959

960
src_processor_map_serializers_unittest_SOURCES = \
961
	src/processor/map_serializers_unittest.cc
962
src_processor_map_serializers_unittest_CPPFLAGS = \
963
	$(AM_CPPFLAGS) $(TEST_CFLAGS)
964 965
src_processor_map_serializers_unittest_LDADD = \
	src/processor/logging.o \
966
	src/processor/pathname_stripper.o \
967
	$(TEST_LIBS) \
968
	$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
969

970
src_processor_microdump_processor_unittest_SOURCES = \
971
	src/processor/microdump_processor_unittest.cc
972
src_processor_microdump_processor_unittest_CPPFLAGS = \
973
	$(AM_CPPFLAGS) $(TEST_CFLAGS)
974
src_processor_microdump_processor_unittest_LDADD = \
975 976 977 978 979 980 981 982 983 984 985 986 987 988 989
	src/processor/basic_code_modules.o \
	src/processor/basic_source_line_resolver.o \
	src/processor/call_stack.o \
	src/processor/cfi_frame_info.o \
	src/processor/dump_context.o \
	src/processor/dump_object.o \
	src/processor/logging.o \
	src/processor/microdump.o \
	src/processor/microdump_processor.o \
	src/processor/pathname_stripper.o \
	src/processor/process_state.o \
	src/processor/simple_symbol_supplier.o \
	src/processor/source_line_resolver_base.o \
	src/processor/stack_frame_symbolizer.o \
	src/processor/stackwalker.o \
990
	src/processor/stackwalker_address_list.o \
991 992 993 994 995 996 997 998 999
	src/processor/stackwalker_amd64.o \
	src/processor/stackwalker_arm.o \
	src/processor/stackwalker_arm64.o \
	src/processor/stackwalker_mips.o \
	src/processor/stackwalker_ppc.o \
	src/processor/stackwalker_ppc64.o \
	src/processor/stackwalker_sparc.o \
	src/processor/stackwalker_x86.o \
	src/processor/tokenize.o \
1000
	$(TEST_LIBS) \
1001
	$(PTHREAD_CFLAGS) $(PTHREAD_LIBS) @LIBOBJS@
1002

1003
src_processor_minidump_processor_unittest_SOURCES = \
1004
	src/processor/minidump_processor_unittest.cc
1005
src_processor_minidump_processor_unittest_CPPFLAGS = \
1006
	$(AM_CPPFLAGS) $(TEST_CFLAGS)
1007
src_processor_minidump_processor_unittest_LDADD = \
1008 1009 1010 1011 1012
	src/processor/basic_code_modules.o \
	src/processor/basic_source_line_resolver.o \
	src/processor/call_stack.o \
	src/processor/cfi_frame_info.o \
	src/processor/disassembler_x86.o \
1013 1014
	src/processor/dump_context.o \
	src/processor/dump_object.o \
1015
	src/processor/exploitability.o \
1016
	src/processor/exploitability_linux.o \
1017 1018 1019 1020 1021 1022
	src/processor/exploitability_win.o \
	src/processor/logging.o \
	src/processor/minidump_processor.o \
	src/processor/minidump.o \
	src/processor/pathname_stripper.o \
	src/processor/process_state.o \
1023
	src/processor/proc_maps_linux.o \
1024
	src/processor/source_line_resolver_base.o \
1025
	src/processor/stack_frame_cpu.o \
1026
	src/processor/stack_frame_symbolizer.o \
1027
	src/processor/stackwalker.o \
1028
	src/processor/stackwalker_address_list.o \
1029 1030
	src/processor/stackwalker_amd64.o \
	src/processor/stackwalker_arm.o \
1031
	src/processor/stackwalker_arm64.o \
1032
	src/processor/stackwalker_mips.o \
1033
	src/processor/stackwalker_ppc.o \
1034
	src/processor/stackwalker_ppc64.o \
1035 1036
	src/processor/stackwalker_sparc.o \
	src/processor/stackwalker_x86.o \
1037
	src/processor/symbolic_constants_win.o \
1038
	src/processor/tokenize.o \
1039
	src/third_party/libdisasm/libdisasm.a \
1040
	$(TEST_LIBS) \
1041
	$(PTHREAD_CFLAGS) $(PTHREAD_LIBS) @LIBOBJS@
1042

1043
src_processor_minidump_unittest_SOURCES = \
1044
	src/common/test_assembler.cc \
1045
	src/processor/minidump_unittest.cc \
1046
	src/processor/synth_minidump.cc
1047
src_processor_minidump_unittest_CPPFLAGS = \
1048
	$(AM_CPPFLAGS) $(TEST_CFLAGS)
1049
src_processor_minidump_unittest_LDADD = \
1050
	src/processor/basic_code_modules.o \
1051 1052
	src/processor/dump_context.o \
	src/processor/dump_object.o \
1053 1054
	src/processor/logging.o \
	src/processor/minidump.o \