Convert getSymbolSection to return an ErrorOr.
[oota-llvm.git] / lib / ExecutionEngine / Makefile
index bf4483f5b4d4445c2fc40c8d61442d241f63ebbe..e9a5b79ddf62d49dfbbf36c6a4f8aedb0cd906a0 100644 (file)
@@ -1,11 +1,24 @@
+##===- lib/ExecutionEngine/Makefile ------------------------*- Makefile -*-===##
+#
+#                     The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
 LEVEL = ../..
-include $(LEVEL)/Makefile.common
+LIBRARYNAME = LLVMExecutionEngine
 
-all:: lli
-clean::        
-       rm -f lli
+include $(LEVEL)/Makefile.config
 
-lli : $(ObjectsG)
-       $(LinkG) -o $@ $(ObjectsG) \
-               -lopt -lbcreader -lbcwriter \
-               -lvmcore -lasmwriter -lanalysis -lsupport -ltarget
+PARALLEL_DIRS = Interpreter MCJIT Orc RuntimeDyld
+
+ifeq ($(USE_INTEL_JITEVENTS), 1)
+PARALLEL_DIRS += IntelJITEvents
+endif
+
+ifeq ($(USE_OPROFILE), 1)
+PARALLEL_DIRS += OProfileJIT
+endif
+
+include $(LLVM_SRC_ROOT)/Makefile.rules