[SectionMemoryManager] Use range-based for loops. No functional change intended.
[oota-llvm.git] / lib / ExecutionEngine / Makefile
index 0fdcf8b5ddb89c4f112b711b6e45aca4ed86e1a1..e9a5b79ddf62d49dfbbf36c6a4f8aedb0cd906a0 100644 (file)
@@ -1,21 +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 = ../..
-TOOLNAME = lli
-USEDLIBS = opt bcreader bcwriter vmcore asmwriter analysis support \
-          target transforms
-TOOLLINKOPTS = -ldl
+LIBRARYNAME = LLVMExecutionEngine
 
-include $(LEVEL)/Makefile.common
+include $(LEVEL)/Makefile.config
 
-all :: $(LEVEL)/tools/Debug/RuntimeLib.bc
+PARALLEL_DIRS = Interpreter MCJIT Orc RuntimeDyld
 
-Debug/RuntimeLib.c: RuntimeLib.lc
-       cp -f $< $@
-
-Debug/RuntimeLib.o: Debug/RuntimeLib.c
-       @-rm $@
-       /home/vadve/lattner/cvs/gcc_install/bin/gcc $< -c -o $@
-
-$(LEVEL)/tools/Debug/RuntimeLib.bc: Debug/RuntimeLib.o
-       ../Debug/opt -dce $< -o $@ -f -q
+ifeq ($(USE_INTEL_JITEVENTS), 1)
+PARALLEL_DIRS += IntelJITEvents
+endif
 
+ifeq ($(USE_OPROFILE), 1)
+PARALLEL_DIRS += OProfileJIT
+endif
 
+include $(LLVM_SRC_ROOT)/Makefile.rules