1LOCAL_PATH := $(call my-dir) 2 3LLVM_ROOT_PATH := $(LOCAL_PATH)/../.. 4 5 6#===---------------------------------------------------------------=== 7# llvm-c-test command line tool 8#===---------------------------------------------------------------=== 9 10llvm_c_test_SRC_FILES := \ 11 calc.c \ 12 disassemble.c \ 13 helpers.c \ 14 include-all.c \ 15 main.c \ 16 metadata.c \ 17 module.c \ 18 object.c \ 19 targets.c \ 20 21llvm_c_test_STATIC_LIBRARIES := \ 22 libLLVMBitReader \ 23 libLLVMARMCodeGen \ 24 libLLVMARMInfo \ 25 libLLVMARMDesc \ 26 libLLVMARMAsmPrinter \ 27 libLLVMARMDisassembler \ 28 libLLVMAArch64CodeGen \ 29 libLLVMAArch64Info \ 30 libLLVMAArch64Desc \ 31 libLLVMAArch64AsmPrinter \ 32 libLLVMAArch64Utils \ 33 libLLVMAArch64Disassembler \ 34 libLLVMMipsCodeGen \ 35 libLLVMMipsInfo \ 36 libLLVMMipsDesc \ 37 libLLVMMipsAsmPrinter \ 38 libLLVMMipsDisassembler \ 39 libLLVMX86CodeGen \ 40 libLLVMX86Info \ 41 libLLVMX86Desc \ 42 libLLVMX86AsmPrinter \ 43 libLLVMX86Utils \ 44 libLLVMX86Disassembler \ 45 libLLVMAsmPrinter \ 46 libLLVMSelectionDAG \ 47 libLLVMCodeGen \ 48 libLLVMScalarOpts \ 49 libLLVMTransformUtils \ 50 libLLVMAnalysis \ 51 libLLVMTarget \ 52 libLLVMMC \ 53 libLLVMObject \ 54 libLLVMMCParser \ 55 libLLVMCore \ 56 libLLVMAsmParser \ 57 libLLVMOption \ 58 libLLVMSupport \ 59 libLLVMMCDisassembler \ 60 61include $(CLEAR_VARS) 62 63LOCAL_MODULE := llvm-c-test 64LOCAL_MODULE_TAGS := optional 65LOCAL_MODULE_CLASS := EXECUTABLES 66LOCAL_IS_HOST_MODULE := true 67 68LOCAL_SRC_FILES := $(llvm_c_test_SRC_FILES) 69 70LOCAL_STATIC_LIBRARIES := $(llvm_c_test_STATIC_LIBRARIES) 71 72LOCAL_LDLIBS += -lpthread -lm -ldl 73 74include $(LLVM_ROOT_PATH)/llvm.mk 75include $(LLVM_HOST_BUILD_MK) 76include $(LLVM_GEN_INTRINSICS_MK) 77include $(BUILD_HOST_EXECUTABLE) 78