Home | History | Annotate | Download | only in debuggerd
      1 # Copyright 2005 The Android Open Source Project
      2 
      3 ifneq ($(filter arm x86,$(TARGET_ARCH)),)
      4 
      5 LOCAL_PATH:= $(call my-dir)
      6 include $(CLEAR_VARS)
      7 
      8 LOCAL_SRC_FILES:= debuggerd.c utility.c getevent.c $(TARGET_ARCH)/machine.c $(TARGET_ARCH)/unwind.c symbol_table.c
      9 ifeq ($(TARGET_ARCH),arm)
     10 LOCAL_SRC_FILES += $(TARGET_ARCH)/pr-support.c
     11 endif
     12 
     13 LOCAL_CFLAGS := -Wall
     14 LOCAL_MODULE := debuggerd
     15 
     16 ifeq ($(ARCH_ARM_HAVE_VFP),true)
     17 LOCAL_CFLAGS += -DWITH_VFP
     18 endif # ARCH_ARM_HAVE_VFP
     19 ifeq ($(ARCH_ARM_HAVE_VFP_D32),true)
     20 LOCAL_CFLAGS += -DWITH_VFP_D32
     21 endif # ARCH_ARM_HAVE_VFP_D32
     22 
     23 LOCAL_STATIC_LIBRARIES := libcutils libc
     24 
     25 include $(BUILD_EXECUTABLE)
     26 
     27 include $(CLEAR_VARS)
     28 LOCAL_SRC_FILES := crasher.c
     29 LOCAL_SRC_FILES += $(TARGET_ARCH)/crashglue.S
     30 LOCAL_MODULE := crasher
     31 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
     32 LOCAL_MODULE_TAGS := optional
     33 #LOCAL_FORCE_STATIC_EXECUTABLE := true
     34 LOCAL_SHARED_LIBRARIES := libcutils libc
     35 include $(BUILD_EXECUTABLE)
     36 
     37 ifeq ($(ARCH_ARM_HAVE_VFP),true)
     38 include $(CLEAR_VARS)
     39 
     40 LOCAL_CFLAGS += -DWITH_VFP
     41 ifeq ($(ARCH_ARM_HAVE_VFP_D32),true)
     42 LOCAL_CFLAGS += -DWITH_VFP_D32
     43 endif # ARCH_ARM_HAVE_VFP_D32
     44 
     45 LOCAL_SRC_FILES := vfp-crasher.c vfp.S
     46 LOCAL_MODULE := vfp-crasher
     47 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
     48 LOCAL_MODULE_TAGS := optional
     49 LOCAL_SHARED_LIBRARIES := libcutils libc
     50 include $(BUILD_EXECUTABLE)
     51 endif # ARCH_ARM_HAVE_VFP == true
     52 
     53 endif # arm or x86 in TARGET_ARCH
     54