Build system infrastructure for multiple tblgens.
[oota-llvm.git] / lib / Target / SystemZ / CMakeLists.txt
1 set(LLVM_TARGET_DEFINITIONS SystemZ.td)
2
3 llvm_tablegen(SystemZGenRegisterInfo.inc -gen-register-info)
4 llvm_tablegen(SystemZGenInstrInfo.inc -gen-instr-info)
5 llvm_tablegen(SystemZGenAsmWriter.inc -gen-asm-writer)
6 llvm_tablegen(SystemZGenDAGISel.inc -gen-dag-isel)
7 llvm_tablegen(SystemZGenCallingConv.inc -gen-callingconv)
8 llvm_tablegen(SystemZGenSubtargetInfo.inc -gen-subtarget)
9 add_public_tablegen_target(SystemZCommonTableGen)
10
11 add_llvm_target(SystemZCodeGen
12   SystemZAsmPrinter.cpp
13   SystemZISelDAGToDAG.cpp
14   SystemZISelLowering.cpp
15   SystemZInstrInfo.cpp
16   SystemZFrameLowering.cpp
17   SystemZRegisterInfo.cpp
18   SystemZSubtarget.cpp
19   SystemZTargetMachine.cpp
20   SystemZSelectionDAGInfo.cpp
21   )
22
23 add_llvm_library_dependencies(LLVMSystemZCodeGen
24   LLVMAsmPrinter
25   LLVMCodeGen
26   LLVMCore
27   LLVMMC
28   LLVMSelectionDAG
29   LLVMSupport
30   LLVMSystemZDesc
31   LLVMSystemZInfo
32   LLVMTarget
33   )
34
35 add_subdirectory(TargetInfo)
36 add_subdirectory(MCTargetDesc)