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