blob: f6d8f0c9a60143212d4b833aabe4c8facf12bd6d [file] [log] [blame]
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08001LOCAL_PATH:= $(call my-dir)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08002
Ben Chengbdcff7d2009-12-17 12:50:58 -08003include $(CLEAR_VARS)
Colin Crosse951f602010-03-08 19:21:07 -08004
Colin Cross87a6b1d2014-03-21 16:58:30 -07005LOCAL_SRC_FILES:= \
6 backtrace.cpp \
7 debuggerd.cpp \
8 getevent.cpp \
9 tombstone.cpp \
10 utility.cpp \
11
12LOCAL_SRC_FILES_arm := arm/machine.cpp
13LOCAL_SRC_FILES_arm64 := arm64/machine.cpp
14LOCAL_SRC_FILES_mips := mips/machine.cpp
15LOCAL_SRC_FILES_x86 := x86/machine.cpp
16LOCAL_SRC_FILES_x86_64 := x86_64/machine.cpp
17
18LOCAL_CONLYFLAGS := -std=gnu99
19LOCAL_CPPFLAGS := -std=gnu++11
20LOCAL_CFLAGS := \
21 -Wall \
22 -Wno-array-bounds \
23 -Werror \
24 -Wno-unused-parameter \
25
26ifeq ($(ARCH_ARM_HAVE_VFP),true)
27LOCAL_CFLAGS_arm += -DWITH_VFP
28endif # ARCH_ARM_HAVE_VFP
Colin Crosse951f602010-03-08 19:21:07 -080029ifeq ($(ARCH_ARM_HAVE_VFP_D32),true)
Colin Cross87a6b1d2014-03-21 16:58:30 -070030LOCAL_CFLAGS_arm += -DWITH_VFP_D32
Colin Crosse951f602010-03-08 19:21:07 -080031endif # ARCH_ARM_HAVE_VFP_D32
32
Colin Cross87a6b1d2014-03-21 16:58:30 -070033LOCAL_SHARED_LIBRARIES := \
34 libbacktrace \
35 libc \
36 libcutils \
37 liblog \
38 libselinux \
39
40include external/stlport/libstlport.mk
41
42LOCAL_MODULE := debuggerd
43LOCAL_MODULE_STEM_32 := debuggerd
44LOCAL_MODULE_STEM_64 := debuggerd64
45LOCAL_MULTILIB := both
46
47include $(BUILD_EXECUTABLE)
48
49include $(CLEAR_VARS)
50LOCAL_SRC_FILES := crasher.c
51LOCAL_SRC_FILES_arm := arm/crashglue.S
52LOCAL_SRC_FILES_arm64 := arm64/crashglue.S
53LOCAL_SRC_FILES_mips := mips/crashglue.S
54LOCAL_SRC_FILES_x86 := x86/crashglue.S
55LOCAL_SRC_FILES_x86_64 := x86_64/crashglue.S
56LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
57LOCAL_MODULE_TAGS := optional
58LOCAL_CFLAGS += -fstack-protector-all -Wno-unused-parameter -Wno-free-nonheap-object
59#LOCAL_FORCE_STATIC_EXECUTABLE := true
60LOCAL_SHARED_LIBRARIES := libcutils liblog libc
61
62LOCAL_MODULE := crasher
63LOCAL_MODULE_STEM_32 := crasher
64LOCAL_MODULE_STEM_64 := crasher64
65LOCAL_MULTILIB := both
66
67include $(BUILD_EXECUTABLE)
68
69include $(CLEAR_VARS)
70
71ifeq ($(ARCH_ARM_HAVE_VFP),true)
72LOCAL_MODULE_TARGET_ARCH += arm
73LOCAL_SRC_FILES_arm := arm/vfp.S
74LOCAL_CFLAGS_arm += -DWITH_VFP
75ifeq ($(ARCH_ARM_HAVE_VFP_D32),true)
76LOCAL_CFLAGS_arm += -DWITH_VFP_D32
77endif # ARCH_ARM_HAVE_VFP_D32
78endif # ARCH_ARM_HAVE_VFP == true
79
80LOCAL_SRC_FILES_arm64 := arm64/vfp.S
81LOCAL_MODULE_TARGET_ARCH += arm64
82
83LOCAL_SRC_FILES := vfp-crasher.c
Ben Chengbdcff7d2009-12-17 12:50:58 -080084LOCAL_MODULE := vfp-crasher
85LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
Brian Swetlandcecec9d2011-01-23 17:51:54 -080086LOCAL_MODULE_TAGS := optional
Ying Wang083b5cc2013-04-09 22:03:45 -070087LOCAL_SHARED_LIBRARIES := libcutils liblog libc
Colin Cross579c9bc2014-02-12 22:32:07 -080088
Colin Cross87a6b1d2014-03-21 16:58:30 -070089LOCAL_MODULE_STEM_32 := vfp-crasher
90LOCAL_MODULE_STEM_64 := vfp-crasher64
91LOCAL_MULTILIB := both
92
Colin Cross579c9bc2014-02-12 22:32:07 -080093include $(BUILD_EXECUTABLE)