1include $(LLVM_HOST_BUILD_MK) 2 3include external/libcxx/libcxx.mk 4 5LOCAL_CFLAGS := \ 6 -include $(MCLD_ROOT_PATH)/include/mcld/Config/Config.h \ 7 $(LOCAL_CFLAGS) 8 9LOCAL_CPPFLAGS := \ 10 $(LOCAL_CPPFLAGS) \ 11 -Wno-unused-private-field \ 12 -Wno-unused-const-variable \ 13 -Wall 14 15ifeq ($(MCLD_ENABLE_ASSERTION),true) 16 LOCAL_CPPFLAGS += \ 17 -D_DEBUG \ 18 -UNDEBUG 19endif 20 21LOCAL_CLANG := true 22 23ifeq ($(HOST_OS),darwin) 24LOCAL_CFLAGS += -DDARWIN_FLEX=1 25endif 26 27ifeq ($(HOST_OS),windows) 28LOCAL_C_INCLUDES := \ 29 $(MCLD_ROOT_PATH)/include \ 30 $(LLVM_ROOT_PATH) \ 31 $(LLVM_ROOT_PATH)/include \ 32 $(LLVM_ROOT_PATH)/host/include \ 33 $(LOCAL_C_INCLUDES) 34else 35LOCAL_C_INCLUDES := \ 36 $(MCLD_ROOT_PATH)/include \ 37 $(LLVM_ROOT_PATH) \ 38 $(LLVM_ROOT_PATH)/include \ 39 $(LLVM_ROOT_PATH)/host/include \ 40 external/libcxx/include \ 41 $(LOCAL_C_INCLUDES) 42endif 43 44LOCAL_IS_HOST_MODULE := true 45