OSDN Git Service

Switch to x86_64 instead of i386 for default host compilation.
[android-x86/external-llvm.git] / utils / TableGen / Android.mk
1 LOCAL_PATH := $(call my-dir)
2 LLVM_ROOT_PATH := $(LOCAL_PATH)/../..
3 include $(LLVM_ROOT_PATH)/llvm.mk
4
5 tablegen_SRC_FILES := \
6   AsmMatcherEmitter.cpp \
7   AsmWriterEmitter.cpp \
8   AsmWriterInst.cpp \
9   CallingConvEmitter.cpp \
10   CodeEmitterGen.cpp \
11   CodeGenDAGPatterns.cpp \
12   CodeGenInstruction.cpp \
13   CodeGenMapTable.cpp \
14   CodeGenRegisters.cpp \
15   CodeGenSchedule.cpp \
16   CodeGenTarget.cpp \
17   CTagsEmitter.cpp \
18   DAGISelEmitter.cpp \
19   DAGISelMatcherEmitter.cpp \
20   DAGISelMatcherGen.cpp \
21   DAGISelMatcherOpt.cpp \
22   DAGISelMatcher.cpp \
23   DFAPacketizerEmitter.cpp \
24   DisassemblerEmitter.cpp \
25   FastISelEmitter.cpp \
26   FixedLenDecoderEmitter.cpp \
27   InstrInfoEmitter.cpp \
28   IntrinsicEmitter.cpp \
29   OptParserEmitter.cpp \
30   PseudoLoweringEmitter.cpp \
31   RegisterInfoEmitter.cpp \
32   SubtargetEmitter.cpp \
33   TableGen.cpp \
34   X86DisassemblerTables.cpp \
35   X86ModRMFilters.cpp \
36   X86RecognizableInstr.cpp
37
38 include $(CLEAR_VARS)
39 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
40
41 LOCAL_MODULE := llvm-tblgen
42 LOCAL_MODULE_TAGS := optional
43 LOCAL_SRC_FILES := $(tablegen_SRC_FILES)
44
45 REQUIRES_EH := 1
46 REQUIRES_RTTI := 1
47
48 LOCAL_STATIC_LIBRARIES := \
49   libLLVMTableGen \
50   libLLVMSupport
51
52 LOCAL_LDLIBS += -lm
53 ifeq ($(HOST_OS),windows)
54   LOCAL_LDLIBS += -limagehlp -lpsapi
55 else
56   LOCAL_LDLIBS += -lpthread -ldl
57 endif
58
59 include $(LLVM_HOST_BUILD_MK)
60 include $(BUILD_HOST_EXECUTABLE)