1 include ..
/config-host.mak
7 TESTS
=testclone testsig testthread sha1-i386 test-i386 runcom
15 hello-i386
: hello-i386.c
16 $(CC
) -nostdlib
$(CFLAGS
) -static
$(LDFLAGS
) -o
$@
$<
19 testclone
: testclone.c
20 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$<
23 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$<
25 testthread
: testthread.c
26 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$< -lpthread
28 test_path
: test_path.c
29 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$<
30 .
/$@ ||
{ rm $@
; exit
1; }
32 # i386 emulation test (test various opcodes) */
33 test-i386
: test-i386.c test-i386-code16.S test-i386-vm86.S \
34 test-i386.h test-i386-shift.h test-i386-muldiv.h
35 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@ test-i386.c \
36 test-i386-code16.S test-i386-vm86.S
-lm
40 .
/test-i386
> test-i386.ref
44 $(QEMU
) test-i386
> test-i386.out
45 @if diff
-u test-i386.ref test-i386.out
; then echo
"Auto Test OK"; fi
49 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$<
52 $(HOST_CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$<
56 time
$(QEMU
) .
/sha1-i386
60 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$<
63 hello-arm
: hello-arm.o
66 hello-arm.o
: hello-arm.c
67 arm-linux-gcc
-Wall
-g
-O2
-c
-o
$@
$<