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:= \ |
Christopher Ferris | d607495 | 2014-01-10 16:05:12 -0800 | [diff] [blame] | 9 | backtrace.cpp \ |
| 10 | debuggerd.cpp \ |
| 11 | getevent.cpp \ |
| 12 | tombstone.cpp \ |
| 13 | utility.cpp \ |
| 14 | $(TARGET_ARCH)/machine.cpp \ |
Bruce Beare | 8492490 | 2010-10-13 14:21:30 -0700 | [diff] [blame] | 15 | |
Christopher Ferris | d607495 | 2014-01-10 16:05:12 -0800 | [diff] [blame] | 16 | LOCAL_CONLYFLAGS := -std=gnu99 |
| 17 | LOCAL_CPPFLAGS := -std=gnu++11 |
| 18 | LOCAL_CFLAGS := \ |
| 19 | -Wall \ |
| 20 | -Wno-array-bounds \ |
| 21 | -Werror \ |
| 22 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 23 | LOCAL_MODULE := debuggerd |
| 24 | |
Colin Cross | e951f60 | 2010-03-08 19:21:07 -0800 | [diff] [blame] | 25 | ifeq ($(ARCH_ARM_HAVE_VFP),true) |
| 26 | LOCAL_CFLAGS += -DWITH_VFP |
| 27 | endif # ARCH_ARM_HAVE_VFP |
| 28 | ifeq ($(ARCH_ARM_HAVE_VFP_D32),true) |
| 29 | LOCAL_CFLAGS += -DWITH_VFP_D32 |
| 30 | endif # ARCH_ARM_HAVE_VFP_D32 |
| 31 | |
Kenny Root | b5982bf | 2012-10-16 23:07:05 -0700 | [diff] [blame] | 32 | LOCAL_SHARED_LIBRARIES := \ |
Christopher Ferris | 365e4ae | 2013-10-02 12:26:48 -0700 | [diff] [blame] | 33 | libbacktrace \ |
| 34 | libc \ |
Kenny Root | b5982bf | 2012-10-16 23:07:05 -0700 | [diff] [blame] | 35 | libcutils \ |
Ying Wang | 083b5cc | 2013-04-09 22:03:45 -0700 | [diff] [blame] | 36 | liblog \ |
Christopher Ferris | 365e4ae | 2013-10-02 12:26:48 -0700 | [diff] [blame] | 37 | libselinux \ |
rpcraig | f1186f3 | 2012-07-19 09:38:06 -0400 | [diff] [blame] | 38 | |
Christopher Ferris | d607495 | 2014-01-10 16:05:12 -0800 | [diff] [blame] | 39 | include external/stlport/libstlport.mk |
| 40 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 41 | include $(BUILD_EXECUTABLE) |
| 42 | |
| 43 | include $(CLEAR_VARS) |
Ben Cheng | bdcff7d | 2009-12-17 12:50:58 -0800 | [diff] [blame] | 44 | LOCAL_SRC_FILES := crasher.c |
Bruce Beare | 8492490 | 2010-10-13 14:21:30 -0700 | [diff] [blame] | 45 | LOCAL_SRC_FILES += $(TARGET_ARCH)/crashglue.S |
Ben Cheng | bdcff7d | 2009-12-17 12:50:58 -0800 | [diff] [blame] | 46 | LOCAL_MODULE := crasher |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 47 | LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) |
Brian Swetland | cecec9d | 2011-01-23 17:51:54 -0800 | [diff] [blame] | 48 | LOCAL_MODULE_TAGS := optional |
Christopher Ferris | d607495 | 2014-01-10 16:05:12 -0800 | [diff] [blame] | 49 | LOCAL_CFLAGS += -fstack-protector-all -Wno-unused-parameter -Wno-free-nonheap-object |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 50 | #LOCAL_FORCE_STATIC_EXECUTABLE := true |
Ying Wang | 083b5cc | 2013-04-09 22:03:45 -0700 | [diff] [blame] | 51 | LOCAL_SHARED_LIBRARIES := libcutils liblog libc |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 52 | include $(BUILD_EXECUTABLE) |
| 53 | |
Colin Cross | e951f60 | 2010-03-08 19:21:07 -0800 | [diff] [blame] | 54 | ifeq ($(ARCH_ARM_HAVE_VFP),true) |
Ben Cheng | bdcff7d | 2009-12-17 12:50:58 -0800 | [diff] [blame] | 55 | include $(CLEAR_VARS) |
Colin Cross | e951f60 | 2010-03-08 19:21:07 -0800 | [diff] [blame] | 56 | |
| 57 | LOCAL_CFLAGS += -DWITH_VFP |
| 58 | ifeq ($(ARCH_ARM_HAVE_VFP_D32),true) |
| 59 | LOCAL_CFLAGS += -DWITH_VFP_D32 |
| 60 | endif # ARCH_ARM_HAVE_VFP_D32 |
| 61 | |
Ben Cheng | bdcff7d | 2009-12-17 12:50:58 -0800 | [diff] [blame] | 62 | LOCAL_SRC_FILES := vfp-crasher.c vfp.S |
| 63 | LOCAL_MODULE := vfp-crasher |
| 64 | LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) |
Brian Swetland | cecec9d | 2011-01-23 17:51:54 -0800 | [diff] [blame] | 65 | LOCAL_MODULE_TAGS := optional |
Ying Wang | 083b5cc | 2013-04-09 22:03:45 -0700 | [diff] [blame] | 66 | LOCAL_SHARED_LIBRARIES := libcutils liblog libc |
Ben Cheng | bdcff7d | 2009-12-17 12:50:58 -0800 | [diff] [blame] | 67 | include $(BUILD_EXECUTABLE) |
Colin Cross | e951f60 | 2010-03-08 19:21:07 -0800 | [diff] [blame] | 68 | endif # ARCH_ARM_HAVE_VFP == true |
Ben Cheng | bdcff7d | 2009-12-17 12:50:58 -0800 | [diff] [blame] | 69 | |
Bruce Beare | 6cc4923 | 2010-10-13 16:11:15 -0700 | [diff] [blame] | 70 | endif # arm or x86 in TARGET_ARCH |