Statistics
| Branch: | Revision:

root / tests / tcg / cris / Makefile @ c09015dd

History | View | Annotate | Download (4 kB)

1 dd43edf4 ths
-include ../../config-host.mak
2 dd43edf4 ths
3 dd43edf4 ths
CROSS=crisv32-axis-linux-gnu-
4 dd43edf4 ths
SIM=../../cris-linux-user/qemu-cris -L ./
5 dd43edf4 ths
SIMG=cris-axis-linux-gnu-run --sysroot=./
6 dd43edf4 ths
7 dd43edf4 ths
CC      = $(CROSS)gcc
8 dd43edf4 ths
#AS      = $(CROSS)as
9 dd43edf4 ths
AS	= $(CC) -x assembler-with-cpp
10 dd43edf4 ths
SIZE    = $(CROSS)size
11 dd43edf4 ths
LD      = $(CC)
12 dd43edf4 ths
OBJCOPY = $(CROSS)objcopy
13 dd43edf4 ths
14 dd43edf4 ths
# we rely on GCC inline:ing the stuff we tell it to in many places here.
15 dd43edf4 ths
CFLAGS  = -Winline -Wall -g -O2 -static
16 dd43edf4 ths
NOSTDFLAGS = -nostartfiles -nostdlib
17 dd43edf4 ths
ASFLAGS += -g -Wa,-I,$(SRC_PATH)/tests/cris/
18 dd43edf4 ths
LDLIBS  =
19 dd43edf4 ths
NOSTDLIBS = -lgcc
20 dd43edf4 ths
21 dd43edf4 ths
CRT        = crt.o
22 dd43edf4 ths
SYS        = sys.o
23 dd43edf4 ths
TESTCASES += check_abs.tst
24 dd43edf4 ths
TESTCASES += check_addc.tst
25 dd43edf4 ths
TESTCASES += check_addcm.tst
26 dd43edf4 ths
TESTCASES += check_addo.tst
27 dd43edf4 ths
TESTCASES += check_addoq.tst
28 dd43edf4 ths
TESTCASES += check_addi.tst
29 dd43edf4 ths
TESTCASES += check_addiv32.tst
30 dd43edf4 ths
TESTCASES += check_addm.tst
31 dd43edf4 ths
TESTCASES += check_addr.tst
32 dd43edf4 ths
TESTCASES += check_addq.tst
33 dd43edf4 ths
TESTCASES += check_addxc.tst
34 dd43edf4 ths
TESTCASES += check_addxm.tst
35 dd43edf4 ths
TESTCASES += check_addxr.tst
36 dd43edf4 ths
TESTCASES += check_andc.tst
37 dd43edf4 ths
TESTCASES += check_andm.tst
38 dd43edf4 ths
TESTCASES += check_andr.tst
39 dd43edf4 ths
TESTCASES += check_andq.tst
40 dd43edf4 ths
TESTCASES += check_asr.tst
41 dd43edf4 ths
TESTCASES += check_ba.tst
42 dd43edf4 ths
TESTCASES += check_bas.tst
43 dd43edf4 ths
TESTCASES += check_bcc.tst
44 dd43edf4 ths
TESTCASES += check_bound.tst
45 dd43edf4 ths
TESTCASES += check_boundc.tst
46 dd43edf4 ths
TESTCASES += check_boundr.tst
47 dd43edf4 ths
TESTCASES += check_btst.tst
48 dd43edf4 ths
TESTCASES += check_clearfv32.tst
49 dd43edf4 ths
TESTCASES += check_cmpc.tst
50 dd43edf4 ths
TESTCASES += check_cmpr.tst
51 dd43edf4 ths
TESTCASES += check_cmpq.tst
52 dd43edf4 ths
TESTCASES += check_cmpm.tst
53 dd43edf4 ths
TESTCASES += check_cmpxc.tst
54 dd43edf4 ths
TESTCASES += check_cmpxm.tst
55 dd43edf4 ths
TESTCASES += check_cmp-2.tst
56 dd43edf4 ths
TESTCASES += check_clrjmp1.tst
57 dd43edf4 ths
TESTCASES += check_dstep.tst
58 1b893ef3 edgar_igl
TESTCASES += check_ftag.tst
59 dd43edf4 ths
TESTCASES += check_int64.tst
60 dd43edf4 ths
# check_jsr is broken.
61 dd43edf4 ths
#TESTCASES += check_jsr.tst
62 dd43edf4 ths
TESTCASES += check_mcp.tst
63 dd43edf4 ths
TESTCASES += check_movei.tst
64 dd43edf4 ths
TESTCASES += check_mover.tst
65 dd43edf4 ths
TESTCASES += check_moverm.tst
66 dd43edf4 ths
TESTCASES += check_moveq.tst
67 dd43edf4 ths
TESTCASES += check_movemr.tst
68 dd43edf4 ths
TESTCASES += check_movemrv32.tst
69 dd43edf4 ths
TESTCASES += check_movecr.tst
70 dd43edf4 ths
TESTCASES += check_movmp.tst
71 dd43edf4 ths
TESTCASES += check_movpr.tst
72 dd43edf4 ths
TESTCASES += check_movprv32.tst
73 dd43edf4 ths
TESTCASES += check_movdelsr1.tst
74 dd43edf4 ths
TESTCASES += check_movpmv32.tst
75 dd43edf4 ths
TESTCASES += check_movsr.tst
76 dd43edf4 ths
TESTCASES += check_movsm.tst
77 dd43edf4 ths
TESTCASES += check_movscr.tst
78 dd43edf4 ths
TESTCASES += check_movur.tst
79 dd43edf4 ths
TESTCASES += check_movum.tst
80 dd43edf4 ths
TESTCASES += check_movucr.tst
81 dd43edf4 ths
TESTCASES += check_mulx.tst
82 dd43edf4 ths
TESTCASES += check_mulv32.tst
83 dd43edf4 ths
TESTCASES += check_neg.tst
84 dd43edf4 ths
TESTCASES += check_not.tst
85 dd43edf4 ths
TESTCASES += check_lz.tst
86 dd43edf4 ths
TESTCASES += check_lapc.tst
87 dd43edf4 ths
TESTCASES += check_lsl.tst
88 dd43edf4 ths
TESTCASES += check_lsr.tst
89 dd43edf4 ths
TESTCASES += check_orc.tst
90 dd43edf4 ths
TESTCASES += check_orm.tst
91 dd43edf4 ths
TESTCASES += check_orr.tst
92 dd43edf4 ths
TESTCASES += check_orq.tst
93 dd43edf4 ths
TESTCASES += check_ret.tst
94 dd43edf4 ths
TESTCASES += check_swap.tst
95 dd43edf4 ths
TESTCASES += check_scc.tst
96 dd43edf4 ths
TESTCASES += check_subc.tst
97 dd43edf4 ths
TESTCASES += check_subq.tst
98 dd43edf4 ths
TESTCASES += check_subr.tst
99 dd43edf4 ths
TESTCASES += check_subm.tst
100 dd43edf4 ths
TESTCASES += check_glibc_kernelversion.tst
101 dd43edf4 ths
TESTCASES += check_xarith.tst
102 dd43edf4 ths
103 dd43edf4 ths
TESTCASES += check_hello.ctst
104 dd43edf4 ths
TESTCASES += check_stat1.ctst
105 dd43edf4 ths
TESTCASES += check_stat2.ctst
106 dd43edf4 ths
TESTCASES += check_stat3.ctst
107 dd43edf4 ths
TESTCASES += check_stat4.ctst
108 dd43edf4 ths
TESTCASES += check_openpf1.ctst
109 dd43edf4 ths
TESTCASES += check_openpf2.ctst
110 dd43edf4 ths
TESTCASES += check_openpf3.ctst
111 dd43edf4 ths
TESTCASES += check_openpf4.ctst
112 dd43edf4 ths
TESTCASES += check_openpf5.ctst
113 dd43edf4 ths
TESTCASES += check_mapbrk.ctst
114 dd43edf4 ths
TESTCASES += check_mmap1.ctst
115 dd43edf4 ths
TESTCASES += check_mmap2.ctst
116 dd43edf4 ths
TESTCASES += check_mmap3.ctst
117 cbdbb771 edgar_igl
TESTCASES += check_sigalrm.ctst
118 dd43edf4 ths
TESTCASES += check_time1.ctst
119 dd43edf4 ths
TESTCASES += check_time2.ctst
120 ef96779b edgar_igl
TESTCASES += check_settls1.ctst
121 dd43edf4 ths
122 dd43edf4 ths
TESTCASES += check_gcctorture_pr28634-1.ctst
123 dd43edf4 ths
#TESTCASES += check_gcctorture_pr28634.ctst
124 dd43edf4 ths
125 dd43edf4 ths
all: build
126 dd43edf4 ths
127 dd43edf4 ths
%.o: $(SRC_PATH)/tests/cris/%.c
128 dd43edf4 ths
	$(CC) $(CFLAGS) -c $< -o $@
