1 # Copyright 2005 The Android Open Source Project 2 3 ifneq ($(filter arm mips x86,$(TARGET_ARCH)),) 4 5 LOCAL_PATH:= $(call my-dir) 6 include $(CLEAR_VARS) 7 8 LOCAL_SRC_FILES:= \ 9 backtrace.c \ 10 debuggerd.c \ 11 getevent.c \ 12 tombstone.c \ 13 utility.c \ 14 $(TARGET_ARCH)/machine.c 15 16 LOCAL_CFLAGS := -Wall -Wno-unused-parameter -std=gnu99 17 LOCAL_MODULE := debuggerd 18 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 26 LOCAL_SHARED_LIBRARIES := \ 27 libcutils \ 28 liblog \ 29 libc \ 30 libcorkscrew \ 31 libselinux 32 33 include $(BUILD_EXECUTABLE) 34 35 include $(CLEAR_VARS) 36 LOCAL_SRC_FILES := crasher.c 37 LOCAL_SRC_FILES += $(TARGET_ARCH)/crashglue.S 38 LOCAL_MODULE := crasher 39 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) 40 LOCAL_MODULE_TAGS := optional 41 LOCAL_CFLAGS += -fstack-protector-all 42 #LOCAL_FORCE_STATIC_EXECUTABLE := true 43 LOCAL_SHARED_LIBRARIES := libcutils liblog libc 44 include $(BUILD_EXECUTABLE) 45 46 ifeq ($(ARCH_ARM_HAVE_VFP),true) 47 include $(CLEAR_VARS) 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 54 LOCAL_SRC_FILES := vfp-crasher.c vfp.S 55 LOCAL_MODULE := vfp-crasher 56 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) 57 LOCAL_MODULE_TAGS := optional 58 LOCAL_SHARED_LIBRARIES := libcutils liblog libc 59 include $(BUILD_EXECUTABLE) 60 endif # ARCH_ARM_HAVE_VFP == true 61 62 endif # arm or x86 in TARGET_ARCH 63