mips: Add MIPS64 support
[openocd.git] / src / target / Makefile.am
1 if OOCD_TRACE
2 OOCD_TRACE_FILES = %D%/oocd_trace.c
3 else
4 OOCD_TRACE_FILES =
5 endif
6
7 %C%_libtarget_la_LIBADD = %D%/openrisc/libopenrisc.la \
8         %D%/riscv/libriscv.la
9
10
11 STARTUP_TCL_SRCS += %D%/startup.tcl
12
13 noinst_LTLIBRARIES += %D%/libtarget.la
14 %C%_libtarget_la_SOURCES = \
15         $(TARGET_CORE_SRC) \
16         $(ARM_DEBUG_SRC) \
17         $(ARMV4_5_SRC) \
18         $(ARMV6_SRC) \
19         $(ARMV7_SRC) \
20         $(ARM_MISC_SRC) \
21         $(AVR32_SRC) \
22         $(MIPS32_SRC) \
23         $(NDS32_SRC) \
24         $(STM8_SRC) \
25         $(INTEL_IA32_SRC) \
26         $(ESIRISC_SRC) \
27         %D%/avrt.c \
28         %D%/dsp563xx.c \
29         %D%/dsp563xx_once.c \
30         %D%/dsp5680xx.c \
31         %D%/hla_target.c
32
33 if TARGET64
34 %C%_libtarget_la_SOURCES +=$(ARMV8_SRC)
35 %C%_libtarget_la_SOURCES +=$(MIPS64_SRC)
36 endif
37
38 TARGET_CORE_SRC = \
39         %D%/algorithm.c \
40         %D%/register.c \
41         %D%/image.c \
42         %D%/breakpoints.c \
43         %D%/target.c \
44         %D%/target_request.c \
45         %D%/testee.c \
46         %D%/semihosting_common.c \
47         %D%/smp.c
48
49 ARMV4_5_SRC = \
50         %D%/armv4_5.c \
51         %D%/armv4_5_mmu.c \
52         %D%/armv4_5_cache.c \
53         $(ARM7_9_SRC)
54
55 ARM7_9_SRC = \
56         %D%/arm7_9_common.c \
57         %D%/arm7tdmi.c \
58         %D%/arm720t.c \
59         %D%/arm9tdmi.c \
60         %D%/arm920t.c \
61         %D%/arm966e.c \
62         %D%/arm946e.c \
63         %D%/arm926ejs.c \
64         %D%/feroceon.c
65
66 ARM_MISC_SRC = \
67         %D%/fa526.c \
68         %D%/xscale.c
69
70 ARMV6_SRC = \
71         %D%/arm11.c \
72         %D%/arm11_dbgtap.c
73
74 ARMV7_SRC = \
75         %D%/armv7m.c \
76         %D%/armv7m_trace.c \
77         %D%/cortex_m.c \
78         %D%/armv7a.c \
79         %D%/armv7a_mmu.c \
80         %D%/cortex_a.c \
81         %D%/ls1_sap.c \
82         %D%/mem_ap.c
83
84 ARMV8_SRC = \
85         %D%/armv8_dpm.c \
86         %D%/armv8_opcodes.c \
87         %D%/aarch64.c \
88         %D%/armv8.c \
89         %D%/armv8_cache.c
90
91 ARM_DEBUG_SRC = \
92         %D%/arm_dpm.c \
93         %D%/arm_jtag.c \
94         %D%/arm_disassembler.c \
95         %D%/arm_simulator.c \
96         %D%/arm_semihosting.c \
97         %D%/arm_adi_v5.c \
98         %D%/arm_dap.c \
99         %D%/armv7a_cache.c \
100         %D%/armv7a_cache_l2x.c \
101         %D%/adi_v5_jtag.c \
102         %D%/adi_v5_swd.c \
103         %D%/embeddedice.c \
104         %D%/trace.c \
105         %D%/etb.c \
106         %D%/etm.c \
107         $(OOCD_TRACE_FILES) \
108         %D%/etm_dummy.c \
109         %D%/arm_cti.c
110
111 AVR32_SRC = \
112         %D%/avr32_ap7k.c \
113         %D%/avr32_jtag.c \
114         %D%/avr32_mem.c \
115         %D%/avr32_regs.c
116
117 MIPS32_SRC = \
118         %D%/mips32.c \
119         %D%/mips_m4k.c \
120         %D%/mips32_pracc.c \
121         %D%/mips32_dmaacc.c \
122         %D%/mips_ejtag.c
123
124 MIPS64_SRC = \
125         %D%/mips64.c \
126         %D%/mips32_pracc.c \
127         %D%/mips64_pracc.c \
128         %D%/trace.c \
129         %D%/mips_ejtag.c
130
131 NDS32_SRC = \
132         %D%/nds32.c \
133         %D%/nds32_reg.c \
134         %D%/nds32_cmd.c \
135         %D%/nds32_disassembler.c \
136         %D%/nds32_tlb.c \
137         %D%/nds32_v2.c \
138         %D%/nds32_v3_common.c \
139         %D%/nds32_v3.c \
140         %D%/nds32_v3m.c \
141         %D%/nds32_aice.c
142
143 STM8_SRC = \
144         %D%/stm8.c
145
146 INTEL_IA32_SRC = \
147         %D%/quark_x10xx.c \
148         %D%/quark_d20xx.c \
149         %D%/lakemont.c \
150         %D%/x86_32_common.c
151
152 ESIRISC_SRC = \
153         %D%/esirisc.c \
154         %D%/esirisc_jtag.c \
155         %D%/esirisc_trace.c
156
157 %C%_libtarget_la_SOURCES += \
158         %D%/algorithm.h \
159         %D%/arm.h \
160         %D%/arm_dpm.h \
161         %D%/arm_jtag.h \
162         %D%/arm_adi_v5.h \
163         %D%/armv7a_cache.h \
164         %D%/armv7a_cache_l2x.h \
165         %D%/armv7a_mmu.h \
166         %D%/arm_disassembler.h \
167         %D%/arm_opcodes.h \
168         %D%/arm_simulator.h \
169         %D%/arm_semihosting.h \
170         %D%/arm7_9_common.h \
171         %D%/arm7tdmi.h \
172         %D%/arm720t.h \
173         %D%/arm9tdmi.h \
174         %D%/arm920t.h \
175         %D%/arm926ejs.h \
176         %D%/arm966e.h \
177         %D%/arm946e.h \
178         %D%/arm11.h \
179         %D%/arm11_dbgtap.h \
180         %D%/armv4_5.h \
181         %D%/armv4_5_mmu.h \
182         %D%/armv4_5_cache.h \
183         %D%/armv7a.h \
184         %D%/armv7m.h \
185         %D%/armv7m_trace.h \
186         %D%/armv8.h \
187         %D%/armv8_dpm.h \
188         %D%/armv8_opcodes.h \
189         %D%/armv8_cache.h \
190         %D%/avrt.h \
191         %D%/dsp563xx.h \
192         %D%/dsp563xx_once.h \
193         %D%/dsp5680xx.h \
194         %D%/breakpoints.h \
195         %D%/cortex_m.h \
196         %D%/cortex_a.h \
197         %D%/aarch64.h \
198         %D%/embeddedice.h \
199         %D%/etb.h \
200         %D%/etm.h \
201         %D%/etm_dummy.h \
202         %D%/image.h \
203         %D%/mips32.h \
204         %D%/mips64.h \
205         %D%/mips_m4k.h \
206         %D%/mips_ejtag.h \
207         %D%/mips32_pracc.h \
208         %D%/mips32_dmaacc.h \
209         %D%/mips64_pracc.h \
210         %D%/oocd_trace.h \
211         %D%/register.h \
212         %D%/target.h \
213         %D%/target_type.h \
214         %D%/trace.h \
215         %D%/target_request.h \
216         %D%/trace.h \
217         %D%/xscale.h \
218         %D%/smp.h \
219         %D%/avr32_ap7k.h \
220         %D%/avr32_jtag.h \
221         %D%/avr32_mem.h \
222         %D%/avr32_regs.h \
223         %D%/nds32.h \
224         %D%/nds32_cmd.h \
225         %D%/nds32_disassembler.h \
226         %D%/nds32_edm.h \
227         %D%/nds32_insn.h \
228         %D%/nds32_reg.h \
229         %D%/nds32_tlb.h \
230         %D%/nds32_v2.h \
231         %D%/nds32_v3_common.h \
232         %D%/nds32_v3.h \
233         %D%/nds32_v3m.h \
234         %D%/nds32_aice.h \
235         %D%/semihosting_common.h \
236         %D%/stm8.h \
237         %D%/lakemont.h \
238         %D%/x86_32_common.h \
239         %D%/arm_cti.h \
240         %D%/esirisc.h \
241         %D%/esirisc_jtag.h \
242         %D%/esirisc_regs.h \
243         %D%/esirisc_trace.h
244
245 include %D%/openrisc/Makefile.am
246 include %D%/riscv/Makefile.am