129 dd43edf4 ths
130 dd43edf4 ths
%.o: $(SRC_PATH)/tests/cris/%.s
131 dd43edf4 ths
	$(AS) $(ASFLAGS) -c $< -o $@
132 dd43edf4 ths
133 dd43edf4 ths
%.tst: %.o
134 dd43edf4 ths
	$(CC) $(CFLAGS) $(NOSTDFLAGS) $(LDLIBS) $(NOSTDLIBS) $(CRT) $< $(SYS) -o $@
135 dd43edf4 ths
136 dd43edf4 ths
%.ctst: %.o
137 dd43edf4 ths
	$(CC) $(CFLAGS) $(LDLIBS) $< -o $@
138 dd43edf4 ths
139 dd43edf4 ths
build: $(CRT) $(SYS) $(TESTCASES)
140 dd43edf4 ths
141 dd43edf4 ths
check: $(CRT) $(SYS) $(TESTCASES)
142 dd43edf4 ths
	@echo -e "\nQEMU simulator."
143 31328119 edgar_igl
	for case in $(TESTCASES); do \
144 dd43edf4 ths
		echo -n "$$case "; \
145 31328119 edgar_igl
		$(SIM) ./$$case; \
146 dd43edf4 ths
	done
147 dd43edf4 ths
check-g: $(CRT) $(SYS) $(TESTCASES)
148 dd43edf4 ths
	@echo -e "\nGDB simulator."
149 dd43edf4 ths
	@for case in $(TESTCASES); do \
150 dd43edf4 ths
		echo -n "$$case "; \
151 dd43edf4 ths
		$(SIMG) $$case; \
152 dd43edf4 ths
	done
153 dd43edf4 ths
154 dd43edf4 ths
clean:
155 dd43edf4 ths
	$(RM) -fr $(TESTCASES) $(CRT) $(SYS)