35 |
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ test-i386.c \ |
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ test-i386.c \ |
36 |
test-i386-code16.S test-i386-vm86.S -lm |
test-i386-code16.S test-i386-vm86.S -lm |
37 |
|
|
|
test: test-i386 |
|
38 |
ifeq ($(ARCH),i386) |
ifeq ($(ARCH),i386) |
39 |
|
test: test-i386 |
40 |
./test-i386 > test-i386.ref |
./test-i386 > test-i386.ref |
41 |
|
else |
42 |
|
test: |
43 |
endif |
endif |
44 |
$(QEMU) test-i386 > test-i386.out |
$(QEMU) test-i386 > test-i386.out |
45 |
@if diff -u test-i386.ref test-i386.out ; then echo "Auto Test OK"; fi |
@if diff -u test-i386.ref test-i386.out ; then echo "Auto Test OK"; fi |