summaryrefslogtreecommitdiff
path: root/debuggerd/Android.mk
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-06-03 15:12:07 -0700
committerElliott Hughes <enh@google.com>2014-06-03 15:12:07 -0700
commit8c597684b191862105ddfced5982b38f983f8ff0 (patch)
tree00931067eee30ae23fefa40d7ac70f028e5bdc3f /debuggerd/Android.mk
parent03b87b49fae82a6304ab69b10426701c4f82c7e9 (diff)
Clean up the debuggerd makefile.
In particular, turn on -Wunused, which is globally off by default thanks to build/core/config.mk. Change-Id: Iba3ee1c0726f43eced972a53959f0e1cd97190c9
Diffstat (limited to 'debuggerd/Android.mk')
-rw-r--r--debuggerd/Android.mk31
1 files changed, 15 insertions, 16 deletions
diff --git a/debuggerd/Android.mk b/debuggerd/Android.mk
index 8be3541fd..ad2cc5c87 100644
--- a/debuggerd/Android.mk
+++ b/debuggerd/Android.mk
@@ -3,11 +3,11 @@ LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
- backtrace.cpp \
- debuggerd.cpp \
- getevent.cpp \
- tombstone.cpp \
- utility.cpp \
+ backtrace.cpp \
+ debuggerd.cpp \
+ getevent.cpp \
+ tombstone.cpp \
+ utility.cpp \
LOCAL_SRC_FILES_arm := arm/machine.cpp
LOCAL_SRC_FILES_arm64 := arm64/machine.cpp
@@ -15,12 +15,11 @@ LOCAL_SRC_FILES_mips := mips/machine.cpp
LOCAL_SRC_FILES_x86 := x86/machine.cpp
LOCAL_SRC_FILES_x86_64 := x86_64/machine.cpp
-LOCAL_CONLYFLAGS := -std=gnu99
-LOCAL_CPPFLAGS := -std=gnu++11
-LOCAL_CFLAGS := \
- -Wall \
- -Wno-array-bounds \
- -Werror
+LOCAL_CPPFLAGS := \
+ -std=gnu++11 \
+ -W -Wall -Wextra \
+ -Wunused \
+ -Werror \
ifeq ($(ARCH_ARM_HAVE_VFP),true)
LOCAL_CFLAGS_arm += -DWITH_VFP
@@ -30,11 +29,10 @@ LOCAL_CFLAGS_arm += -DWITH_VFP_D32
endif # ARCH_ARM_HAVE_VFP_D32
LOCAL_SHARED_LIBRARIES := \
- libbacktrace \
- libc \
- libcutils \
- liblog \
- libselinux \
+ libbacktrace \
+ libcutils \
+ liblog \
+ libselinux \
include external/stlport/libstlport.mk
@@ -42,6 +40,7 @@ LOCAL_MODULE := debuggerd
LOCAL_MODULE_STEM_32 := debuggerd
LOCAL_MODULE_STEM_64 := debuggerd64
LOCAL_MULTILIB := both
+LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk
include $(BUILD_EXECUTABLE)