1LOCAL_PATH:= $(call my-dir) 2 3tablegen_SRC_FILES := \ 4 AsmMatcherEmitter.cpp \ 5 AsmWriterEmitter.cpp \ 6 AsmWriterInst.cpp \ 7 CallingConvEmitter.cpp \ 8 CodeEmitterGen.cpp \ 9 CodeGenDAGPatterns.cpp \ 10 CodeGenInstruction.cpp \ 11 CodeGenRegisters.cpp \ 12 CodeGenTarget.cpp \ 13 DAGISelEmitter.cpp \ 14 DAGISelMatcherEmitter.cpp \ 15 DAGISelMatcherGen.cpp \ 16 DAGISelMatcherOpt.cpp \ 17 DAGISelMatcher.cpp \ 18 DFAPacketizerEmitter.cpp \ 19 DisassemblerEmitter.cpp \ 20 EDEmitter.cpp \ 21 FastISelEmitter.cpp \ 22 FixedLenDecoderEmitter.cpp \ 23 InstrInfoEmitter.cpp \ 24 IntrinsicEmitter.cpp \ 25 PseudoLoweringEmitter.cpp \ 26 RegisterInfoEmitter.cpp \ 27 SetTheory.cpp \ 28 StringMatcher.cpp \ 29 SubtargetEmitter.cpp \ 30 TGValueTypes.cpp \ 31 TableGen.cpp \ 32 X86DisassemblerTables.cpp \ 33 X86ModRMFilters.cpp \ 34 X86RecognizableInstr.cpp 35 36include $(CLEAR_VARS) 37 38LOCAL_MODULE := tblgen 39LOCAL_MODULE_TAGS := optional 40LOCAL_SRC_FILES := $(tablegen_SRC_FILES) 41 42REQUIRES_EH := 1 43REQUIRES_RTTI := 1 44 45LOCAL_STATIC_LIBRARIES := \ 46 libLLVMTableGen \ 47 libLLVMSupport 48 49LOCAL_LDLIBS += -lm 50ifeq ($(HOST_OS),windows) 51 LOCAL_LDLIBS += -limagehlp -lpsapi 52else 53 LOCAL_LDLIBS += -lpthread -ldl 54endif 55 56include $(LLVM_HOST_BUILD_MK) 57include $(BUILD_HOST_EXECUTABLE) 58