module support to build).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74456
91177308-0d34-0410-b5e6-
96231b3b80d8
##===----------------------------------------------------------------------===##
LEVEL = ..
-PARALLEL_DIRS = VMCore AsmParser Bitcode Archive Analysis Transforms CodeGen \
- Target ExecutionEngine Debugger Linker CompilerDriver MC
+include $(LEVEL)/Makefile.config
+
+PARALLEL_DIRS := VMCore AsmParser Bitcode Archive Analysis Transforms CodeGen \
+ Target ExecutionEngine Debugger Linker MC
+
+# Only build the CompilerDriver when PIC is enabled.
+
+ifeq ($(ENABLE_PIC),1)
+PARALLEL_DIRS += CompilerDriver
+endif
include $(LEVEL)/Makefile.common
llc llvm-ranlib llvm-ar llvm-nm \
llvm-ld llvm-prof llvm-link \
lli gccas gccld llvm-extract llvm-db \
- bugpoint llvm-bcanalyzer llvm-stub llvmc \
+ bugpoint llvm-bcanalyzer llvm-stub \
llvm-mc
# Let users override the set of tools to build from the command line.
include $(LEVEL)/Makefile.config
ifeq ($(ENABLE_PIC),1)
- DIRS += lto
+ DIRS += lto llvmc
ifdef BINUTILS_INCDIR
DIRS += gold
endif