blob: 81652698bf7af061384a66cf54034edbc81c377e [file] [log] [blame]
Shih-wei Liao462aefd2010-06-04 15:32:04 -07001LOCAL_PATH := $(call my-dir)
2LLVM_ROOT_PATH := external/llvm/llvm
3
4include $(LLVM_ROOT_PATH)/llvm.mk
5
6# Executable for host
7# ========================================================
8include $(CLEAR_VARS)
9include $(CLEAR_TBLGEN_VARS)
10
11LOCAL_MODULE := slang
12
13TBLGEN_TABLES := \
14 DiagnosticCommonKinds.inc \
15 DiagnosticFrontendKinds.inc
16
17LOCAL_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
33LOCAL_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
65LOCAL_LDLIBS := -ldl -lpthread
66
67include $(CLANG_HOST_BUILD_MK)
68include $(CLANG_TBLGEN_RULES_MK)
69include $(BUILD_HOST_EXECUTABLE)