5 TESTS
=hello test1 test2 sha1 test-i386
6 TESTS
+=op-i386.o
#op-i386.o op-ppc.o op-arm.o op-mips.o op-sparc.o
13 $(CC
) -nostdlib
$(CFLAGS
) -static
$(LDFLAGS
) -o
$@
$<
16 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$<
19 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$<
21 # i386 emulation test (dump various opcodes) */
22 test-i386
: test-i386.c test-i386.h test-i386-shift.h test-i386-muldiv.h
23 $(CC
) $(CFLAGS
) $(LDFLAGS
) -static
-o
$@
$<
26 .
/test-i386
> test-i386.ref
27 $(GEMU
) test-i386
> test-i386.out
28 @if diff
-u test-i386.ref test-i386.out
; then echo
"Auto Test OK"; fi
32 gcc
$(CFLAGS
) -c
-o
$@
$<
35 powerpc-linux-gcc
$(CFLAGS
) -c
-o
$@
$<
38 arm-linux-gcc
$(CFLAGS
) -c
-o
$@
$<
41 mips-linux-gcc
$(CFLAGS
) -mno-abicalls
-c
-o
$@
$<
44 sparc-linux-gcc
$(CFLAGS
) -mflat
-c
-o
$@
$<
48 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$<
55 interp
: interp.c interploop.c
56 $(CC
) $(CFLAGS
) -fomit-frame-pointer
$(LDFLAGS
) -o
$@
$^