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