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:= \ |
| 6 | backtrace.cpp \ |
| 7 | debuggerd.cpp \ |
| 8 | getevent.cpp \ |
| 9 | tombstone.cpp \ |
| 10 | utility.cpp \ |
| 11 | |
| 12 | LOCAL_SRC_FILES_arm := arm/machine.cpp |
| 13 | LOCAL_SRC_FILES_arm64 := arm64/machine.cpp |
| 14 | LOCAL_SRC_FILES_mips := mips/machine.cpp |
| 15 | LOCAL_SRC_FILES_x86 := x86/machine.cpp |
| 16 | LOCAL_SRC_FILES_x86_64 := x86_64/machine.cpp |
| 17 | |
| 18 | LOCAL_CONLYFLAGS := -std=gnu99 |
| 19 | LOCAL_CPPFLAGS := -std=gnu++11 |
| 20 | LOCAL_CFLAGS := \ |
| 21 | -Wall \ |
| 22 | -Wno-array-bounds \ |
| 23 | -Werror \ |
| 24 | -Wno-unused-parameter \ |
| 25 | |
| 26 | ifeq ($(ARCH_ARM_HAVE_VFP),true) |
| 27 | LOCAL_CFLAGS_arm += -DWITH_VFP |
| 28 | endif # ARCH_ARM_HAVE_VFP |
Colin Cross | e951f60 | 2010-03-08 19:21:07 -0800 | [diff] [blame] | 29 | ifeq ($(ARCH_ARM_HAVE_VFP_D32),true) |
Colin Cross | 87a6b1d | 2014-03-21 16:58:30 -0700 | [diff] [blame] | 30 | LOCAL_CFLAGS_arm += -DWITH_VFP_D32 |
Colin Cross | e951f60 | 2010-03-08 19:21:07 -0800 | [diff] [blame] | 31 | endif # ARCH_ARM_HAVE_VFP_D32 |
| 32 | |
Colin Cross | 87a6b1d | 2014-03-21 16:58:30 -0700 | [diff] [blame] | 33 | LOCAL_SHARED_LIBRARIES := \ |
| 34 | libbacktrace \ |
| 35 | libc \ |
| 36 | libcutils \ |
| 37 | liblog \ |
| 38 | libselinux \ |
| 39 | |
| 40 | include external/stlport/libstlport.mk |
| 41 | |
| 42 | LOCAL_MODULE := debuggerd |
| 43 | LOCAL_MODULE_STEM_32 := debuggerd |
| 44 | LOCAL_MODULE_STEM_64 := debuggerd64 |
| 45 | LOCAL_MULTILIB := both |
| 46 | |
| 47 | include $(BUILD_EXECUTABLE) |
| 48 | |
| 49 | include $(CLEAR_VARS) |
| 50 | LOCAL_SRC_FILES := crasher.c |
| 51 | LOCAL_SRC_FILES_arm := arm/crashglue.S |
| 52 | LOCAL_SRC_FILES_arm64 := arm64/crashglue.S |
| 53 | LOCAL_SRC_FILES_mips := mips/crashglue.S |
| 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 |
| 58 | LOCAL_CFLAGS += -fstack-protector-all -Wno-unused-parameter -Wno-free-nonheap-object |
| 59 | #LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 60 | LOCAL_SHARED_LIBRARIES := libcutils liblog libc |
| 61 | |
| 62 | LOCAL_MODULE := crasher |
| 63 | LOCAL_MODULE_STEM_32 := crasher |
| 64 | LOCAL_MODULE_STEM_64 := crasher64 |
| 65 | LOCAL_MULTILIB := both |
| 66 | |
| 67 | include $(BUILD_EXECUTABLE) |
| 68 | |
| 69 | include $(CLEAR_VARS) |
| 70 | |
| 71 | ifeq ($(ARCH_ARM_HAVE_VFP),true) |
| 72 | LOCAL_MODULE_TARGET_ARCH += arm |
| 73 | LOCAL_SRC_FILES_arm := arm/vfp.S |
| 74 | LOCAL_CFLAGS_arm += -DWITH_VFP |
| 75 | ifeq ($(ARCH_ARM_HAVE_VFP_D32),true) |
| 76 | LOCAL_CFLAGS_arm += -DWITH_VFP_D32 |
| 77 | endif # ARCH_ARM_HAVE_VFP_D32 |
| 78 | endif # ARCH_ARM_HAVE_VFP == true |
| 79 | |
| 80 | LOCAL_SRC_FILES_arm64 := arm64/vfp.S |
| 81 | LOCAL_MODULE_TARGET_ARCH += arm64 |
| 82 | |
| 83 | LOCAL_SRC_FILES := vfp-crasher.c |
Ben Cheng | bdcff7d | 2009-12-17 12:50:58 -0800 | [diff] [blame] | 84 | LOCAL_MODULE := vfp-crasher |
| 85 | LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) |
Brian Swetland | cecec9d | 2011-01-23 17:51:54 -0800 | [diff] [blame] | 86 | LOCAL_MODULE_TAGS := optional |
Ying Wang | 083b5cc | 2013-04-09 22:03:45 -0700 | [diff] [blame] | 87 | LOCAL_SHARED_LIBRARIES := libcutils liblog libc |
Colin Cross | 579c9bc | 2014-02-12 22:32:07 -0800 | [diff] [blame] | 88 | |
Colin Cross | 87a6b1d | 2014-03-21 16:58:30 -0700 | [diff] [blame] | 89 | LOCAL_MODULE_STEM_32 := vfp-crasher |
| 90 | LOCAL_MODULE_STEM_64 := vfp-crasher64 |
| 91 | LOCAL_MULTILIB := both |
| 92 | |
Colin Cross | 579c9bc | 2014-02-12 22:32:07 -0800 | [diff] [blame] | 93 | include $(BUILD_EXECUTABLE) |