diff --git a/test/Analysis/LoopInfo/Makefile b/test/Analysis/LoopInfo/Makefile
new file mode 100644
index 00000000000..91acd4d481b
--- /dev/null
+++ b/test/Analysis/LoopInfo/Makefile
@@ -0,0 +1,10 @@
+
+LEVEL = ../../../..
+include $(LEVEL)/test/Makefile.tests
+
+TESTS := $(wildcard *.ll)
+
+all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
+
+Output/%.ll.out: %.ll Output/.dir $(LOPT)
+	-$(TESTRUNR) $<