Home | History | Annotate | Download | only in mclinker
      1 include $(LLVM_HOST_BUILD_MK)
      2 
      3 include external/libcxx/libcxx.mk
      4 
      5 LOCAL_CFLAGS := \
      6   -include $(MCLD_ROOT_PATH)/include/mcld/Config/Config.h \
      7   $(LOCAL_CFLAGS)
      8 
      9 LOCAL_CPPFLAGS := \
     10   $(LOCAL_CPPFLAGS) \
     11   -Wno-unused-private-field \
     12   -Wno-unused-const-variable \
     13   -Wall
     14 
     15 ifeq ($(MCLD_ENABLE_ASSERTION),true)
     16   LOCAL_CPPFLAGS += \
     17     -D_DEBUG \
     18     -UNDEBUG
     19 endif
     20 
     21 LOCAL_CLANG := true
     22 
     23 ifeq ($(HOST_OS),darwin)
     24 LOCAL_CFLAGS += -DDARWIN_FLEX=1
     25 endif
     26 
     27 ifeq ($(HOST_OS),windows)
     28 LOCAL_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)
     34 else
     35 LOCAL_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)
     42 endif
     43 
     44 LOCAL_IS_HOST_MODULE := true
     45