Shih-wei Liao | 462aefd | 2010-06-04 15:32:04 -0700 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
Shih-wei Liao | 1933298 | 2010-09-07 17:04:53 -0700 | [diff] [blame] | 2 | LLVM_ROOT_PATH := external/llvm |
Shih-wei Liao | 462aefd | 2010-06-04 15:32:04 -0700 | [diff] [blame] | 3 | |
| 4 | include $(LLVM_ROOT_PATH)/llvm.mk |
| 5 | |
| 6 | # Executable for host |
| 7 | # ======================================================== |
| 8 | include $(CLEAR_VARS) |
| 9 | include $(CLEAR_TBLGEN_VARS) |
| 10 | |
Shih-wei Liao | 835a7b7 | 2010-08-06 02:29:11 -0700 | [diff] [blame] | 11 | LOCAL_MODULE := llvm-rs-link |
| 12 | |
| 13 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 14 | |
| 15 | LOCAL_SRC_FILES := \ |
| 16 | llvm-rs-link.cpp |
| 17 | |
| 18 | LOCAL_STATIC_LIBRARIES := \ |
| 19 | libLLVMLinker \ |
| 20 | libLLVMipo \ |
| 21 | libLLVMBitWriter \ |
| 22 | libLLVMBitReader \ |
| 23 | libLLVMScalarOpts \ |
| 24 | libLLVMInstCombine \ |
| 25 | libLLVMTransformUtils \ |
| 26 | libLLVMipa \ |
| 27 | libLLVMAnalysis \ |
| 28 | libLLVMTarget \ |
| 29 | libLLVMCore \ |
| 30 | libLLVMSupport \ |
| 31 | libLLVMSystem |
| 32 | |
| 33 | LOCAL_LDLIBS := -ldl -lpthread |
| 34 | |
| 35 | include $(LLVM_HOST_BUILD_MK) |
| 36 | include $(LLVM_GEN_INTRINSICS_MK) |
| 37 | include $(BUILD_HOST_EXECUTABLE) |
| 38 | |
| 39 | # Executable for host |
| 40 | # ======================================================== |
| 41 | include $(CLEAR_VARS) |
| 42 | include $(CLEAR_TBLGEN_VARS) |
| 43 | |
Shih-wei Liao | 462aefd | 2010-06-04 15:32:04 -0700 | [diff] [blame] | 44 | LOCAL_MODULE := slang |
| 45 | |
Shih-wei Liao | bdd7888 | 2010-06-06 05:55:36 -0700 | [diff] [blame] | 46 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 47 | |
Shih-wei Liao | 462aefd | 2010-06-04 15:32:04 -0700 | [diff] [blame] | 48 | TBLGEN_TABLES := \ |
| 49 | DiagnosticCommonKinds.inc \ |
Kirk Stewart | b0cadb3 | 2010-07-20 17:26:06 -0700 | [diff] [blame] | 50 | DiagnosticFrontendKinds.inc \ |
| 51 | DiagnosticSemaKinds.inc |
Shih-wei Liao | 462aefd | 2010-06-04 15:32:04 -0700 | [diff] [blame] | 52 | |
| 53 | LOCAL_SRC_FILES := \ |
| 54 | slang_driver.cpp \ |
| 55 | libslang.cpp \ |
| 56 | slang.cpp \ |
| 57 | slang_backend.cpp \ |
| 58 | slang_pragma_recorder.cpp \ |
| 59 | slang_diagnostic_buffer.cpp \ |
| 60 | slang_rs_context.cpp \ |
| 61 | slang_rs_pragma_handler.cpp \ |
| 62 | slang_rs_backend.cpp \ |
| 63 | slang_rs_export_type.cpp \ |
| 64 | slang_rs_export_element.cpp \ |
| 65 | slang_rs_export_var.cpp \ |
| 66 | slang_rs_export_func.cpp \ |
Ying Wang | 3f8b44d | 2010-09-04 01:17:01 -0700 | [diff] [blame^] | 67 | slang_rs_reflection.cpp \ |
| 68 | slang_rs_reflect_utils.cpp |
Shih-wei Liao | 462aefd | 2010-06-04 15:32:04 -0700 | [diff] [blame] | 69 | |
| 70 | LOCAL_STATIC_LIBRARIES := \ |
| 71 | libLLVMipo \ |
| 72 | libLLVMBitWriter \ |
| 73 | libLLVMARMAsmPrinter \ |
Shih-wei Liao | 0d80b28 | 2010-07-20 00:13:58 -0700 | [diff] [blame] | 74 | libLLVMX86AsmPrinter \ |
Shih-wei Liao | 462aefd | 2010-06-04 15:32:04 -0700 | [diff] [blame] | 75 | libLLVMAsmPrinter \ |
| 76 | libLLVMMCParser \ |
| 77 | libLLVMARMCodeGen \ |
| 78 | libLLVMARMInfo \ |
| 79 | libLLVMX86CodeGen \ |
| 80 | libLLVMX86Info \ |
| 81 | libLLVMSelectionDAG \ |
| 82 | libLLVMCodeGen \ |
| 83 | libLLVMScalarOpts \ |
| 84 | libLLVMInstCombine \ |
| 85 | libLLVMTransformUtils \ |
| 86 | libLLVMipa \ |
| 87 | libLLVMAnalysis \ |
| 88 | libLLVMTarget \ |
| 89 | libLLVMMC \ |
| 90 | libLLVMCore \ |
| 91 | libclangIndex \ |
| 92 | libclangSema \ |
| 93 | libclangAnalysis \ |
| 94 | libclangAST \ |
| 95 | libclangParse \ |
| 96 | libclangLex \ |
| 97 | libclangCodeGen \ |
| 98 | libclangBasic \ |
| 99 | libLLVMSupport \ |
| 100 | libLLVMSystem |
| 101 | |
| 102 | LOCAL_LDLIBS := -ldl -lpthread |
| 103 | |
Shih-wei Liao | 8fd54b3 | 2010-08-06 16:44:03 -0700 | [diff] [blame] | 104 | LOCAL_REQUIRED_MODULES := llvm-rs-link |
Shih-wei Liao | 41e9d7d | 2010-08-06 09:57:37 -0700 | [diff] [blame] | 105 | |
Shih-wei Liao | 462aefd | 2010-06-04 15:32:04 -0700 | [diff] [blame] | 106 | include $(CLANG_HOST_BUILD_MK) |
| 107 | include $(CLANG_TBLGEN_RULES_MK) |
| 108 | include $(BUILD_HOST_EXECUTABLE) |