Temporarily Revert "Nuke the old JIT." as it's not quite ready to
[oota-llvm.git] / lib / ExecutionEngine / Makefile
index b1b936d3bf0ba92e6f88b269fe17e44177efcf40..c26e0ada5bc15ef71a5d3dd9785bbcc83aae34c6 100644 (file)
@@ -1,19 +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
-TOOLLINKOPTS = -ldl
+LIBRARYNAME = LLVMExecutionEngine
 
-include $(LEVEL)/Makefile.common
+include $(LEVEL)/Makefile.config
 
-all :: $(LEVEL)/tools/Debug/RuntimeLib.bc
+PARALLEL_DIRS = Interpreter JIT MCJIT RuntimeDyld
 
-Debug/RuntimeLib.c: RuntimeLib.lc
-       cp -f $< $@
-
-Debug/RuntimeLib.o: Debug/RuntimeLib.c
-       /home/vadve/lattner/cvs/gcc_install/bin/gcc $< -c -o $@
-
-$(LEVEL)/tools/Debug/RuntimeLib.bc: Debug/RuntimeLib.o
-       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