]> Git Repo - qemu.git/blame - tests/Makefile
new x86 CPU core
[qemu.git] / tests / Makefile
CommitLineData
4d1135e4
FB
1CC=gcc
2CFLAGS=-Wall -O2 -g
3LDFLAGS=
4
367e86e8
FB
5TESTS=hello test1 test2 sha1 test-i386
6TESTS+=op-i386.o #op-i386.o op-ppc.o op-arm.o op-mips.o op-sparc.o
7
4d1135e4
FB
8GEMU=../gemu
9
10all: $(TESTS)
11
12hello: hello.c
13 $(CC) -nostdlib $(CFLAGS) -static $(LDFLAGS) -o $@ $<
14
15test1: test1.c
16 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
17
18test2: test2.c
19 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
20
21# i386 emulation test (dump various opcodes) */
379ca80d 22test-i386: test-i386.c test-i386.h test-i386-shift.h
4d1135e4
FB
23 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
24
25test: test-i386
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
29
367e86e8
FB
30# dyngen tests
31op-i386.o: op.c
32 gcc $(CFLAGS) -c -o $@ $<
33
34op-ppc.o: op.c
35 powerpc-linux-gcc $(CFLAGS) -c -o $@ $<
36
37op-arm.o: op.c
38 arm-linux-gcc $(CFLAGS) -c -o $@ $<
39
40op-mips.o: op.c
41 mips-linux-gcc $(CFLAGS) -mno-abicalls -c -o $@ $<
42
43op-sparc.o: op.c
44 sparc-linux-gcc $(CFLAGS) -mflat -c -o $@ $<
45
4d1135e4
FB
46# speed test
47sha1: sha1.c
48 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
49
50speed: sha1
51 time ./sha1
52 time $(GEMU) sha1
53
54# interpreter test
55interp: interp.c interploop.c
56 $(CC) $(CFLAGS) -fomit-frame-pointer $(LDFLAGS) -o $@ $^
This page took 0.027309 seconds and 4 git commands to generate.