1include $(LLVM_DEVICE_BUILD_MK)
2
3# The three inline options together reduce libbcc.so almost 1MB.
4# We move them from global build/core/combo/TARGET_linux-arm.mk
5# to here.
6LOCAL_CFLAGS := \
7  -DANDROID_TARGET_BUILD \
8  -finline-functions \
9  -include $(MCLD_ROOT_PATH)/include/mcld/Config/Config.h \
10  $(LOCAL_CFLAGS)
11
12LOCAL_CPPFLAGS := \
13  $(LOCAL_CPPFLAGS) \
14  -Wall \
15  -Wno-unused-parameter \
16  -Wno-unused-private-field \
17  -Wno-unused-const-variable \
18  -Werror
19
20ifeq ($(MCLD_ENABLE_ASSERTION),true)
21  LOCAL_CPPFLAGS += \
22    -D_DEBUG \
23    -UNDEBUG
24endif
25
26ifeq ($(HOST_OS),darwin)
27LOCAL_CFLAGS += -DDARWIN_FLEX=1
28endif
29
30ifeq ($(BUILD_ARM_FOR_X86),true)
31LOCAL_CFLAGS_x86 += -DPROVIDE_ARM_CODEGEN -DFORCE_BUILD_ARM
32LOCAL_CFLAGS_x86_64 += -DPROVIDE_ARM_CODEGEN -DFORCE_BUILD_ARM
33endif
34
35# Make sure bionic is first so we can include system headers.
36LOCAL_C_INCLUDES := \
37  bionic \
38  external/libcxx/include \
39  external/libcxxabi/include \
40  $(MCLD_ROOT_PATH)/include \
41  $(LLVM_ROOT_PATH) \
42  $(LLVM_ROOT_PATH)/include \
43  $(LLVM_ROOT_PATH)/device/include \
44  $(LOCAL_C_INCLUDES)
45