summaryrefslogtreecommitdiff
path: root/lib/Target
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2011-02-20 02:55:27 +0000
committerOscar Fuentes <ofv@wanadoo.es>2011-02-20 02:55:27 +0000
commit00d78f1348a5980a276bed8f9be09ce2412a6a12 (patch)
tree81597ac6d857f5ef9bb97a2341b7cfcb0dc68318 /lib/Target
parent7ac0199287f7ebfdb4c609b0d3fd5d7fb41d1ce8 (diff)
downloadllvm-00d78f1348a5980a276bed8f9be09ce2412a6a12.tar.gz
llvm-00d78f1348a5980a276bed8f9be09ce2412a6a12.tar.bz2
llvm-00d78f1348a5980a276bed8f9be09ce2412a6a12.tar.xz
Use explicit add_subdirectory's for LLVM target sublibraries instead
of testing for its presence at cmake time. This way the build automatically regenerates the makefiles when a svn update brings in a new sublibrary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126068 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/ARM/CMakeLists.txt5
-rw-r--r--lib/Target/Alpha/CMakeLists.txt2
-rw-r--r--lib/Target/Blackfin/CMakeLists.txt2
-rw-r--r--lib/Target/CBackend/CMakeLists.txt2
-rw-r--r--lib/Target/CMakeLists.txt10
-rw-r--r--lib/Target/CellSPU/CMakeLists.txt2
-rw-r--r--lib/Target/CppBackend/CMakeLists.txt2
-rw-r--r--lib/Target/MBlaze/CMakeLists.txt5
-rw-r--r--lib/Target/MSP430/CMakeLists.txt3
-rw-r--r--lib/Target/Mips/CMakeLists.txt2
-rw-r--r--lib/Target/PTX/CMakeLists.txt2
-rw-r--r--lib/Target/PowerPC/CMakeLists.txt3
-rw-r--r--lib/Target/Sparc/CMakeLists.txt2
-rw-r--r--lib/Target/SystemZ/CMakeLists.txt2
-rw-r--r--lib/Target/X86/CMakeLists.txt5
-rw-r--r--lib/Target/XCore/CMakeLists.txt2
16 files changed, 41 insertions, 10 deletions
diff --git a/lib/Target/ARM/CMakeLists.txt b/lib/Target/ARM/CMakeLists.txt
index 38741eb26f..d3b8b54e76 100644
--- a/lib/Target/ARM/CMakeLists.txt
+++ b/lib/Target/ARM/CMakeLists.txt
@@ -62,3 +62,8 @@ set_property(
PROPERTY COMPILE_FLAGS "/Od"
)
endif()
+
+add_subdirectory(TargetInfo)
+add_subdirectory(AsmParser)
+add_subdirectory(Disassembler)
+add_subdirectory(InstPrinter)
diff --git a/lib/Target/Alpha/CMakeLists.txt b/lib/Target/Alpha/CMakeLists.txt
index c8bd866619..454262ad63 100644
--- a/lib/Target/Alpha/CMakeLists.txt
+++ b/lib/Target/Alpha/CMakeLists.txt
@@ -24,3 +24,5 @@ add_llvm_target(AlphaCodeGen
AlphaTargetMachine.cpp
AlphaSelectionDAGInfo.cpp
)
+
+add_subdirectory(TargetInfo)
diff --git a/lib/Target/Blackfin/CMakeLists.txt b/lib/Target/Blackfin/CMakeLists.txt
index f19b666f49..a47299ff16 100644
--- a/lib/Target/Blackfin/CMakeLists.txt
+++ b/lib/Target/Blackfin/CMakeLists.txt
@@ -24,3 +24,5 @@ add_llvm_target(BlackfinCodeGen
BlackfinTargetMachine.cpp
BlackfinSelectionDAGInfo.cpp
)
+
+add_subdirectory(TargetInfo)
diff --git a/lib/Target/CBackend/CMakeLists.txt b/lib/Target/CBackend/CMakeLists.txt
index be243366d5..a23ff85297 100644
--- a/lib/Target/CBackend/CMakeLists.txt
+++ b/lib/Target/CBackend/CMakeLists.txt
@@ -1,3 +1,5 @@
add_llvm_target(CBackend
CBackend.cpp
)
+
+add_subdirectory(TargetInfo)
diff --git a/lib/Target/CMakeLists.txt b/lib/Target/CMakeLists.txt
index fe9a126495..09b48ce632 100644
--- a/lib/Target/CMakeLists.txt
+++ b/lib/Target/CMakeLists.txt
@@ -22,30 +22,20 @@ set(LLVM_ENUM_DISASSEMBLERS "")
foreach(t ${LLVM_TARGETS_TO_BUILD})
message(STATUS "Targeting ${t}")
add_subdirectory(${t})
- add_subdirectory(${t}/TargetInfo)
set( td ${LLVM_MAIN_SRC_DIR}/lib/Target/${t} )
file(GLOB asmp_file "${td}/*AsmPrinter.cpp")
if( asmp_file )
set(LLVM_ENUM_ASM_PRINTERS
"${LLVM_ENUM_ASM_PRINTERS}LLVM_ASM_PRINTER(${t})\n")
endif()
- if( EXISTS ${td}/InstPrinter/CMakeLists.txt )
- add_subdirectory(${t}/InstPrinter)
- endif()
if( EXISTS ${td}/AsmParser/CMakeLists.txt )
- add_subdirectory(${t}/AsmParser)
set(LLVM_ENUM_ASM_PARSERS
"${LLVM_ENUM_ASM_PARSERS}LLVM_ASM_PARSER(${t})\n")
endif()
if( EXISTS ${td}/Disassembler/CMakeLists.txt )
- add_subdirectory(${t}/Disassembler)
set(LLVM_ENUM_DISASSEMBLERS
"${LLVM_ENUM_DISASSEMBLERS}LLVM_DISASSEMBLER(${t})\n")
endif()
- if( EXISTS ${td}/Utils/CMakeLists.txt )
- add_subdirectory(${td}/Utils)
- endif()
- set(CURRENT_LLVM_TARGET)
endforeach(t)
# Produce llvm/Config/AsmPrinters.def
diff --git a/lib/Target/CellSPU/CMakeLists.txt b/lib/Target/CellSPU/CMakeLists.txt
index 633bdf65fd..a2a2ef1aa9 100644
--- a/lib/Target/CellSPU/CMakeLists.txt
+++ b/lib/Target/CellSPU/CMakeLists.txt
@@ -25,3 +25,5 @@ add_llvm_target(CellSPUCodeGen
SPUSelectionDAGInfo.cpp
SPUNopFiller.cpp
)
+
+add_subdirectory(TargetInfo)
diff --git a/lib/Target/CppBackend/CMakeLists.txt b/lib/Target/CppBackend/CMakeLists.txt
index f8182b80c9..e937559951 100644
--- a/lib/Target/CppBackend/CMakeLists.txt
+++ b/lib/Target/CppBackend/CMakeLists.txt
@@ -1,3 +1,5 @@
add_llvm_target(CppBackend
CPPBackend.cpp
)
+
+add_subdirectory(TargetInfo)
diff --git a/lib/Target/MBlaze/CMakeLists.txt b/lib/Target/MBlaze/CMakeLists.txt
index e95fb5479e..004057ad4a 100644
--- a/lib/Target/MBlaze/CMakeLists.txt
+++ b/lib/Target/MBlaze/CMakeLists.txt
@@ -33,3 +33,8 @@ add_llvm_target(MBlazeCodeGen
MBlazeELFWriterInfo.cpp
MBlazeMCCodeEmitter.cpp
)
+
+add_subdirectory(AsmParser)
+add_subdirectory(Disassembler)
+add_subdirectory(InstPrinter)
+add_subdirectory(TargetInfo)
diff --git a/lib/Target/MSP430/CMakeLists.txt b/lib/Target/MSP430/CMakeLists.txt
index 38886007b5..2c7cbb6441 100644
--- a/lib/Target/MSP430/CMakeLists.txt
+++ b/lib/Target/MSP430/CMakeLists.txt
@@ -24,3 +24,6 @@ add_llvm_target(MSP430CodeGen
MSP430AsmPrinter.cpp
MSP430MCInstLower.cpp
)
+
+add_subdirectory(InstPrinter)
+add_subdirectory(TargetInfo)
diff --git a/lib/Target/Mips/CMakeLists.txt b/lib/Target/Mips/CMakeLists.txt
index 53a5280a9d..26df1a0529 100644
--- a/lib/Target/Mips/CMakeLists.txt
+++ b/lib/Target/Mips/CMakeLists.txt
@@ -24,3 +24,5 @@ add_llvm_target(MipsCodeGen
MipsTargetObjectFile.cpp
MipsSelectionDAGInfo.cpp
)
+
+add_subdirectory(TargetInfo)
diff --git a/lib/Target/PTX/CMakeLists.txt b/lib/Target/PTX/CMakeLists.txt
index b7d964e924..331266da30 100644
--- a/lib/Target/PTX/CMakeLists.txt
+++ b/lib/Target/PTX/CMakeLists.txt
@@ -22,3 +22,5 @@ add_llvm_target(PTXCodeGen
PTXSubtarget.cpp
PTXTargetMachine.cpp
)
+
+add_subdirectory(TargetInfo)
diff --git a/lib/Target/PowerPC/CMakeLists.txt b/lib/Target/PowerPC/CMakeLists.txt
index 104d7692f1..f28257999d 100644
--- a/lib/Target/PowerPC/CMakeLists.txt
+++ b/lib/Target/PowerPC/CMakeLists.txt
@@ -32,3 +32,6 @@ add_llvm_target(PowerPCCodeGen
PPCTargetMachine.cpp
PPCSelectionDAGInfo.cpp
)
+
+add_subdirectory(InstPrinter)
+add_subdirectory(TargetInfo)
diff --git a/lib/Target/Sparc/CMakeLists.txt b/lib/Target/Sparc/CMakeLists.txt
index 3739298da3..6839234a47 100644
--- a/lib/Target/Sparc/CMakeLists.txt
+++ b/lib/Target/Sparc/CMakeLists.txt
@@ -24,3 +24,5 @@ add_llvm_target(SparcCodeGen
SparcTargetMachine.cpp
SparcSelectionDAGInfo.cpp
)
+
+add_subdirectory(TargetInfo)
diff --git a/lib/Target/SystemZ/CMakeLists.txt b/lib/Target/SystemZ/CMakeLists.txt
index cf02931cdf..1f5d3552ae 100644
--- a/lib/Target/SystemZ/CMakeLists.txt
+++ b/lib/Target/SystemZ/CMakeLists.txt
@@ -22,3 +22,5 @@ add_llvm_target(SystemZCodeGen
SystemZTargetMachine.cpp
SystemZSelectionDAGInfo.cpp
)
+
+add_subdirectory(TargetInfo)
diff --git a/lib/Target/X86/CMakeLists.txt b/lib/Target/X86/CMakeLists.txt
index b710040295..b5fa94f12b 100644
--- a/lib/Target/X86/CMakeLists.txt
+++ b/lib/Target/X86/CMakeLists.txt
@@ -57,3 +57,8 @@ endif()
add_llvm_target(X86CodeGen ${sources})
+add_subdirectory(AsmParser)
+add_subdirectory(Disassembler)
+add_subdirectory(InstPrinter)
+add_subdirectory(TargetInfo)
+add_subdirectory(Utils)
diff --git a/lib/Target/XCore/CMakeLists.txt b/lib/Target/XCore/CMakeLists.txt
index 5045962288..9093de6915 100644
--- a/lib/Target/XCore/CMakeLists.txt
+++ b/lib/Target/XCore/CMakeLists.txt
@@ -23,3 +23,5 @@ add_llvm_target(XCoreCodeGen
XCoreTargetObjectFile.cpp
XCoreSelectionDAGInfo.cpp
)
+
+add_subdirectory(TargetInfo)