]> git.proxmox.com Git - qemu.git/blob - tests/alpha/Makefile
alpha: improve testsuite
[qemu.git] / tests / 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 check: $(TESTS)
27 for f in $(TESTS); do $(SIM) $$f || exit 1; done
28
29 clean:
30 $(RM) *.o *~ hello-alpha $(TESTS)
31
32 .PHONY: clean all check