Revision 367e86e8 tests/Makefile

b/tests/Makefile
2 2
CFLAGS=-Wall -O2 -g
3 3
LDFLAGS=
4 4

  
5
TESTS=hello test1 test2 sha1 test-i386 
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
7

  
6 8
GEMU=../gemu
7 9

  
8 10
all: $(TESTS)
......
25 27
	$(GEMU) test-i386 > test-i386.out
26 28
	@if diff -u test-i386.ref test-i386.out ; then echo "Auto Test OK"; fi
27 29

  
30
# dyngen tests
31
op-i386.o: op.c
32
	gcc $(CFLAGS) -c -o $@ $<
33

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

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

  
40
op-mips.o: op.c
41
	mips-linux-gcc $(CFLAGS) -mno-abicalls -c -o $@ $<
42

  
43
op-sparc.o: op.c
44
	sparc-linux-gcc $(CFLAGS) -mflat -c -o $@ $<
45

  
28 46
# speed test
29 47
sha1: sha1.c
30 48
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<

Also available in: Unified diff