7 TESTS
=testclone testsig testthread sha1-i386 test-i386
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 # i386 emulation test (test various opcodes) */
29 test-i386
: test-i386.c test-i386-code16.S \
30 test-i386.h test-i386-shift.h test-i386-muldiv.h
31 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@ test-i386.c test-i386-code16.S
-lm
35 .
/test-i386
> test-i386.ref
37 $(QEMU
) test-i386
> test-i386.out
38 @if diff
-u test-i386.ref test-i386.out
; then echo
"Auto Test OK"; fi
42 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$<
45 $(HOST_CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$<
49 time
$(QEMU
) .
/sha1-i386