add test.c
[qemu/mini2440/sniper_sniper_test.git] / tests / alpha / Makefile
blobe4e23d2d08aaa1c96164905be344e0340fa226be
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 check: $(TESTS)
27 for f in $(TESTS); do $(SIM) $$f || exit 1; done
29 clean:
30 $(RM) *.o *~ hello-alpha $(TESTS)
32 .PHONY: clean all check