Revision 7d13299d tests/Makefile

b/tests/Makefile
1
CC=gcc
1
include ../config.mak
2

  
2 3
CFLAGS=-Wall -O2 -g
3 4
LDFLAGS=
4 5

  
6
ifeq ($(ARCH),i386)
5 7
TESTS=hello test2 sha1 test-i386
6
TESTS+=op-i386.o #op-i386.o op-ppc.o op-arm.o op-mips.o op-sparc.o
8
endif
7 9

  
8 10
GEMU=../gemu
9 11

  
......
24 26
	$(GEMU) test-i386 > test-i386.out
25 27
	@if diff -u test-i386.ref test-i386.out ; then echo "Auto Test OK"; fi
26 28

  
27
# dyngen tests
28
op-i386.o: op.c
29
	gcc $(CFLAGS) -c -o $@ $<
30

  
31
op-ppc.o: op.c
32
	powerpc-linux-gcc $(CFLAGS) -c -o $@ $<
33

  
34
op-arm.o: op.c
35
	arm-linux-gcc $(CFLAGS) -c -o $@ $<
36

  
37
op-mips.o: op.c
38
	mips-linux-gcc $(CFLAGS) -mno-abicalls -c -o $@ $<
39

  
40
op-sparc.o: op.c
41
	sparc-linux-gcc $(CFLAGS) -mflat -c -o $@ $<
42

  
43 29
# speed test
44 30
sha1: sha1.c
45 31
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
......
48 34
	time ./sha1
49 35
	time $(GEMU) sha1
50 36

  
51
# interpreter test
52
interp: interp.c interploop.c
53
	$(CC) $(CFLAGS) -fomit-frame-pointer $(LDFLAGS) -o $@ $^
37
clean:
38
	rm -f *~ *.o $(TESTS)

Also available in: Unified diff