The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 1 | # Copyright 2005 The Android Open Source Project |
| 2 | |
| 3 | ifeq ($(TARGET_ARCH),arm) |
| 4 | |
| 5 | LOCAL_PATH:= $(call my-dir) |
| 6 | include $(CLEAR_VARS) |
| 7 | |
| 8 | LOCAL_SRC_FILES:= debuggerd.c getevent.c unwind-arm.c pr-support.c utility.c |
| 9 | LOCAL_CFLAGS := -Wall |
| 10 | LOCAL_MODULE := debuggerd |
| 11 | |
Colin Cross | e951f60 | 2010-03-08 19:21:07 -0800 | [diff] [blame] | 12 | ifeq ($(ARCH_ARM_HAVE_VFP),true) |
| 13 | LOCAL_CFLAGS += -DWITH_VFP |
| 14 | endif # ARCH_ARM_HAVE_VFP |
| 15 | ifeq ($(ARCH_ARM_HAVE_VFP_D32),true) |
| 16 | LOCAL_CFLAGS += -DWITH_VFP_D32 |
| 17 | endif # ARCH_ARM_HAVE_VFP_D32 |
| 18 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 19 | LOCAL_STATIC_LIBRARIES := libcutils libc |
| 20 | |
| 21 | include $(BUILD_EXECUTABLE) |
| 22 | |
| 23 | include $(CLEAR_VARS) |
Ben Cheng | bdcff7d | 2009-12-17 12:50:58 -0800 | [diff] [blame] | 24 | LOCAL_SRC_FILES := crasher.c |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 25 | LOCAL_SRC_FILES += crashglue.S |
Ben Cheng | bdcff7d | 2009-12-17 12:50:58 -0800 | [diff] [blame] | 26 | LOCAL_MODULE := crasher |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 27 | LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) |
| 28 | LOCAL_MODULE_TAGS := eng |
| 29 | #LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 30 | LOCAL_SHARED_LIBRARIES := libcutils libc |
| 31 | include $(BUILD_EXECUTABLE) |
| 32 | |
Colin Cross | e951f60 | 2010-03-08 19:21:07 -0800 | [diff] [blame] | 33 | ifeq ($(ARCH_ARM_HAVE_VFP),true) |
Ben Cheng | bdcff7d | 2009-12-17 12:50:58 -0800 | [diff] [blame] | 34 | include $(CLEAR_VARS) |
Colin Cross | e951f60 | 2010-03-08 19:21:07 -0800 | [diff] [blame] | 35 | |
| 36 | LOCAL_CFLAGS += -DWITH_VFP |
| 37 | ifeq ($(ARCH_ARM_HAVE_VFP_D32),true) |
| 38 | LOCAL_CFLAGS += -DWITH_VFP_D32 |
| 39 | endif # ARCH_ARM_HAVE_VFP_D32 |
| 40 | |
Ben Cheng | bdcff7d | 2009-12-17 12:50:58 -0800 | [diff] [blame] | 41 | LOCAL_SRC_FILES := vfp-crasher.c vfp.S |
| 42 | LOCAL_MODULE := vfp-crasher |
| 43 | LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) |
| 44 | LOCAL_MODULE_TAGS := eng |
| 45 | LOCAL_SHARED_LIBRARIES := libcutils libc |
| 46 | include $(BUILD_EXECUTABLE) |
Colin Cross | e951f60 | 2010-03-08 19:21:07 -0800 | [diff] [blame] | 47 | endif # ARCH_ARM_HAVE_VFP == true |
Ben Cheng | bdcff7d | 2009-12-17 12:50:58 -0800 | [diff] [blame] | 48 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 49 | endif # TARGET_ARCH == arm |