Merge branch 'for-anthony' of git://repo.or.cz/qemu/kevin
[qemu.git] / tests / alpha / Makefile
blob2b1f03d048a29196177eb7c5038872d5be81b36d
1 CROSS=alpha-linux-gnu-
2 CC=$(CROSS)gcc
3 AS=$(CROSS)as
5 SIM=../../alpha-linux-user/qemu-alpha
7 CFLAGS=-O
8 LINK=$(CC) -o $@ crt.o $< -nostdlib
10 TESTS=test-cond test-cmov
12 all: hello-alpha $(TESTS)
14 hello-alpha: hello-alpha.o crt.o
15 $(LINK)
17 test-cond: test-cond.o crt.o
18 $(LINK)
20 test-cmov.o: test-cond.c
21 $(CC) -c $(CFLAGS) -DTEST_CMOV -o $@ $<
23 test-cmov: test-cmov.o crt.o
24 $(LINK)
26 test-ovf: test-ovf.o crt.o
27 $(LINK)
29 check: $(TESTS)
30 for f in $(TESTS); do $(SIM) $$f || exit 1; done
32 clean:
33 $(RM) *.o *~ hello-alpha $(TESTS)
35 .PHONY: clean all check