| # Copyright 2005 The Android Open Source Project |
| |
| LOCAL_PATH:= $(call my-dir) |
| include $(CLEAR_VARS) |
| |
| LOCAL_SRC_FILES:= \ |
| backtrace.cpp \ |
| debuggerd.cpp \ |
| getevent.cpp \ |
| tombstone.cpp \ |
| utility.cpp \ |
| $(TARGET_ARCH)/machine.cpp \ |
| |
| LOCAL_CONLYFLAGS := -std=gnu99 |
| LOCAL_CPPFLAGS := -std=gnu++11 |
| LOCAL_CFLAGS := \ |
| -Wall \ |
| -Wno-array-bounds \ |
| -Werror \ |
| -Wno-unused-parameter \ |
| |
| ifeq ($(TARGET_IS_64_BIT),true) |
| LOCAL_MODULE := debuggerd64 |
| else |
| LOCAL_MODULE := debuggerd |
| endif |
| |
| ifeq ($(ARCH_ARM_HAVE_VFP),true) |
| LOCAL_CFLAGS += -DWITH_VFP |
| endif # ARCH_ARM_HAVE_VFP |
| ifeq ($(ARCH_ARM_HAVE_VFP_D32),true) |
| LOCAL_CFLAGS += -DWITH_VFP_D32 |
| endif # ARCH_ARM_HAVE_VFP_D32 |
| |
| LOCAL_SHARED_LIBRARIES := \ |
| libbacktrace \ |
| libc \ |
| libcutils \ |
| liblog \ |
| libselinux \ |
| |
| include external/stlport/libstlport.mk |
| |
| include $(BUILD_EXECUTABLE) |
| |
| include $(CLEAR_VARS) |
| LOCAL_SRC_FILES := crasher.c |
| LOCAL_SRC_FILES += $(TARGET_ARCH)/crashglue.S |
| LOCAL_MODULE := crasher |
| LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) |
| LOCAL_MODULE_TAGS := optional |
| LOCAL_CFLAGS += -fstack-protector-all -Wno-unused-parameter -Wno-free-nonheap-object |
| #LOCAL_FORCE_STATIC_EXECUTABLE := true |
| LOCAL_SHARED_LIBRARIES := libcutils liblog libc |
| include $(BUILD_EXECUTABLE) |
| |
| ifeq ($(ARCH_ARM_HAVE_VFP),true) |
| include $(CLEAR_VARS) |
| |
| LOCAL_CFLAGS += -DWITH_VFP |
| ifeq ($(ARCH_ARM_HAVE_VFP_D32),true) |
| LOCAL_CFLAGS += -DWITH_VFP_D32 |
| endif # ARCH_ARM_HAVE_VFP_D32 |
| |
| LOCAL_SRC_FILES := vfp-crasher.c $(TARGET_ARCH)/vfp.S |
| LOCAL_MODULE := vfp-crasher |
| LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) |
| LOCAL_MODULE_TAGS := optional |
| LOCAL_SHARED_LIBRARIES := libcutils liblog libc |
| include $(BUILD_EXECUTABLE) |
| endif # ARCH_ARM_HAVE_VFP == true |