summaryrefslogtreecommitdiff
path: root/lib/Target/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/Makefile')
-rw-r--r--lib/Target/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/Target/Makefile b/lib/Target/Makefile
index 5b69f49b2e..ae70488a4d 100644
--- a/lib/Target/Makefile
+++ b/lib/Target/Makefile
@@ -7,8 +7,14 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
-PARALLEL_DIRS = CBackend X86 SparcV8 SparcV9 PowerPC Alpha IA64 Skeleton
LIBRARYNAME = LLVMTarget
BUILD_ARCHIVE = 1
-include $(LEVEL)/Makefile.common
+# We include this early so we can access the value of TARGETS_TO_BUILD as the
+# value for PARALLEL_DIRS which must be set before Makefile.rules is included
+include $(LEVEL)/Makefile.config
+
+PARALLEL_DIRS := $(TARGETS_TO_BUILD)
+
+include $(LLVM_SRC_ROOT)/Makefile.rules
+