Add qemu 2.4.0
[kvmfornfv.git] / qemu / tests / tcg / alpha / Makefile
1 CROSS=alpha-linux-gnu-
2 CC=$(CROSS)gcc
3 AS=$(CROSS)as
4
5 SIM=../../alpha-linux-user/qemu-alpha
6
7 CFLAGS=-O
8 LINK=$(CC) -o $@ crt.o $< -nostdlib
9
10 TESTS=test-cond test-cmov
11
12 all: hello-alpha $(TESTS)
13
14 hello-alpha: hello-alpha.o crt.o
15         $(LINK)
16
17 test-cond: test-cond.o crt.o
18         $(LINK)
19
20 test-cmov.o: test-cond.c
21         $(CC) -c $(CFLAGS) -DTEST_CMOV -o $@ $<
22
23 test-cmov: test-cmov.o crt.o
24         $(LINK)
25
26 test-ovf: test-ovf.o crt.o
27         $(LINK)
28
29 check: $(TESTS)
30         for f in $(TESTS); do $(SIM) $$f || exit 1; done
31
32 clean:
33         $(RM) *.o *~ hello-alpha $(TESTS)
34
35 .PHONY: clean all check