The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 1 | # Copyright 2005 The Android Open Source Project |
| 2 | |
Chris Dearman | 231e3c8 | 2012-08-10 17:06:20 -0700 | [diff] [blame] | 3 | ifneq ($(filter arm mips x86,$(TARGET_ARCH)),) |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 4 | |
| 5 | LOCAL_PATH:= $(call my-dir) |
| 6 | include $(CLEAR_VARS) |
| 7 | |
Jeff Brown | 053b865 | 2012-06-06 16:25:03 -0700 | [diff] [blame] | 8 | LOCAL_SRC_FILES:= \ |
| 9 | backtrace.c \ |
| 10 | debuggerd.c \ |
| 11 | getevent.c \ |
| 12 | tombstone.c \ |
| 13 | utility.c \ |
| 14 | $(TARGET_ARCH)/machine.c |
Bruce Beare | 8492490 | 2010-10-13 14:21:30 -0700 | [diff] [blame] | 15 | |
Jeff Brown | 053b865 | 2012-06-06 16:25:03 -0700 | [diff] [blame] | 16 | LOCAL_CFLAGS := -Wall -Wno-unused-parameter -std=gnu99 |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 17 | LOCAL_MODULE := debuggerd |
| 18 | |
Colin Cross | e951f60 | 2010-03-08 19:21:07 -0800 | [diff] [blame] | 19 | ifeq ($(ARCH_ARM_HAVE_VFP),true) |
| 20 | LOCAL_CFLAGS += -DWITH_VFP |
| 21 | endif # ARCH_ARM_HAVE_VFP |
| 22 | ifeq ($(ARCH_ARM_HAVE_VFP_D32),true) |
| 23 | LOCAL_CFLAGS += -DWITH_VFP_D32 |
| 24 | endif # ARCH_ARM_HAVE_VFP_D32 |
| 25 | |
Kenny Root | b5982bf | 2012-10-16 23:07:05 -0700 | [diff] [blame] | 26 | LOCAL_SHARED_LIBRARIES := \ |
Christopher Ferris | 365e4ae | 2013-10-02 12:26:48 -0700 | [diff] [blame] | 27 | libbacktrace \ |
| 28 | libc \ |
Kenny Root | b5982bf | 2012-10-16 23:07:05 -0700 | [diff] [blame] | 29 | libcutils \ |
Ying Wang | 083b5cc | 2013-04-09 22:03:45 -0700 | [diff] [blame] | 30 | liblog \ |
Christopher Ferris | 365e4ae | 2013-10-02 12:26:48 -0700 | [diff] [blame] | 31 | libselinux \ |
rpcraig | f1186f3 | 2012-07-19 09:38:06 -0400 | [diff] [blame] | 32 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 33 | include $(BUILD_EXECUTABLE) |
| 34 | |
| 35 | include $(CLEAR_VARS) |
Ben Cheng | bdcff7d | 2009-12-17 12:50:58 -0800 | [diff] [blame] | 36 | LOCAL_SRC_FILES := crasher.c |
Bruce Beare | 8492490 | 2010-10-13 14:21:30 -0700 | [diff] [blame] | 37 | LOCAL_SRC_FILES += $(TARGET_ARCH)/crashglue.S |
Ben Cheng | bdcff7d | 2009-12-17 12:50:58 -0800 | [diff] [blame] | 38 | LOCAL_MODULE := crasher |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 39 | LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) |
Brian Swetland | cecec9d | 2011-01-23 17:51:54 -0800 | [diff] [blame] | 40 | LOCAL_MODULE_TAGS := optional |
Elliott Hughes | df4200e | 2013-02-14 14:41:57 -0800 | [diff] [blame] | 41 | LOCAL_CFLAGS += -fstack-protector-all |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 42 | #LOCAL_FORCE_STATIC_EXECUTABLE := true |
Ying Wang | 083b5cc | 2013-04-09 22:03:45 -0700 | [diff] [blame] | 43 | LOCAL_SHARED_LIBRARIES := libcutils liblog libc |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 44 | include $(BUILD_EXECUTABLE) |
| 45 | |
Colin Cross | e951f60 | 2010-03-08 19:21:07 -0800 | [diff] [blame] | 46 | ifeq ($(ARCH_ARM_HAVE_VFP),true) |
Ben Cheng | bdcff7d | 2009-12-17 12:50:58 -0800 | [diff] [blame] | 47 | include $(CLEAR_VARS) |
Colin Cross | e951f60 | 2010-03-08 19:21:07 -0800 | [diff] [blame] | 48 | |
| 49 | LOCAL_CFLAGS += -DWITH_VFP |
| 50 | ifeq ($(ARCH_ARM_HAVE_VFP_D32),true) |
| 51 | LOCAL_CFLAGS += -DWITH_VFP_D32 |
| 52 | endif # ARCH_ARM_HAVE_VFP_D32 |
| 53 | |
Ben Cheng | bdcff7d | 2009-12-17 12:50:58 -0800 | [diff] [blame] | 54 | LOCAL_SRC_FILES := vfp-crasher.c vfp.S |
| 55 | LOCAL_MODULE := vfp-crasher |
| 56 | LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) |
Brian Swetland | cecec9d | 2011-01-23 17:51:54 -0800 | [diff] [blame] | 57 | LOCAL_MODULE_TAGS := optional |
Ying Wang | 083b5cc | 2013-04-09 22:03:45 -0700 | [diff] [blame] | 58 | LOCAL_SHARED_LIBRARIES := libcutils liblog libc |
Ben Cheng | bdcff7d | 2009-12-17 12:50:58 -0800 | [diff] [blame] | 59 | include $(BUILD_EXECUTABLE) |
Colin Cross | e951f60 | 2010-03-08 19:21:07 -0800 | [diff] [blame] | 60 | endif # ARCH_ARM_HAVE_VFP == true |
Ben Cheng | bdcff7d | 2009-12-17 12:50:58 -0800 | [diff] [blame] | 61 | |
Bruce Beare | 6cc4923 | 2010-10-13 16:11:15 -0700 | [diff] [blame] | 62 | endif # arm or x86 in TARGET_ARCH |