+##===- 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
+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