Shih-wei Liao | 462aefd | 2010-06-04 15:32:04 -0700 | [diff] [blame^] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | LLVM_ROOT_PATH := external/llvm/llvm |
| 3 | |
| 4 | include $(LLVM_ROOT_PATH)/llvm.mk |
| 5 | |
| 6 | # Executable for host |
| 7 | # ======================================================== |
| 8 | include $(CLEAR_VARS) |
| 9 | include $(CLEAR_TBLGEN_VARS) |
| 10 | |
| 11 | LOCAL_MODULE := slang |
| 12 | |
| 13 | TBLGEN_TABLES := \ |
| 14 | DiagnosticCommonKinds.inc \ |
| 15 | DiagnosticFrontendKinds.inc |
| 16 | |
| 17 | LOCAL_SRC_FILES := \ |
| 18 | slang_driver.cpp \ |
| 19 | libslang.cpp \ |
| 20 | slang.cpp \ |
| 21 | slang_backend.cpp \ |
| 22 | slang_pragma_recorder.cpp \ |
| 23 | slang_diagnostic_buffer.cpp \ |
| 24 | slang_rs_context.cpp \ |
| 25 | slang_rs_pragma_handler.cpp \ |
| 26 | slang_rs_backend.cpp \ |
| 27 | slang_rs_export_type.cpp \ |
| 28 | slang_rs_export_element.cpp \ |
| 29 | slang_rs_export_var.cpp \ |
| 30 | slang_rs_export_func.cpp \ |
| 31 | slang_rs_reflection.cpp |
| 32 | |
| 33 | LOCAL_STATIC_LIBRARIES := \ |
| 34 | libLLVMipo \ |
| 35 | libLLVMBitWriter \ |
| 36 | libLLVMARMAsmPrinter \ |
| 37 | libLLVMX86AsmPrinter \ |
| 38 | libLLVMAsmPrinter \ |
| 39 | libLLVMMCParser \ |
| 40 | libLLVMARMCodeGen \ |
| 41 | libLLVMARMInfo \ |
| 42 | libLLVMX86CodeGen \ |
| 43 | libLLVMX86Info \ |
| 44 | libLLVMSelectionDAG \ |
| 45 | libLLVMCodeGen \ |
| 46 | libLLVMScalarOpts \ |
| 47 | libLLVMInstCombine \ |
| 48 | libLLVMTransformUtils \ |
| 49 | libLLVMipa \ |
| 50 | libLLVMAnalysis \ |
| 51 | libLLVMTarget \ |
| 52 | libLLVMMC \ |
| 53 | libLLVMCore \ |
| 54 | libclangIndex \ |
| 55 | libclangSema \ |
| 56 | libclangAnalysis \ |
| 57 | libclangAST \ |
| 58 | libclangParse \ |
| 59 | libclangLex \ |
| 60 | libclangCodeGen \ |
| 61 | libclangBasic \ |
| 62 | libLLVMSupport \ |
| 63 | libLLVMSystem |
| 64 | |
| 65 | LOCAL_LDLIBS := -ldl -lpthread |
| 66 | |
| 67 | include $(CLANG_HOST_BUILD_MK) |
| 68 | include $(CLANG_TBLGEN_RULES_MK) |
| 69 | include $(BUILD_HOST_EXECUTABLE) |