diff --git a/tests/Makefile b/tests/Makefile
index 6a55d20d76..5f6479e204 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -30,9 +30,10 @@ test_path: test_path.c
 	./$@ || { rm $@; exit 1; }
 
 # i386 emulation test (test various opcodes) */
-test-i386: test-i386.c test-i386-code16.S \
+test-i386: test-i386.c test-i386-code16.S test-i386-vm86.S \
            test-i386.h test-i386-shift.h test-i386-muldiv.h
-	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ test-i386.c test-i386-code16.S -lm
+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ test-i386.c \
+              test-i386-code16.S test-i386-vm86.S -lm
 
 test: test-i386
 ifeq ($(ARCH),i386)