-LEVEL = ../..
-TOOLNAME = lli
-USEDLIBS = bcreader vmcore analysis.a support.a target.a transforms.a
-
-# Have gcc tell the linker to export symbols from the program so that
-# dynamically loaded modules can be linked against them.
+##===- tools/lli/Makefile ------------------------------*- Makefile -*-===##
+#
+# The LLVM Compiler Infrastructure
#
-TOOLLINKOPTS = -ldl
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
+
+LEVEL := ../..
+TOOLNAME := lli
+LINK_COMPONENTS := mcjit jit interpreter nativecodegen bitreader asmparser selectiondag
+# Enable JIT support
include $(LEVEL)/Makefile.common