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