1 include $(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. 6 LOCAL_CFLAGS := \ 7 -DANDROID_TARGET_BUILD \ 8 -finline-limit=64 \ 9 -finline-functions \ 10 -fno-inline-functions-called-once \ 11 -include $(MCLD_ROOT_PATH)/include/mcld/Config/Config.h \ 12 $(LOCAL_CFLAGS) 13 14 LOCAL_CPPFLAGS := \ 15 $(LOCAL_CPPFLAGS) \ 16 -Wall \ 17 -Wno-unused-parameter \ 18 -Werror 19 20 ifeq ($(MCLD_ENABLE_ASSERTION),true) 21 LOCAL_CPPFLAGS += \ 22 -D_DEBUG \ 23 -UNDEBUG 24 endif 25 26 # Make sure bionic is first so we can include system headers. 27 LOCAL_C_INCLUDES := \ 28 bionic \ 29 external/stlport/stlport \ 30 $(MCLD_ROOT_PATH)/include \ 31 $(LLVM_ROOT_PATH) \ 32 $(LLVM_ROOT_PATH)/include \ 33 $(LLVM_ROOT_PATH)/device/include \ 34 $(LOCAL_C_INCLUDES) 35