-LEVEL = ../..
-TOOLNAME = lli
-USEDLIBS = opt bcreader bcwriter vmcore asmwriter analysis support target
-TOOLLINKOPTS = -ldl
+##===- tools/lli/Makefile ------------------------------*- Makefile -*-===##
+#
+# The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
-include $(LEVEL)/Makefile.common
+LEVEL := ../..
+TOOLNAME := lli
+LINK_COMPONENTS := jit interpreter nativecodegen bitreader selectiondag
+# Enable JIT support
+include $(LEVEL)/Makefile.common