LEVEL = ../..
TOOLNAME = lli
-USEDLIBS = opt bcreader bcwriter vmcore asmwriter analysis support \
- target transforms
+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.
+#
TOOLLINKOPTS = -ldl
include $(LEVEL)/Makefile.common
-
-all :: $(LEVEL)/tools/Debug/RuntimeLib.bc
-
-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
- ../Debug/opt -dce $< -o $@ -f -q
-
-