1 include ..
/config-host.mak
7 TESTS
=linux-test testthread sha1-i386 test-i386 runcom
12 QEMU
=..
/i386-user
/qemu-i386
16 hello-i386
: hello-i386.c
17 $(CC
) -nostdlib
$(CFLAGS
) -static
$(LDFLAGS
) -o
$@
$<
20 testthread
: testthread.c
21 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$< -lpthread
23 test_path
: test_path.c
24 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$<
25 .
/$@ ||
{ rm $@
; exit
1; }
27 # i386 emulation test (test various opcodes) */
28 test-i386
: test-i386.c test-i386-code16.S test-i386-vm86.S \
29 test-i386.h test-i386-shift.h test-i386-muldiv.h
30 $(CC
) $(CFLAGS
) $(LDFLAGS
) -static
-o
$@ test-i386.c \
31 test-i386-code16.S test-i386-vm86.S
-lm
35 .
/test-i386
> test-i386.ref
39 $(QEMU
) test-i386
> test-i386.out
40 @if diff
-u test-i386.ref test-i386.out
; then echo
"Auto Test OK"; fi
42 # generic Linux and CPU test
43 linux-test
: linux-test.c
44 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$< -lm
48 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$<
51 $(HOST_CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$<
55 time
$(QEMU
) .
/sha1-i386
59 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$<
62 hello-arm
: hello-arm.o
65 hello-arm.o
: hello-arm.c
66 arm-linux-gcc
-Wall
-g
-O2
-c
-o
$@
$<