The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 2 | |
Ben Cheng | bdcff7d | 2009-12-17 12:50:58 -0800 | [diff] [blame] | 3 | include $(CLEAR_VARS) |
Colin Cross | e951f60 | 2010-03-08 19:21:07 -0800 | [diff] [blame] | 4 | |
Colin Cross | 87a6b1d | 2014-03-21 16:58:30 -0700 | [diff] [blame] | 5 | LOCAL_SRC_FILES:= \ |
Elliott Hughes | 8c59768 | 2014-06-03 15:12:07 -0700 | [diff] [blame] | 6 | backtrace.cpp \ |
| 7 | debuggerd.cpp \ |
Christopher Ferris | a21bd93 | 2015-02-27 13:39:47 -0800 | [diff] [blame] | 8 | elf_utils.cpp \ |
Elliott Hughes | 8c59768 | 2014-06-03 15:12:07 -0700 | [diff] [blame] | 9 | getevent.cpp \ |
| 10 | tombstone.cpp \ |
| 11 | utility.cpp \ |
Colin Cross | 87a6b1d | 2014-03-21 16:58:30 -0700 | [diff] [blame] | 12 | |
| 13 | LOCAL_SRC_FILES_arm := arm/machine.cpp |
| 14 | LOCAL_SRC_FILES_arm64 := arm64/machine.cpp |
| 15 | LOCAL_SRC_FILES_mips := mips/machine.cpp |
Douglas Leung | 2ea9a32 | 2015-03-09 18:41:32 -0700 | [diff] [blame] | 16 | LOCAL_SRC_FILES_mips64 := mips64/machine.cpp |
Colin Cross | 87a6b1d | 2014-03-21 16:58:30 -0700 | [diff] [blame] | 17 | LOCAL_SRC_FILES_x86 := x86/machine.cpp |
| 18 | LOCAL_SRC_FILES_x86_64 := x86_64/machine.cpp |
| 19 | |
Elliott Hughes | 8c59768 | 2014-06-03 15:12:07 -0700 | [diff] [blame] | 20 | LOCAL_CPPFLAGS := \ |
| 21 | -std=gnu++11 \ |
| 22 | -W -Wall -Wextra \ |
| 23 | -Wunused \ |
| 24 | -Werror \ |
Colin Cross | 87a6b1d | 2014-03-21 16:58:30 -0700 | [diff] [blame] | 25 | |
Christopher Ferris | 9774df6 | 2015-01-15 14:47:36 -0800 | [diff] [blame] | 26 | ifeq ($(TARGET_IS_64_BIT),true) |
| 27 | LOCAL_CPPFLAGS += -DTARGET_IS_64_BIT |
| 28 | endif |
| 29 | |
Colin Cross | 87a6b1d | 2014-03-21 16:58:30 -0700 | [diff] [blame] | 30 | LOCAL_SHARED_LIBRARIES := \ |
Elliott Hughes | 8c59768 | 2014-06-03 15:12:07 -0700 | [diff] [blame] | 31 | libbacktrace \ |
Christopher Ferris | a21bd93 | 2015-02-27 13:39:47 -0800 | [diff] [blame] | 32 | libbase \ |
Elliott Hughes | 8c59768 | 2014-06-03 15:12:07 -0700 | [diff] [blame] | 33 | libcutils \ |
| 34 | liblog \ |
| 35 | libselinux \ |
Colin Cross | 87a6b1d | 2014-03-21 16:58:30 -0700 | [diff] [blame] | 36 | |
Elliott Hughes | c184d56 | 2014-12-18 15:47:09 -0800 | [diff] [blame] | 37 | LOCAL_CLANG := true |
| 38 | |
Colin Cross | 87a6b1d | 2014-03-21 16:58:30 -0700 | [diff] [blame] | 39 | LOCAL_MODULE := debuggerd |
| 40 | LOCAL_MODULE_STEM_32 := debuggerd |
| 41 | LOCAL_MODULE_STEM_64 := debuggerd64 |
| 42 | LOCAL_MULTILIB := both |
| 43 | |
| 44 | include $(BUILD_EXECUTABLE) |
| 45 | |
Elliott Hughes | cb7aae1 | 2014-07-09 16:41:04 -0700 | [diff] [blame] | 46 | |
| 47 | |
Colin Cross | 87a6b1d | 2014-03-21 16:58:30 -0700 | [diff] [blame] | 48 | include $(CLEAR_VARS) |
| 49 | LOCAL_SRC_FILES := crasher.c |
| 50 | LOCAL_SRC_FILES_arm := arm/crashglue.S |
| 51 | LOCAL_SRC_FILES_arm64 := arm64/crashglue.S |
| 52 | LOCAL_SRC_FILES_mips := mips/crashglue.S |
Douglas Leung | 2ea9a32 | 2015-03-09 18:41:32 -0700 | [diff] [blame] | 53 | LOCAL_SRC_FILES_mips64 := mips64/crashglue.S |
Colin Cross | 87a6b1d | 2014-03-21 16:58:30 -0700 | [diff] [blame] | 54 | LOCAL_SRC_FILES_x86 := x86/crashglue.S |
| 55 | LOCAL_SRC_FILES_x86_64 := x86_64/crashglue.S |
| 56 | LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) |
| 57 | LOCAL_MODULE_TAGS := optional |
Mark Salyzyn | f1a8dfa | 2014-04-30 09:24:08 -0700 | [diff] [blame] | 58 | LOCAL_CFLAGS += -fstack-protector-all -Werror -Wno-free-nonheap-object |
Colin Cross | 87a6b1d | 2014-03-21 16:58:30 -0700 | [diff] [blame] | 59 | #LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 60 | LOCAL_SHARED_LIBRARIES := libcutils liblog libc |
| 61 | |
Elliott Hughes | cb7aae1 | 2014-07-09 16:41:04 -0700 | [diff] [blame] | 62 | # The arm emulator has VFP but not VFPv3-D32. |
| 63 | ifeq ($(ARCH_ARM_HAVE_VFP_D32),true) |
| 64 | LOCAL_ASFLAGS_arm += -DHAS_VFP_D32 |
| 65 | endif |
| 66 | |
Colin Cross | 87a6b1d | 2014-03-21 16:58:30 -0700 | [diff] [blame] | 67 | LOCAL_MODULE := crasher |
| 68 | LOCAL_MODULE_STEM_32 := crasher |
| 69 | LOCAL_MODULE_STEM_64 := crasher64 |
| 70 | LOCAL_MULTILIB := both |
| 71 | |
| 72 | include $(BUILD_EXECUTABLE) |